Comments (15)
@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.
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.
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.
Please show the exact thing you run in the console.
from sd-cn-animation.
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.
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.
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.
I written the wrong path I have updated my first comment
from sd-cn-animation.
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.
Do you have installed dependencies ? : pip install opencv-python opencv-contrib-python numpy tqdm h5py
from sd-cn-animation.
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.
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.
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.
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.
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)
- An exception occurred while trying to process the frame: unsupported operand type(s) for +: 'int' and 'NoneType' HOT 1
- IS THERE A PLACE TO UPLOAD STRICTLY SD-CN ANIMATION? HOT 2
- ControlNet no longer working HOT 11
- Previous Image Quality severely dropped on fully processed image
- FileNotFoundError HOT 1
- An exception occurred while trying to process the frame: HTTP Error 503: Service Unavailable HOT 1
- SD-CN-Animation base_ui.py error
- No such file or directory: C:\Users\<name>\.cache\torch\hub\checkpoints\models\FloweR\... HOT 2
- [BUG]: it's "skimage" NOT "scikit-image" !!! HOT 1
- Does not work with sdxl
- A Gallery of Sorts? HOT 1
- This error keeps popping after a few renders: 2023-10-24 09:27:13 INFO [httpx] HTTP Request: POST http://localhost:7860/reset "HTTP/1.1 200 OK" HTTP Request: POST http://localhost:7860/reset "HTTP/1.1 200 OK"
- SD-CN causing "No ControlNetUnit detected in args" ERROR HOT 4
- [BUG] Error when Generating HOT 6
- Output is all messed up
- Notice: extension is incompatible with webui 1.8, pending removel form extension index HOT 5
- No module named 'basicsr' HOT 1
- No module named 'basicsr
- txt2vid doesn't work at all HOT 2
- Text to video not working for me
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sd-cn-animation.