nateraw / stable-diffusion-videos

Create 🔥 videos with Stable Diffusion by exploring the latent space and morphing between text prompts
Apache License 2.0
4.34k stars 413 forks source link

import generate_images error #209

Open zencodess opened 3 weeks ago

zencodess commented 3 weeks ago

When I just try to run the notebook, I get the below error while importing Interface..

Could you please help?

ImportError Traceback (most recent call last) in <cell line: 3>() 1 import torch 2 ----> 3 from stable_diffusion_videos import Interface 4 from stable_diffusion_videos import StableDiffusionWalkPipeline 5

2 frames /usr/local/lib/python3.10/dist-packages/stable_diffusion_videos/init.py in getattr(name) 73 elif name in attr_to_modules: 74 submod_path = f"{package_name}.{attr_to_modules[name]}" ---> 75 submod = importlib.import_module(submod_path) 76 attr = getattr(submod, name) 77

/usr/lib/python3.10/importlib/init.py in import_module(name, package) 124 break 125 level += 1 --> 126 return _bootstrap._gcd_import(name[level:], package, level) 127 128

/usr/local/lib/python3.10/dist-packages/stable_diffusion_videos/app.py in 3 import gradio as gr 4 ----> 5 from stable_diffusion_videos import generate_images 6 7

ImportError: cannot import name 'generate_images' from 'stable_diffusion_videos' (/usr/local/lib/python3.10/dist-packages/stable_diffusion_videos/init.py)

nateraw commented 3 weeks ago

Oh hmm I thought I fixed this recently. I'll have a look when I get a chance sorry about that. Thanks for reporting ❤️

nateraw commented 1 week ago

Just got around to looking at this. Seems its because package failed to publish to PyPi upon release. Didn't notice that. @Borda any chance this has something to do with changes you had made?

See this failed action: https://github.com/nateraw/stable-diffusion-videos/actions/runs/8979155015/job/24660699159

nateraw commented 1 week ago

ah actually could be an authentication issue? I believe I was using username + pass before, perhaps they've changed something and you have to use API keys now?

Borda commented 1 week ago

Yes authentication...