Spaces:
Running
on
Zero
Running
on
Zero
bimsarapathiraja
commited on
Commit
·
cc202cf
1
Parent(s):
ce1661d
Remove move cache
Browse files
app.py
CHANGED
|
@@ -6,12 +6,12 @@ import PIL.Image
|
|
| 6 |
import numpy as np
|
| 7 |
from PIL import Image, ImageOps
|
| 8 |
import os
|
| 9 |
-
import transformers
|
| 10 |
-
from transformers.utils.hub import move_cache
|
| 11 |
-
transformers.utils.move_cache()
|
| 12 |
-
move_cache()
|
| 13 |
-
pipe = StableDiffusion3InstructPix2PixPipeline.from_pretrained("bpathir1/RefEdit-SD3", torch_dtype=torch.float16).to("cuda")
|
| 14 |
|
|
|
|
| 15 |
|
| 16 |
@spaces.GPU(duration=120)
|
| 17 |
def generate(image, prompt, num_inference_steps=50, image_guidance_scale=1.5, guidance_scale=7.5, seed=255):
|
|
|
|
| 6 |
import numpy as np
|
| 7 |
from PIL import Image, ImageOps
|
| 8 |
import os
|
| 9 |
+
# import transformers
|
| 10 |
+
# from transformers.utils.hub import move_cache
|
| 11 |
+
# transformers.utils.move_cache()
|
| 12 |
+
# move_cache()
|
|
|
|
| 13 |
|
| 14 |
+
pipe = StableDiffusion3InstructPix2PixPipeline.from_pretrained("bpathir1/RefEdit-SD3", torch_dtype=torch.float16).to("cuda")
|
| 15 |
|
| 16 |
@spaces.GPU(duration=120)
|
| 17 |
def generate(image, prompt, num_inference_steps=50, image_guidance_scale=1.5, guidance_scale=7.5, seed=255):
|