eps696/aphantasia

Error when running "Generate"

BananaBotYT opened this issue · 2 comments

Everything works well, until I click generate.
Here's the error:

 using 300 samples
100%|███████████████████████████████████████| 338M/338M [00:05<00:00, 62.9MiB/s]
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-3-6a6046cf5f2d> in <module>()
     85 use_jit = True if float(torch.__version__[:3]) < 1.8 else False
     86 model_clip, _ = clip.load(model, jit=use_jit)
---> 87 modsize = model_clip.visual.input_resolution
     88 xmem = {'ViT-B/16':0.25, 'RN50':0.5, 'RN50x4':0.16, 'RN50x16':0.06, 'RN101':0.33}
     89 if model in xmem.keys():

2 frames
/usr/local/lib/python3.7/dist-packages/torch/jit/_script.py in __getattr__(self, attr)
    755                 return script_method
    756 
--> 757             return super(RecursiveScriptModule, self).__getattr__(attr)
    758 
    759         def __setattr__(self, attr, value):

/usr/local/lib/python3.7/dist-packages/torch/jit/_script.py in __getattr__(self, attr)
    472         def __getattr__(self, attr):
    473             if "_actual_script_module" not in self.__dict__:
--> 474                 return super(ScriptModule, self).__getattr__(attr)
    475             return getattr(self._actual_script_module, attr)
    476 

/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py in __getattr__(self, name)
   1176                 return modules[name]
   1177         raise AttributeError("'{}' object has no attribute '{}'".format(
-> 1178             type(self).__name__, name))
   1179 
   1180     def __setattr__(self, name: str, value: Union[Tensor, 'Module']) -> None:

AttributeError: 'RecursiveScriptModule' object has no attribute 'input_resolution'

I've tried running it without changing any settings, and it does the same thing. Help?

thanks for reporting
should be fixed now

thanks for reporting should be fixed now

Fixed! Thank you for all your hard work on this project, it's so fun to experiment with AI like this. 💪