Spaces:
Running
Running
commit
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ def disabled_safety_checker(images, clip_input):
|
|
133 |
|
134 |
image_pipe = FluxPipeline.from_pretrained(base, torch_dtype=torch.bfloat16).to(device)
|
135 |
image_pipe.enable_model_cpu_offload()
|
136 |
-
image_pipe.safety_checker =
|
137 |
|
138 |
video_pipe = CogVideoXImageToVideoPipeline.from_pretrained(
|
139 |
"THUDM/CogVideoX-5b-I2V",
|
@@ -141,7 +141,7 @@ video_pipe = CogVideoXImageToVideoPipeline.from_pretrained(
|
|
141 |
).to(device)
|
142 |
video_pipe.vae.enable_tiling()
|
143 |
video_pipe.vae.enable_slicing()
|
144 |
-
video_pipe.safety_checker =
|
145 |
|
146 |
# functionality
|
147 |
|
|
|
133 |
|
134 |
image_pipe = FluxPipeline.from_pretrained(base, torch_dtype=torch.bfloat16).to(device)
|
135 |
image_pipe.enable_model_cpu_offload()
|
136 |
+
image_pipe.safety_checker = None
|
137 |
|
138 |
video_pipe = CogVideoXImageToVideoPipeline.from_pretrained(
|
139 |
"THUDM/CogVideoX-5b-I2V",
|
|
|
141 |
).to(device)
|
142 |
video_pipe.vae.enable_tiling()
|
143 |
video_pipe.vae.enable_slicing()
|
144 |
+
video_pipe.safety_checker = None
|
145 |
|
146 |
# functionality
|
147 |
|