nyu-dl / conditional-molecular-design-ssvae

49 stars 20 forks source link

How to reload the model which had been trained ? #1

Open AustinApple opened 5 years ago

AustinApple commented 5 years ago

Hi~ I had been tried to use saver.restore to reload the model, but I do not know why I cannot reproduce the result of the training process. Could you provide the code as to how to reload the model which had been trained ? I would appreciate it.

AlbertoGil-DS commented 3 years ago

Hi Austin, did you manage to do it? I have the same problem. Also which Tensorflow version are you using?

Than you very much!

AustinApple commented 3 years ago

Hello AlbertoGil, Yeah, I fix the problem by adding a new function in the Model object. Please refer to my repository and check this file where I used the reload function to reload the trained model. Hope this can help you. Concerned with Tensorflow version, I remember the version is 1.14. But I am not really sure about that cause I have already leaved the school where I did this project.

AlbertoGil-DS commented 3 years ago

Hello Austin, Thank you very much! It worked! :)

El mié, 20 oct 2021 a las 4:13, AustinApple @.***>) escribió:

Hello AlbertoGil, Yeah, I fix the problem by adding a new function https://github.com/AustinApple/SSVAE-for-electrolyte-molecule-design/blob/41f27bee995bedb8eaecfc6abe5044fd22938505/SSVAE.py#L184 in the Model object. Please refer to my repository https://github.com/AustinApple/SSVAE-for-electrolyte-molecule-design and check this file https://github.com/AustinApple/SSVAE-for-electrolyte-molecule-design/blob/master/IE_generation.py where I used the reload function to reload the trained model. Concerned with Tensorflow version, I remember the version is 1.14. But I am not really sure about that cause I have already leaved the school where I did this project.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nyu-dl/conditional-molecular-design-ssvae/issues/1#issuecomment-947255870, or unsubscribe https://github.com/notifications/unsubscribe-auth/APRZISTCIYKDGLEV4R4GFKDUHYQT5ANCNFSM4IPQ3ILA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.