Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ model_2b_id = "diffusers-internal-dev/ct2i-2B"
|
|
10 |
pipe_14b = Cosmos2TextToImagePipeline.from_pretrained(model_14b_id, torch_dtype=torch.bfloat16)
|
11 |
pipe_14b.to("cuda")
|
12 |
|
13 |
-
pipe_2b = Cosmos2TextToImagePipeline.from_pretrained(model_2b_id, torch_dtype=torch.bfloat16)
|
14 |
pipe_2b.to("cuda")
|
15 |
|
16 |
scheduler = EDMEulerScheduler(
|
|
|
10 |
pipe_14b = Cosmos2TextToImagePipeline.from_pretrained(model_14b_id, torch_dtype=torch.bfloat16)
|
11 |
pipe_14b.to("cuda")
|
12 |
|
13 |
+
pipe_2b = Cosmos2TextToImagePipeline.from_pretrained(model_2b_id, text_encoder=pipe_14b.text_encoder, safety_checker=pipe_14b.safety_checker, vae=pipe_14b.vae, tokenizer=pipe_14b.tokenizer, torch_dtype=torch.bfloat16)
|
14 |
pipe_2b.to("cuda")
|
15 |
|
16 |
scheduler = EDMEulerScheduler(
|