vinesmsuic
commited on
Commit
•
6b98080
1
Parent(s):
5d302ff
import weights
Browse files
black_box_image_edit/cosxl_edit.py
CHANGED
@@ -24,7 +24,7 @@ class CosXLEdit():
|
|
24 |
#edit_file = hf_hub_download(repo_id="stabilityai/cosxl", filename="cosxl_edit.safetensors")
|
25 |
edit_file_path = "./black_box_image_edit/cosxl/cosxl_edit.safetensors"
|
26 |
self.pipe = CosStableDiffusionXLInstructPix2PixPipeline.from_single_file(
|
27 |
-
|
28 |
)
|
29 |
self.pipe.scheduler = EDMEulerScheduler(sigma_min=0.002, sigma_max=120.0, sigma_data=1.0, prediction_type="v_prediction")
|
30 |
self.pipe.to(device)
|
|
|
24 |
#edit_file = hf_hub_download(repo_id="stabilityai/cosxl", filename="cosxl_edit.safetensors")
|
25 |
edit_file_path = "./black_box_image_edit/cosxl/cosxl_edit.safetensors"
|
26 |
self.pipe = CosStableDiffusionXLInstructPix2PixPipeline.from_single_file(
|
27 |
+
edit_file_path, num_in_channels=8
|
28 |
)
|
29 |
self.pipe.scheduler = EDMEulerScheduler(sigma_min=0.002, sigma_max=120.0, sigma_data=1.0, prediction_type="v_prediction")
|
30 |
self.pipe.to(device)
|