tjvandal / deepsd

DeepSD Super-resolution for Climate Downscaling in KDD 2017
https://www.kdd.org/kdd2017/papers/view/deepsd-generating-high-resolution-climate-change-projections-through-single
MIT License
88 stars 25 forks source link

AttributeError: 'NoneType' object has no attribute 'model_checkpoint_path' #4

Closed sanket-p closed 4 years ago

sanket-p commented 4 years ago

Hey guys.. I am having this issue and the error is caused due to something with freeze_graphs can somebody tell me the solution to this please...

@zeeem have you tried running inference.py? does that work for you? plz let me know

dropping a snip image of the error shown graph_attribute_error

zeeem commented 4 years ago

@sanket-p I am facing this problem at the 2nd step.

image

tjvandal commented 4 years ago

@zeeem See the environment.yml file in this repository. FLAGS are not available on more recent versions of Tensorflow. Use Tensorflow version 1.5 or older.

tjvandal commented 4 years ago

@sanket-p The model path doesn't exist. Is this model trained?

sanket-p commented 4 years ago

@tjvandal yes, the model is trained and I can see the checkpoint files in scratch directory in folder named 'srcnn_ppt-008-016_64-32-1_9-3-5'

@zeeem you can replace line 25 in train.py which is "FLAGS._parse_flags()" with "FLAGS(sys.argv)" this, and "import sys" in the beginning.

sanket-p commented 4 years ago

@tjvandal yes, the model is trained and I can see the checkpoint files in scratch directory in folder named 'srcnn_ppt-008-016_64-32-1_9-3-5'

I had directly executed train.py file, didnt used your run.sh file.

sanket-p commented 4 years ago

@tjvandal yes, the model is trained and I can see the checkpoint files in scratch directory in folder named 'srcnn_ppt-008-016_64-32-1_9-3-5'

I had directly executed train.py file, didnt used your run.sh file. Yes.. this was the issue. As I executed train.py separately and it only had training of model 1, I had to separately train for model 2 which solved this issue for me.

Thank you for your time and help @tjvandal You are a lifesaver for me

zeeem commented 4 years ago

@sanket-p thanks for the suggestion but it is not working for some reason. :/