Comments (6)
I encountered the same bug while reinstalling xformers, which consistently conflicted with torch, torchaudio, and torchvision. To resolve this, I used the following command:
pip install xformers==0.0.22.post2 --index-url https://download.pytorch.org/whl/cu118
I also reinstalled torch, torchaudio, and torchvision, or they might have been installed during the xformers installation. I can't recall precisely. For reference, here is the final combination that worked for me (though it still has errors while generating videos, but at least it runs):
- torch: 2.1.0+cu118i
- torchaudio: 2.0.2+cu118
- torchvision: 0.15.2+cu118
- xformers: 0.0.22.post2+cu118
from tooncrafter.
I dont know why but xformers dont work for me, so i kill it, and i see the ToonCrafter decode uses xformers and thats why i prefer to use the implementation for comfy ui.
https://github.com/kijai/ComfyUI-DynamiCrafterWrapper
from tooncrafter.
You need to install the GPU version of pytorch. This is a common issue with pytorch, and reinstalling pytorch on the gpu instead of the cpu will likely resolve this specific issue.
Reading from https://pytorch.org/, you are on windows, so you can probably run (not tested):
python -m pip install torch=2.0.0 torchvision --index-url https://download.pytorch.org/whl/cu118
You might need to find the version for torchvision as well, I don't remember which version was compatible with torch==2.0.0 on python 3.8.
That being said, I think you'll have an easier time running the pipeline on linux (or wsl).
from tooncrafter.
I am trying on the same... but something doesn't add up for me.
this will give you the torch with cuda
pip install torch==2.0.0+cu117 torchvision==0.15.0+cu117 torchaudio==2.0.0+cu117 -f https://download.pytorch.org/whl/cu117/torch_stable.html
pip install transformers==4.25.1
AND
pip install -U xformers --index-url https://download.pytorch.org/whl/cu20
That completes the setup BUT every time I run the generate my PC freezes and I need to hard reboot.
I suspect 2 reasons, but can't confirm yet: Nvidia driver 555.85 and potentially Windows (because Triton, which is another GPU optimizer, that doesn't support Windows )
I will try on WSL.
from tooncrafter.
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh
eval "$(/home/YOUR-USERNAME/miniconda3/bin/conda shell.bash hook)" && conda init && source ~/.bashrc
conda create -n tooncrafter python=3.8.5 && conda activate tooncrafter
sudo apt update && sudo apt install nvidia-cuda-toolkit
git clone https://github.com/ToonCrafter/ToonCrafter.git && cd ToonCrafter
pip install -r requirements.txt
python gradio_app.py
from tooncrafter.
Also ...
Keep in mind, I just saw - A100 is required with the default model...
from tooncrafter.
Related Issues (20)
- raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'") AttributeError: 'VisionTransformer' object has no attribute 'input_patchnorm'
- Developed a full version of ToonCrafter HOT 1
- Suggestion: Make a lite version that only cleans up existing human made animations HOT 3
- It`s possible is use as video interpolation x2 fps to anime HOT 1
- Would it be possible to generate 720p or at least 480p videos? HOT 3
- Training Compute needed
- What about a gui version? HOT 10
- What about version 1024?
- Can I train tooncrafter checkpoint locally?
- Which config controls temporal layer freezing?
- fodase
- About training loss value HOT 2
- Hardware requirements HOT 1
- we need Color reference
- fire
- did we can train the model?
- Please help!Error occurred when executing DownloadAndLoadDynamiCrafterModel:local variable 'dcmodel' referenced before assignment HOT 1
- Is it possible to generate clips unconditionally?
- How to use API remote call, is there any documentation?
- Dataset
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 tooncrafter.