Skip to content
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

Why stuck in 'Predicting saliency maps for sample_images/'? #13

Open
LvJC opened this issue Apr 19, 2018 · 1 comment
Open

Why stuck in 'Predicting saliency maps for sample_images/'? #13

LvJC opened this issue Apr 19, 2018 · 1 comment

Comments

@LvJC
Copy link

LvJC commented Apr 19, 2018

Download your codes and I just want to test if it works well. But when I run main.py as so:
python main.py test sample_images/
Codes can work till it prints 'Predicting saliency maps for sample_images/' and move no more forward.
Could you pls take a look at this issue?

Keras: 1.1.0
Theano: 0.9.0
OpenCV: 3.0.0

@BrendenEum
Copy link

BrendenEum commented Apr 23, 2020

I was having a similar issue for a while. What do you have typed in your .theanorc file?

At first, multiple online resources were saying to write:

[global]
optimizer = None

However, I found that this led me to be stuck at the predicting saliency stage. Instead, I changed it to:

[global]
optimizer = fast_compile

I also added to main.py:

import theano
theano.config.optimizer="fast_compile"

just in case. This worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants