-
Notifications
You must be signed in to change notification settings - Fork 29
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
How can I run pre-trained model against a single test image? #14
Comments
Hello! Since our network needs the shadowed image ( train_A) and the shadow mask (train_B), currently it cannot be used to just a single image. |
Thanks @fl82hope. |
Could you provide more details about where this error happens? |
Stacktrace
I'm running I'm testing on a single image and mask, Directory is
|
For the model path, you can choose a local path to put latest_net_G.pth for model loading, and modify the loading path in the code. For the test, the directory should be |
Hi @fl82hope , Without train directory I get "not a directory error" saying it doesn't exist.
If I create that directory I then get
|
The new error, num_samples=0 also means it doesn't find the images. When read data, you can print the path out to see whether it exists or not. |
Script seems to require train/train_{A,B} in image directory. Is it possible to run against a single image?
The text was updated successfully, but these errors were encountered: