vinesmsuic
commited on
Commit
•
5d302ff
1
Parent(s):
c02796a
update
Browse files
black_box_image_edit/cosxl/cosxl_edit.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:49740ce22f75e367957c445b561ae5338a6529415bcdec8c043fb736bf80d77b
|
3 |
+
size 6938105373
|
black_box_image_edit/cosxl_edit.py
CHANGED
@@ -21,9 +21,10 @@ class CosXLEdit():
|
|
21 |
from .cosxl.utils import set_timesteps_patched
|
22 |
|
23 |
EDMEulerScheduler.set_timesteps = set_timesteps_patched
|
24 |
-
edit_file = hf_hub_download(repo_id="stabilityai/cosxl", filename="cosxl_edit.safetensors")
|
|
|
25 |
self.pipe = CosStableDiffusionXLInstructPix2PixPipeline.from_single_file(
|
26 |
-
|
27 |
)
|
28 |
self.pipe.scheduler = EDMEulerScheduler(sigma_min=0.002, sigma_max=120.0, sigma_data=1.0, prediction_type="v_prediction")
|
29 |
self.pipe.to(device)
|
|
|
21 |
from .cosxl.utils import set_timesteps_patched
|
22 |
|
23 |
EDMEulerScheduler.set_timesteps = set_timesteps_patched
|
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 |
+
file=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)
|