Open kestrel614 opened 4 years ago
hi, did you run through this code?
Yes the error messages were returned when I ran python predict.py -i ./data/test_images/ -o ./output/
. I only replaced my machine name in the paths.
I modified certain lines in predict.py
to circumvent compatibility issues:
5c5
< # from keras.backend import tensorflow_backend
---
> from keras.backend import tensorflow_backend
104,107c104,107
< config = tf.compat.v1.ConfigProto(gpu_options=tf.compat.v1.GPUOptions(allow_growth=True))
< session = tf.compat.v1.Session(config=config)
< tf.compat.v1.keras.backend.set_session(session)
< # tensorflow_backend.set_session(session)
---
> config = tf.ConfigProto(gpu_options=tf.GPUOptions(allow_growth=True))
> session = tf.Session(config=config)
> tensorflow_backend.set_session(session)
>
And all the other codes stayed the same.
May I know how you merged these three data sets?Thank you!!
Thank you for your reply. I tried to perform a prediction on an image (./data/test_images/test.jpg
) using your pre-trained weights (I downloaded it and put it under ./trained_model/ALL/
). I did not re-train a model so I guess the three data sets are not involved?
I think the error occurred at define_model.get_unet
, which was regarding the definition of CNN layers, and before loading weights and input images.
I got it ,and thank you once again
You are welcome -- it should be me thanking you lol. Please let me know if this problem could be fixed. Thanks again!
Hi! I am one of the authors of the SeqNet. I think this problem may be caused by compatibility issues. In our server, we are using keras=2.3.1 and tensorflow=1.15.0. And please check the requirements file for the version of other packages. If this cannot fix this problem, please let me know. Thanks!
Hi,
I tried to perform prediction by giving the command (the test image was under
./data/test_images/
):python predict.py -i ./data/test_images/ -o ./output/
And encountered the following error message:
I had to modify certain lines in
predict.py
likeconfig = tf.compat.v1.ConfigProto(gpu_options=tf.compat.v1.GPUOptions(allow_growth=True))
due to compatibility issues but I guess that is irrelevant to the error. Apart from that all the codes stayed the same.Could you please look into this? Thank you in advance for your help.