Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ To generate images, run the following command:
## LTX-Video
- In the folder src/maxdiffusion/models/ltx_video/utils, run:
```bash
python convert_torch_weights_to_jax.py --ckpt_path [LOCAL DIRECTORY FOR WEIGHTS] --transformer_config_path ../xora_v1.2-13B-balanced-128.json
python convert_torch_weights_to_jax.py --ckpt_path [LOCAL DIRECTORY FOR WEIGHTS] --transformer_config_path ../ltxv-13B.json
```
- In the repo folder, run:
```bash
python src/maxdiffusion/generate_ltx_video.py src/maxdiffusion/configs/ltx_video.yml output_dir="[SAME DIRECTORY]" config_path="src/maxdiffusion/models/ltx_video/xora_v1.2-13B-balanced-128.json"
python src/maxdiffusion/generate_ltx_video.py src/maxdiffusion/configs/ltx_video.yml output_dir="[SAME DIRECTORY]" config_path="src/maxdiffusion/models/ltx_video/ltxv-13B.json"
```
- Other generation parameters can be set in ltx_video.yml file.
## Flux
Expand Down
10 changes: 4 additions & 6 deletions src/maxdiffusion/pipelines/ltx_video/ltx_video_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@

def validate_transformer_inputs(prompt_embeds, fractional_coords, latents, encoder_attention_segment_ids):
# Note: reference shape annotated for first pass default inference parameters
max_logging.log("prompts_embeds.shape: ", prompt_embeds.shape, prompt_embeds.dtype) # (3, 256, 4096) float32
max_logging.log("fractional_coords.shape: ", fractional_coords.shape, fractional_coords.dtype) # (3, 3, 3072) float32
max_logging.log("latents.shape: ", latents.shape, latents.dtype) # (1, 3072, 128) float 32
max_logging.log(
"encoder_attention_segment_ids.shape: ", encoder_attention_segment_ids.shape, encoder_attention_segment_ids.dtype
) # (3, 256) int32
max_logging.log(f"prompts_embeds.shape: {prompt_embeds.shape}") # (3, 256, 4096) float32
max_logging.log(f"fractional_coords.shape: {fractional_coords.shape}") # (3, 3, 3072) float32
max_logging.log(f"latents.shape: {latents.shape}") # (1, 3072, 128) float 32
max_logging.log(f"encoder_attention_segment_ids.shape: {encoder_attention_segment_ids.shape}") # (3, 256) int32


class LTXVideoPipeline:
Expand Down
Loading