Stability-AI / generative-models

Generative Models by Stability AI
MIT License
24.27k stars 2.7k forks source link

img2vid No module named 'scripts.util' #138

Open veryvanya opened 10 months ago

veryvanya commented 10 months ago

Trying to run new video model but watermark filter not being detected.

Traceback (most recent call last): File "C:\AI\Video\StableVideo\generative_models_main\scripts\sampling\simple_video_sample.py", line 16, in from scripts.util.detection.nsfw_and_watermark_dectection import DeepFloydDataFiltering ModuleNotFoundError: No module named 'scripts.util'

Viliars commented 10 months ago

Trying to run new video model but watermark filter not being detected.

Traceback (most recent call last): File "C:\AI\Video\StableVideo\generative_models_main\scripts\sampling\simple_video_sample.py", line 16, in from scripts.util.detection.nsfw_and_watermark_dectection import DeepFloydDataFiltering ModuleNotFoundError: No module named 'scripts.util'

You need to add "generative_models_main" to PYTHONPATH

alexfredo commented 10 months ago

I have the same problem and I added the folder in pythonpath, please helps ! testttpath

becausecurious commented 10 months ago

On linux the following works for me:

PYTHONPATH=. streamlit run scripts/demo/video_sampling.py --server.port 8005

from generative-models root.

(source: https://github.com/Stability-AI/generative-models/issues/119#issuecomment-1707643530)

alexfredo commented 10 months ago

Thanks ! for windows we need to enter first : set PYTHONPATH=. and then : streamlit run scripts/demo/video_sampling.py --server.port 8005

kingljl commented 4 months ago

On linux the following works for me:

PYTHONPATH=. streamlit run scripts/demo/video_sampling.py --server.port 8005

from generative-models root.

(source: #119 (comment))

Thanks !