jleinonen / cloudsat-gan

Reconstruction of Cloud Vertical Structure with a Generative Adversarial Network
MIT License
23 stars 8 forks source link

A question about initializing model #1

Closed HJJ124 closed 1 year ago

HJJ124 commented 2 years ago

File "/root/tf/cloudsat-gan/csmodiscgan/src/train.py", line 38, in load_model_state gan._make_train_function() AttributeError: 'Functional' object has no attribute '_make_train_function'

After git it and run ‘ python main.py train --scenes_file=../../../cs_modis_scenes.nc’ Model will be trained successfully but after loading weights, Error will be shown as above If plot directly with ‘ python main.py plot --scenes_file=../../../cs_modis_scenes.nc This problem will be shown directly.

jleinonen commented 2 years ago

Hi, this code is fairly old and was designed to be run with TensorFlow 1.X. I think somebody else also noted the same issue while using TF 2. Would it be possible for you to try it in a TF1.X environment?