Giter Site home page Giter Site logo

Comments (15)

volotat avatar volotat commented on July 21, 2024 1

@jAyATJaY You are not supposed to use brackets in the console, it is just for input indication. I should probably update instruction to avoid this confusion.

from sd-cn-animation.

volotat avatar volotat commented on July 21, 2024 1

You might have issue with multiple python instances installed on the system. Try the following, run:
python3 -m pip freeze
Check if there is opencv-python in the list. If there is not, that means that when you run 'pip' command it interacts with the different version of python that is set to 'python3' command. If so, you should install opencv-python again with the following command:
python3 -m pip install opencv-python

from sd-cn-animation.

jAyATJaY avatar jAyATJaY commented on July 21, 2024 1

You might have issue with multiple python instances installed on the system. Try the following, run: python3 -m pip freeze Check if there is opencv-python in the list. If there is not, that means that when you run 'pip' command it interacts with the different version of python that is set to 'python3' command. If so, you should install opencv-python again with the following command: python3 -m pip install opencv-python

you were right, i did discover multiple instances of python installed. one through the windows app store which i wasn't aware of. i just uninstalled both and reinstalled just to be sure. now everything's working as it should.

from sd-cn-animation.

volotat avatar volotat commented on July 21, 2024

Please show the exact thing you run in the console.

from sd-cn-animation.

jAyATJaY avatar jAyATJaY commented on July 21, 2024

python3 compute_flow.py -i {D:\Stable Diffusion\stable-diffusion-webui\scripts\SD-CN-Animation-main\1.mp4} -o {D:\Stable Diffusion\stable-diffusion-webui\scripts\SD-CN-Animation-main\flow.h5} -v -W 512 -H 512
this is what i ran. everything look ok or no?

from sd-cn-animation.

alexfredo avatar alexfredo commented on July 21, 2024

Try :
py compute_flow.py -i D:\Stable Diffusion\stable-diffusion-webui\scripts\SD-CN-Animation-main\1.mp4 -o D:\Stable Diffusion\stable-diffusion-webui\scripts\SD-CN-Animation-main\flow.h5 -v -W 512 -H 512

from sd-cn-animation.

jAyATJaY avatar jAyATJaY commented on July 21, 2024

Try : py compute_flow.py -i D:\Stable Diffusion\stable-diffusion-webui\scripts\1.mp4 -o D:\Stable Diffusion\stable-diffusion-webui\scripts\flow.h5 -v -W 512 -H 512

Thank you so much for your help, I'll give it I try.

from sd-cn-animation.

alexfredo avatar alexfredo commented on July 21, 2024

I written the wrong path I have updated my first comment

from sd-cn-animation.

jAyATJaY avatar jAyATJaY commented on July 21, 2024

Now I have this,
Traceback (most recent call last):
File "D:\Stable Diffusion\stable-diffusion-webui\scripts\SD-CN-Animation-main\compute_flow.py", line 1, in
import cv2
ModuleNotFoundError: No module named 'cv2'

from sd-cn-animation.

alexfredo avatar alexfredo commented on July 21, 2024

Do you have installed dependencies ? : pip install opencv-python opencv-contrib-python numpy tqdm h5py

from sd-cn-animation.

jAyATJaY avatar jAyATJaY commented on July 21, 2024

yes it says that are requirements are satisfied.

Requirement already satisfied: opencv-python in c:\users\wizal\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (4.7.0.68)
Requirement already satisfied: opencv-contrib-python in c:\users\wizal\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (4.7.0.72)
Requirement already satisfied: numpy in c:\users\wizal\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (1.24.1)
Requirement already satisfied: tqdm in c:\users\wizal\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (4.65.0)
Requirement already satisfied: h5py in c:\users\wizal\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (3.8.0)
Requirement already satisfied: colorama in c:\users\wizal\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from tqdm) (0.4.6)

from sd-cn-animation.

jAyATJaY avatar jAyATJaY commented on July 21, 2024

okay so this is what it came up with. i do see opencv python.
accelerate==0.18.0
certifi==2022.12.7
charset-normalizer==2.1.1
colorama==0.4.6
diffusers==0.14.0
filelock==3.9.0
h5py==3.8.0
huggingface-hub==0.13.4
idna==3.4
importlib-metadata==6.3.0
Jinja2==3.1.2
MarkupSafe==2.1.2
mpmath==1.2.1
mypy-extensions==1.0.0
networkx==3.0
numpy==1.24.1
opencv-contrib-python==4.7.0.72
opencv-python==4.7.0.68
packaging==23.0
Pillow==9.3.0
psutil==5.9.4
pyre-extensions==0.0.23
PyYAML==6.0
regex==2023.3.23
requests==2.28.1
scipy==1.10.1
sympy==1.11.1
tokenizers==0.13.3
torch==2.0.0+cu118
torchvision==0.15.1+cu118
tqdm==4.65.0
transformers==4.27.4
typing-inspect==0.8.0
typing_extensions==4.4.0
urllib3==1.26.13
xformers==0.0.19.dev516
zipp==3.15.0

from sd-cn-animation.

volotat avatar volotat commented on July 21, 2024

Ok. That's weird. If you use ubuntu you may try to do the following:

sudo apt update
sudo apt install libopencv-dev python3-opencv

from sd-cn-animation.

CaptnSeraph avatar CaptnSeraph commented on July 21, 2024

You could create a virtual environment for this, that's what I do to maintain separation from all the different versions of stuff I'm using.

from sd-cn-animation.

jAyATJaY avatar jAyATJaY commented on July 21, 2024

Yes, I'm on Windows. I'm new to all of this. I'll keep trying. I'm really excited about trying this script. It looks like one of the best ones out there and I think I've tried them all. I think.

from sd-cn-animation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.