generative-models icon indicating copy to clipboard operation
generative-models copied to clipboard

img2vid No module named 'scripts.util'

Open veryvanya opened this issue 2 years ago • 5 comments

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'

veryvanya avatar Nov 21 '23 20:11 veryvanya

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

Viliars avatar Nov 21 '23 21:11 Viliars

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

alexfredo avatar Nov 22 '23 01:11 alexfredo

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)

becausecurious avatar Nov 22 '23 02:11 becausecurious

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

alexfredo avatar Nov 22 '23 03:11 alexfredo

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 !

kingljl avatar May 16 '24 07:05 kingljl