volotat / SD-CN-Animation

This script allows to automate video stylization task using StableDiffusion and ControlNet.
MIT License
806 stars 61 forks source link

Help with running it #20

Closed Niutonian closed 1 year ago

Niutonian commented 1 year ago

Hello, I would like to know if someone could help me figure out why I keep on getting the same mistake multiple time related to torch

Here is my issue, When I run the line below, I get the module torch not found even though it is there.

'D:\stable-diffusion-webui\SD-CN-Animation>python3 compute_flow.py -i "C:\Users\Arnaud***\Downloads\Remove0417_720p.mov" -o "D:\stable-diffusion-webui\SD-CN-Animation\EXPORT" -v -W 720 -H 540 Traceback (most recent call last): File "D:\stable-diffusion-webui\SD-CN-Animation\compute_flow.py", line 7, in from flow_utils import RAFT_estimate_flow File "D:\stable-diffusion-webui\SD-CN-Animation\flow_utils.py", line 9, in import torch ModuleNotFoundError: No module named 'torch' '

What could be the problem?

jAyATJaY commented 1 year ago

Did you install the prerequisites?

Cubey42 commented 1 year ago

are you running it inside the environment of your sd?

Niutonian commented 1 year ago

Yes all the prerequisites are installed but I am running it inside of the env of SD, Should I setup a conda env for it, sorry I'm really new at all of this

CaptnSeraph commented 1 year ago

i would setup a separate environment for raft, there are different torch versions across all these ML projects and ive never been able to get them working outside of individual environments

Niutonian commented 1 year ago

Ok, thanks all for the tips, I will try again to run it,