-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expected shape=(None, 299, 299, 3), found shape=(None, 224, 224, 3) but image is really (1, 299, 299, 3) #138
Comments
i have the same error lol made a new venv python 3.10.9 installed requirements then installed Successfully installed protobuf-3.20.2
|
I doublechecked that image.shape is (224, 224, 3) I'm running Puzzled. Did either of you ever figure this out? It seems to work fine for me if I run it on a file from the local filesystem, but I need to run from bytearrays, so I'm converting via PIL to numpy and I'm having trouble figuring out what it's trying to do that's mangling the shape. |
usage example:
I've added a usage example in the readme with pr #141 |
have you found the solution for, i am having same issue |
got it, changed the img to be predicted from tuple to list |
use:nsfw-predict --saved_model_path ./nsfw.299x299.h5 --image_source images/色情1-2.jpeg
but:
get shape:
is:
The text was updated successfully, but these errors were encountered: