ArcherFMY / SD-T2I-360PanoImage

repository for 360 panorama image generation based on Stable Diffusion
245 stars 35 forks source link

No module named 'diffusers.models.vae' #8

Closed zmlee0514 closed 8 months ago

zmlee0514 commented 9 months ago

I found that 'diffusers.models.vae' has been removed since version 0.25.0. After I reinstall diffusers version 0.24.0, it raises import error again: cannot import name 'randn_tensor' from 'diffusers.utils' from txt2panoimg/pipeline_base.py cannot import name 'is_compiled_module' from 'diffusers.utils' from txt2panoimg/pipeline_sr.py cannot import name 'randn_tensor' from 'diffusers.utils' from txt2panoimg/pipeline_sr.py

Could you provide a more detailed system requirement file?

Thanks

P.S. module name does not match in the README inference section: from txt2panoimage import Text2360PanoramaImagePipeline should be from txt2panoimg import Text2360PanoramaImagePipeline

ArcherFMY commented 9 months ago

Hi I used diffusers version 0.20.0.dev0

willy1322 commented 7 months ago

how to make it work? got the same error. colab (ModuleNotFoundError: No module named 'diffusers.models.vae') is this related ?

ArcherFMY commented 7 months ago

for the latest version of diffusers users, please try to update the related library path.

e.g., from diffusers.models.vae import DecoderOutput to from diffusers.models.autoencoders.vae import DecoderOutput, from diffusers.utils import is_compiled_module, randn_tensor to from diffusers.utils.torch_utils import is_compiled_module, randn_tensor

willy1322 commented 7 months ago

thanx for the reply the error is happening in colab, is there anything i should do in colab? https://colab.research.google.com/github/camenduru/SD-T2I-360PanoImage-colab/blob/main/SD_T2I_360PanoImage_gradio_colab.ipynb

ArcherFMY commented 7 months ago

hi, I updated this repo to diffusers==0.27.2 (latest, 2024-03-25)

willy1322 commented 7 months ago

this is great thank you. the error is still there though i have reached to dev of the colab and posted about the update. the error im getting is in the screenshot Screenshot 2024-03-25 200340 anything i should do from my side?

ArcherFMY commented 7 months ago

this is great thank you. the error is still there though i have reached to dev of the colab and posted about the update. the error im getting is in the screenshot Screenshot 2024-03-25 200340 anything i should do from my side?

maybe you can try to restart the colab and clone the repo star tover.