instantX-research / InstantID

InstantID: Zero-shot Identity-Preserving Generation in Seconds 🔥
https://instantid.github.io/
Apache License 2.0
11.12k stars 807 forks source link

ModuleNotFoundError: No module named 'pipeline_stable_diffusion_xl_instantid' #36

Closed protector131090 closed 9 months ago

protector131090 commented 9 months ago

(venv) S:\InstantID>python gradio_demo/app.py Traceback (most recent call last): File "S:\InstantID\gradio_demo\app.py", line 19, in from pipeline_stable_diffusion_xl_instantid import StableDiffusionXLInstantIDPipeline ModuleNotFoundError: No module named 'pipeline_stable_diffusion_xl_instantid'

zewolf5 commented 9 months ago

Its looking for the python code files. You can probably just copy the *.py + the ip_adapter from the parent folder into the gradio_demo folder.

protector131090 commented 9 months ago

Its looking for the python code files. You can probably just copy the *.py + the ip_adapter from the parent folder into the gradio_demo folder.

i copyed all form gradio folder to hte main folder and now it started to download some big files. But i get error AssertionError: Torch not compiled with CUDA enabled

haofanwang commented 9 months ago

You should make sure CUDA is available in your envs. In the demo code, the model is running on GPUs.

zewolf5 commented 9 months ago

pip uninstall torch pip install torch==2.0.0+cu117 -f https://download.pytorch.org/whl/torch_stable.html

hben35096 commented 9 months ago

Put app.py and style_template.py Move to S:InstantID, and execute: python app.py image image

ResearcherXman commented 9 months ago

Will fix it soon.

ResearcherXman commented 9 months ago

Tested locally. It should work now. @protector131090

ResearcherXman commented 9 months ago

Closed. Feel free to re-open if you still meet problems.

andymacool commented 9 months ago

can I run this locally on Mac M1 without GPU ? just for testing purpose, thanks !