Update README.md
Browse files
README.md
CHANGED
|
@@ -58,9 +58,11 @@ pattern_dict={
|
|
| 58 |
pipe = Cosmos2TextToImagePipeline.from_pretrained("nvidia/Cosmos-Predict2-14B-Text2Image", torch_dtype=torch.bfloat16)
|
| 59 |
pipe.enable_model_cpu_offload()
|
| 60 |
DFloat11Model.from_pretrained("mingyi456/Cosmos-Predict2-14B-Text2Image-DF11", device='cpu', bfloat16_model=pipe.transformer)
|
| 61 |
-
prompt = "A
|
|
|
|
| 62 |
image = pipe(
|
| 63 |
prompt,
|
|
|
|
| 64 |
max_sequence_length=256,
|
| 65 |
generator=torch.Generator("cpu").manual_seed(0)
|
| 66 |
).images[0]
|
|
@@ -68,4 +70,5 @@ pattern_dict={
|
|
| 68 |
```
|
| 69 |
#### ComfyUI
|
| 70 |
|
| 71 |
-
~~Follow the instructions (have not tested myself) here: https://github.com/LeanModels/ComfyUI-DFloat11~~
|
|
|
|
|
|
| 58 |
pipe = Cosmos2TextToImagePipeline.from_pretrained("nvidia/Cosmos-Predict2-14B-Text2Image", torch_dtype=torch.bfloat16)
|
| 59 |
pipe.enable_model_cpu_offload()
|
| 60 |
DFloat11Model.from_pretrained("mingyi456/Cosmos-Predict2-14B-Text2Image-DF11", device='cpu', bfloat16_model=pipe.transformer)
|
| 61 |
+
prompt = "A close-up shot captures a vibrant yellow scrubber vigorously working on a grimy plate, its bristles moving in circular motions to lift stubborn grease and food residue. The dish, once covered in remnants of a hearty meal, gradually reveals its original glossy surface. Suds form and bubble around the scrubber, creating a satisfying visual of cleanliness in progress. The sound of scrubbing fills the air, accompanied by the gentle clinking of the dish against the sink. As the scrubber continues its task, the dish transforms, gleaming under the bright kitchen lights, symbolizing the triumph of cleanliness over mess."
|
| 62 |
+
negative_prompt = "The video captures a series of frames showing ugly scenes, static with no motion, motion blur, over-saturation, shaky footage, low resolution, grainy texture, pixelated images, poorly lit areas, underexposed and overexposed scenes, poor color balance, washed out colors, choppy sequences, jerky movements, low frame rate, artifacting, color banding, unnatural transitions, outdated special effects, fake elements, unconvincing visuals, poorly edited content, jump cuts, visual noise, and flickering. Overall, the video is of poor quality."
|
| 63 |
image = pipe(
|
| 64 |
prompt,
|
| 65 |
+
negative_prompt=negative_prompt,
|
| 66 |
max_sequence_length=256,
|
| 67 |
generator=torch.Generator("cpu").manual_seed(0)
|
| 68 |
).images[0]
|
|
|
|
| 70 |
```
|
| 71 |
#### ComfyUI
|
| 72 |
|
| 73 |
+
~~Follow the instructions (have not tested myself) here: https://github.com/LeanModels/ComfyUI-DFloat11~~
|
| 74 |
+
Currently, this model will not work with ComfyUI out of the box, because the custom node currently only supports Flux models. It should be possible to modify the code to successfully load this model as well, but it requires another `pattern_dict` that is of a completely different form compared to the one used to compress the model. If you are interested in running this model in ComfyUI, please try to contact the developer to request support.
|