Skip to content

Commit 032a56b

Browse files
working b2b inference
1 parent 53e425d commit 032a56b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/diffusers/pipelines/cosmos/pipeline_cosmos25_predict.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,6 @@ def __call__(
608608
f"Cosmos Guardrail detected unsafe text in the prompt: {p}. Please ensure that the "
609609
f"prompt abides by the NVIDIA Open Model License Agreement."
610610
)
611-
self.safety_checker.to("cpu")
612611

613612
# Define call parameters
614613
if prompt is not None and isinstance(prompt, str):
@@ -771,7 +770,6 @@ def __call__(
771770
video = np.stack(video_batch).astype(np.float32) / 255.0 * 2 - 1
772771
video = torch.from_numpy(video).permute(0, 4, 1, 2, 3)
773772
video = self.video_processor.postprocess_video(video, output_type=output_type)
774-
self.safety_checker.to("cpu")
775773
else:
776774
video = latents
777775

0 commit comments

Comments
 (0)