skip-ganomaly
skip-ganomaly copied to clipboard
ImportError: No module named 'lib.models.{model_name}'
While trying to run train.py, I got the following error:
Traceback (most recent call last):
File "train.py", line 33, in
I actually rectified it by changing a line in ./lib/models/init.py. change: model_path = "lib.models.{model_name}" to: model_path = "lib.models.{}".format(model_name)
And the codes start running. I just wanted to know if this is correct or is there any other solution. Also, I am running this code on Python 3.5. Will that affect the functionality of the code? Thanks. Any help appreciated.