deforum / deforum/deforum-stable-diffusion

CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', 'install', 'triton', 'xformers==0.0.21.dev575']' returned non-zero exit status 1.

Open
#316 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
2.3k
Forks
412
PR merge metrics
No merged PRs in 30d

Description

Th plataform of Deforum used to work perfectly, I use Collab pro +, But I am so new to this, I amnot a programmer, but I resolve menay problems thanks to the community here in git, so, I hope some can help me.

..installing triton xformers==0.0.21.dev575
---------------------------------------------------------------------------
CalledProcessError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
33 print("..skipping setup")
34
---> 35 setup_environment()
36
37 import torch

1 frames
[](https://localhost:8080/#) in setup_environment()
19 for package in packages:
20 print(f"..installing {package}")
---> 21 subprocess.check_call([sys.executable, '-m', 'pip', 'install'] + package.split())
22 if not os.path.exists("deforum-stable-diffusion"):
23 subprocess.check_call(['git', 'clone', '-b', '0.7.1', 'https://github.com/deforum-art/deforum-stable-diffusion.git'])

[/usr/lib/python3.10/subprocess.py](https://localhost:8080/#) in check_call(*popenargs, **kwargs)
367 if cmd is None:
368 cmd = popenargs[0]
--> 369 raise CalledProcessError(retcode, cmd)
370 return 0
371

theres the info I get.

def setup_environment():
try:
ipy = get_ipython()
except:
ipy = 'could not get_ipython'

if 'google.colab' in str(ipy):
start_time = time.time()
packages = [
'triton xformers==0.0.21.dev575',
'einops==0.4.1 pytorch-lightning==1.7.7 torchdiffeq==0.2.3 torchsde==0.2.5',
'ftfy timm transformers open-clip-torch omegaconf torchmetrics==0.11.4',
'safetensors kornia accelerate jsonmerge matplotlib resize-right',
'scikit-learn numpngw pydantic'
]
for package in packages:
print(f"..installing {package}")
subprocess.check_call([sys.executable, '-m', 'pip', 'install'] + package.split())
if not os.path.exists("deforum-stable-diffusion"):
subprocess.check_call(['git', 'clone', '-b', '0.7.1', 'https://github.com/deforum-art/deforum-stable-diffusion.git'])
else:
print(f"..deforum-stable-diffusion already exists")
with open('deforum-stable-diffusion/src/k_diffusion/__init__.py', 'w') as f:
f.write('')
sys.path.extend(['deforum-stable-diffusion/','deforum-stable-diffusion/src',])
end_time = time.time()
print(f"..environment set up in {end_time-start_time:.0f} seconds")
else:
sys.path.extend(['src'])
print("..skipping setup")

setup_environment()

import torch
import random
import clip
from IPython import display
from types import SimpleNamespace
from helpers.save_images import get_output_folder
from helpers.settings import load_args
from helpers.render import render_animation, render_input_video, render_image_batch, render_interpolation
from helpers.model_load import make_linear_decode, load_model, get_model_output_paths
from helpers.aesthetics import load_aesthetics_model
from helpers.prompts import Prompts

here is the code.

def setup_environment():
try:
ipy = get_ipython()
except:
ipy = 'could not get_ipython'

if 'google.colab' in str(ipy):
start_time = time.time()
packages = [
'triton xformers==0.0.21.dev575',
'einops==0.4.1 pytorch-lightning==1.7.7 torchdiffeq==0.2.3 torchsde==0.2.5',
'ftfy timm transformers open-clip-torch omegaconf torchmetrics==0.11.4',
'safetensors kornia accelerate jsonmerge matplotlib resize-right',
'scikit-learn numpngw pydantic'
]
for package in packages:
print(f"..installing {package}")
subprocess.check_call([sys.executable, '-m', 'pip', 'install'] + package.split())
if not os.path.exists("deforum-stable-diffusion"):
subprocess.check_call(['git', 'clone', '-b', '0.7.1', 'https://github.com/deforum-art/deforum-stable-diffusion.git'])
else:
print(f"..deforum-stable-diffusion already exists")
with open('deforum-stable-diffusion/src/k_diffusion/__init__.py', 'w') as f:
f.write('')
sys.path.extend(['deforum-stable-diffusion/','deforum-stable-diffusion/src',])
end_time = time.time()
print(f"..environment set up in {end_time-start_time:.0f} seconds")
else:
sys.path.extend(['src'])
print("..skipping setup")

setup_environment()

import torch
import random
import clip
from IPython import display
from types import SimpleNamespace
from helpers.save_images import get_output_folder
from helpers.settings import load_args
from helpers.render import render_animation, render_input_video, render_image_batch, render_interpolation
from helpers.model_load import make_linear_decode, load_model, get_model_output_paths
from helpers.aesthetics import load_aesthetics_model
from helpers.prompts import Prompts

and here is what the manual says

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the notebook's setup_environment() function and inspect the packages list, especially the pip command for triton and xformers==0.0.21.dev575, along with the reported Python 3.10 environment. Reproduce the installation failure in Google Colab and determine what change is needed for setup_environment() to complete successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.