nerdyrodent / VQGAN-CLIP

Just playing with getting VQGAN+CLIP running locally, rather than having to use colab.
Other
2.61k stars 428 forks source link

ImportError: cannot import name 'instantiate_from_config' #147

Closed ReeceKetley closed 2 years ago

ReeceKetley commented 2 years ago

Hi,

After lots of issues (setuputils version error) and using the nightly build of pytorch i now run into a new problem:

ImportError: cannot import name 'instantiate_from_config' from partially initialized module 'main' (most likely due to a circular import) (D:\AiArt\vqgan-clip-main\main.py)

Things i've tried:

conda clean --all (then running the whole setup again) conda update

Not really sure what else to try?

ReeceKetley commented 2 years ago

edit: was able to fix this by simply renaming main.py to something else.