Skip to content

Commit 321f87e

Browse files
committed
gpus
1 parent 9baae72 commit 321f87e

7 files changed

+8
-6
lines changed

install_packages.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
apt-get install ffmpeg
2+

restai/image/workers/rmbg2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from torchvision import transforms
88
from transformers import AutoModelForImageSegmentation
99

10-
os.environ["CUDA_VISIBLE_DEVICES"]="0,1,2,3"
10+
#os.environ["CUDA_VISIBLE_DEVICES"]="0,1,2,3"
1111

1212
def worker(prompt, sharedmem):
1313
img_data = base64.b64decode(sharedmem["input_image"])

restai/image/workers/stablediffusion1_xl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from restai.config import RESTAI_DEFAULT_DEVICE
88

9-
os.environ["CUDA_VISIBLE_DEVICES"]="0,1,2,3"
9+
#os.environ["CUDA_VISIBLE_DEVICES"]="0,1,2,3"
1010

1111
def worker(prompt, sharedmem):
1212
base = DiffusionPipeline.from_pretrained(

restai/image/workers/stablediffusion1_xl_lightning.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from restai.config import RESTAI_DEFAULT_DEVICE
1010

11-
os.environ["CUDA_VISIBLE_DEVICES"]="0,1,2,3"
11+
#os.environ["CUDA_VISIBLE_DEVICES"]="0,1,2,3"
1212

1313
def worker(prompt, sharedmem):
1414
base = "stabilityai/stable-diffusion-xl-base-1.0"

restai/image/workers/stablediffusion35_large_turbo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from diffusers import StableDiffusion3Pipeline
88
from transformers import T5EncoderModel
99

10-
os.environ["CUDA_VISIBLE_DEVICES"]="0,1,2,3"
10+
#os.environ["CUDA_VISIBLE_DEVICES"]="0,1,2,3"
1111

1212
def worker(prompt, sharedmem):
1313
model_id = "stabilityai/stable-diffusion-3.5-large-turbo"

restai/image/workers/stablediffusion35_medium.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from diffusers import StableDiffusion3Pipeline
88
from transformers import T5EncoderModel
99

10-
os.environ["CUDA_VISIBLE_DEVICES"]="0,1,2,3"
10+
#os.environ["CUDA_VISIBLE_DEVICES"]="0,1,2,3"
1111

1212
def worker(prompt, sharedmem):
1313
model_id = "stabilityai/stable-diffusion-3.5-medium"

restai/image/workers/stablediffusion3_medium.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from restai.config import RESTAI_DEFAULT_DEVICE
88

9-
os.environ["CUDA_VISIBLE_DEVICES"]="0,1,2,3"
9+
#os.environ["CUDA_VISIBLE_DEVICES"]="0,1,2,3"
1010

1111
def worker(prompt, sharedmem):
1212
base = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16)

0 commit comments

Comments
 (0)