cc-ai/climategan

torch.nn.modules.module.ModuleAttributeError: 'DADADepthRegressionDecoder' object has no attribute 'model'

tianyu-z opened this issue · 0 comments

Traceback (most recent call last):
  File "train.py", line 188, in <module>
    main()
  File "/home/mila/t/tianyu.zhang/myenv/lib/python3.7/site-packages/hydra/main.py", line 24, in decorated_main
    strict=strict,
  File "/home/mila/t/tianyu.zhang/myenv/lib/python3.7/site-packages/hydra/_internal/utils.py", line 174, in run_hydra
    overrides=args.overrides,
  File "/home/mila/t/tianyu.zhang/myenv/lib/python3.7/site-packages/hydra/_inter                                                     nal/hydra.py", line 86, in run
    job_subdir_key=None,
  File "/home/mila/t/tianyu.zhang/myenv/lib/python3.7/site-packages/hydra/plugin                                                     s/common/utils.py", line 109, in run_job
    ret.return_value = task_function(task_cfg)
  File "train.py", line 175, in main
    trainer.setup()
  File "/home/mila/t/tianyu.zhang/omnigan/omnigan/trainer.py", line 899, in setup
    self.logger.log_architecture()
  File "/home/mila/t/tianyu.zhang/omnigan/omnigan/logger.py", line 413, in log_architecture
    write_architecture(self.trainer)
  File "/home/mila/t/tianyu.zhang/omnigan/omnigan/tutils.py", line 622, in write_architecture
    f.write(str(v))
  File "/home/mila/t/tianyu.zhang/omnigan/omnigan/blocks.py", line 467, in __str__
    return strings.basedecoder(self)
  File "/home/mila/t/tianyu.zhang/omnigan/omnigan/strings.py", line 70, in basedecoder
    for b in bd.model:
  File "/home/mila/t/tianyu.zhang/myenv/lib/python3.7/site-packages/torch/nn/mod                                                     ules/module.py", line 772, in __getattr__
    type(self).__name__, name))
torch.nn.modules.module.ModuleAttributeError: 'DADADepthRegressionDecoder' object has no attribute 'model'
COMET INFO: Uploading stats to Comet before program termination (may take several seconds)