tmabraham / UPIT

A fastai/PyTorch package for unpaired image-to-image translation.
https://tmabraham.github.io/UPIT
Apache License 2.0
133 stars 21 forks source link

'str' object has no attribute "__stored_args__" (ISSUE #7) #9

Closed lohithmunakala closed 4 years ago

lohithmunakala commented 4 years ago

I opened an issue (https://github.com/tmabraham/UPIT/issues/7) on 03/09/2020. The problem and the solution are mentioned below with the colab files as well.

On 03/09/2020, a commit was made in fastai/fastcore/uitls.py (https://github.com/fastai/fastcore/commit/ea1c33f1c3543e6e4403b1d3b7702a98471f3515) (line 86) which made sure that we need not use "self" when we call the method store_attr. ( separate the names using commas).

I made a small change in the code ie. in the upit/train/cyclegan.py such that it follows the changed fastcore/utils.py structure. I removed the self component for store_attr in cyclegan.py.

The error can be seen here

Screenshot from 2020-09-04 22-27-26

The colab link : https://colab.research.google.com/drive/1lbXhX-bWvTsQcLb2UUFI0UkRpvx_WK2Y?usp=sharing

After the change, the error does not occur as shown here.

Screenshot from 2020-09-04 22-50-17

The Colab link: https://colab.research.google.com/drive/13rrNLBgDulgeHclovxJNtQVbVYcGMKm0?usp=sharing

lohithmunakala commented 4 years ago

Gives me this error. I don't know why the error keeps popping.

lohithmunakala commented 4 years ago

Closing it as it is giving an error.