-
Notifications
You must be signed in to change notification settings - Fork 262
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 we run demo without Adobe training set? #25
Comments
The training data is not needed and you only have to provide an input RGB image, a trimap (320x320) and a trained model. You can modify the corresponding codes in "demo.py". |
Does the image need to be 320X320? Can I run the code with the original image size? |
you could .just modify demo.py |
I am recreating the experiment, some questions I hope to be advised, this is my contact information. |
perhaps you can modify the input shape from (320, 320, 4) to (None, None, 4) in test? |
@rainsun1 I faced a similar issue and I tried to modify input shape from (320,320,4) to (None,None,4) in models.py. But I get the following error: |
@ahsanbarkati Where does the error come from? Is it in the shape computation from a layer? |
You can look into the complete error log here: https://pastebin.com/2Pw1mVF2 |
I have the image and trimap and also downloaded the pre-trained model. But I have no clue as to how to modify the demo.py to make it work for my own test. Also, like other people said, it will be nice to be able to change the image size as well. Can you provide another demo code for us to test when we don't have the Adobe datasets, a lot of us don't have it anyways. Thanks! |
You have to change input shape of network and train the model and the height and widht of input shape should be equal. |
If you need a larger size you are probably best to provide it in patches and then reconstruct it. There are some pre-existing python modules to do so (https://github.com/adamrehn/slidingwindow for example) but it's pretty easy to write the loop to do it. |
If input is None, maybe you should use tf.shape[index] to compute, not tf.get_shape().as_list() |
You can also construct the model with a large shape such as: |
Hi,
Apparently the original image training sets is not available to anyone not associated with a university. Is there a way to run the demo at least without it. You have graciously provided the trained model so why is the training data needed for processing new images?
The text was updated successfully, but these errors were encountered: