Shaleen123
commited on
Commit
•
89a265e
1
Parent(s):
b690d77
Update README.md
Browse files
README.md
CHANGED
@@ -58,7 +58,7 @@ original_image = original_image.resize((768, 512))
|
|
58 |
from diffusers import AutoPipelineForImage2Image
|
59 |
import torch
|
60 |
|
61 |
-
pipe = AutoPipelineForImage2Image.from_pretrained("
|
62 |
pipe.enable_model_cpu_offload()
|
63 |
|
64 |
prompt = "A fantasy landscape, Cinematic lighting"
|
@@ -104,7 +104,7 @@ weights = [0.3, 0.3, 0.4]
|
|
104 |
prompt = ""
|
105 |
prior_out = pipe_prior.interpolate(images_texts, weights)
|
106 |
|
107 |
-
pipe = KandinskyV22Pipeline.from_pretrained("
|
108 |
pipe.to("cuda")
|
109 |
|
110 |
image = pipe(**prior_out, height=768, width=768).images[0]
|
|
|
58 |
from diffusers import AutoPipelineForImage2Image
|
59 |
import torch
|
60 |
|
61 |
+
pipe = AutoPipelineForImage2Image.from_pretrained("Shaleen123/kandinsky_2.5", torch_dtype=torch.float16)
|
62 |
pipe.enable_model_cpu_offload()
|
63 |
|
64 |
prompt = "A fantasy landscape, Cinematic lighting"
|
|
|
104 |
prompt = ""
|
105 |
prior_out = pipe_prior.interpolate(images_texts, weights)
|
106 |
|
107 |
+
pipe = KandinskyV22Pipeline.from_pretrained("Shaleen123/kandinsky_2.5", torch_dtype=torch.float16)
|
108 |
pipe.to("cuda")
|
109 |
|
110 |
image = pipe(**prior_out, height=768, width=768).images[0]
|