SuperResolutionAnimeDiffusion icon indicating copy to clipboard operation
SuperResolutionAnimeDiffusion copied to clipboard

No module named 'RealESRGANv030'

Open Widlar opened this issue 3 years ago • 6 comments

When attempting to start: python app.py An error occurs: File "/home/sergey/SuperResolutionAnimeDiffusion/app.py", line 25, in <module> from RealESRGANv030.interface import realEsrgan ModuleNotFoundError: No module named 'RealESRGANv030'

This error cannot be resolved by the command: pip install RealESRGAN Where can I get a package with the right version?

Widlar avatar Jan 27 '23 19:01 Widlar

Github restricts the upload of large files, so there is no solution for now. You can try cloning https://huggingface.co/spaces/yangheng/Super-Resolution-Anime-Diffusion

yangheng95 avatar Jan 27 '23 20:01 yangheng95

Or download the repo at https://huggingface.co/spaces/yangheng/Super-Resolution-Anime-Diffusion/raw/main/SuperResolutionAnimeDiffusion.zip

yangheng95 avatar Jan 27 '23 20:01 yangheng95

Thanks, I forgot about the lfs. But it seems the model broke after the recent update, as you can see by the new error: TypeError: __init__() got an unexpected keyword argument 'predict_epsilon'

Widlar avatar Jan 27 '23 21:01 Widlar

This right, it has been fixed on huggingface space, Please try again.

yangheng95 avatar Jan 27 '23 23:01 yangheng95

Now when you click the Generate button in the Web interface, you get an error: call() missing 1 required positional argument: 'init_image'

Widlar avatar Jan 28 '23 07:01 Widlar

You updated the requirements.txt, everything works now, thank you very much!

Widlar avatar Jan 28 '23 08:01 Widlar