Upload LTXVideo2Pipeline
Browse files- .gitattributes +1 -0
- audio_preprocessor/config.json +33 -0
- model_index.json +8 -0
- text_encoder_processor/chat_template.jinja +47 -0
- text_encoder_processor/preprocessor_config.json +29 -0
- text_encoder_processor/processor_config.json +4 -0
- text_encoder_processor/special_tokens_map.json +33 -0
- text_encoder_processor/tokenizer.json +3 -0
- text_encoder_processor/tokenizer_config.json +0 -0
.gitattributes
CHANGED
|
@@ -42,3 +42,4 @@ transformer/model.flashpack filter=lfs diff=lfs merge=lfs -text
|
|
| 42 |
video_decoder/model.flashpack filter=lfs diff=lfs merge=lfs -text
|
| 43 |
video_encoder/model.flashpack filter=lfs diff=lfs merge=lfs -text
|
| 44 |
vocoder/model.flashpack filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 42 |
video_decoder/model.flashpack filter=lfs diff=lfs merge=lfs -text
|
| 43 |
video_encoder/model.flashpack filter=lfs diff=lfs merge=lfs -text
|
| 44 |
vocoder/model.flashpack filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
text_encoder_processor/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
audio_preprocessor/config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "AudioPreprocessor",
|
| 3 |
+
"_diffusers_version": "0.36.0",
|
| 4 |
+
"add_ambience": true,
|
| 5 |
+
"add_reverb": true,
|
| 6 |
+
"add_room": true,
|
| 7 |
+
"ambience_rms_db": -48.0,
|
| 8 |
+
"bitrate": "256k",
|
| 9 |
+
"codec": "mp3",
|
| 10 |
+
"container_format": null,
|
| 11 |
+
"do_comp": true,
|
| 12 |
+
"do_eq": false,
|
| 13 |
+
"do_limiter": true,
|
| 14 |
+
"do_roundtrip": true,
|
| 15 |
+
"final_peak_dbfs": -1.0,
|
| 16 |
+
"force_stereo": true,
|
| 17 |
+
"hpf_hz": 90.0,
|
| 18 |
+
"initial_peak_dbfs": -3.0,
|
| 19 |
+
"limit_dbfs": -1.0,
|
| 20 |
+
"lpf_hz": 10000.0,
|
| 21 |
+
"narrow_width": 0.35,
|
| 22 |
+
"output_format": "s16p",
|
| 23 |
+
"predelay_ms": 12.0,
|
| 24 |
+
"presence_gain_db": 2.0,
|
| 25 |
+
"return_float": true,
|
| 26 |
+
"reverb_wet": 0.04,
|
| 27 |
+
"room_bed_rms_db": -52.0,
|
| 28 |
+
"room_hp_hz": 40.0,
|
| 29 |
+
"room_lp_hz": 12000.0,
|
| 30 |
+
"room_noise_kind": "pink",
|
| 31 |
+
"rt60": 0.35,
|
| 32 |
+
"sr": 16000
|
| 33 |
+
}
|
model_index.json
CHANGED
|
@@ -9,6 +9,10 @@
|
|
| 9 |
"ltx2.model.audio_vae.audio_vae",
|
| 10 |
"Encoder"
|
| 11 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
"spatial_upsampler": [
|
| 13 |
"ltx2.model.upsampler.model",
|
| 14 |
"LatentUpsampler"
|
|
@@ -17,6 +21,10 @@
|
|
| 17 |
"ltx2.model.text_encoder.gemma.model",
|
| 18 |
"LTXTextEncoderModel"
|
| 19 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
"tokenizer": [
|
| 21 |
"transformers",
|
| 22 |
"GemmaTokenizerFast"
|
|
|
|
| 9 |
"ltx2.model.audio_vae.audio_vae",
|
| 10 |
"Encoder"
|
| 11 |
],
|
| 12 |
+
"audio_preprocessor": [
|
| 13 |
+
"ltx2.model.audio_preprocessor",
|
| 14 |
+
"AudioPreprocessor"
|
| 15 |
+
],
|
| 16 |
"spatial_upsampler": [
|
| 17 |
"ltx2.model.upsampler.model",
|
| 18 |
"LatentUpsampler"
|
|
|
|
| 21 |
"ltx2.model.text_encoder.gemma.model",
|
| 22 |
"LTXTextEncoderModel"
|
| 23 |
],
|
| 24 |
+
"text_encoder_processor": [
|
| 25 |
+
"transformers",
|
| 26 |
+
"Gemma3Processor"
|
| 27 |
+
],
|
| 28 |
"tokenizer": [
|
| 29 |
"transformers",
|
| 30 |
"GemmaTokenizerFast"
|
text_encoder_processor/chat_template.jinja
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{ bos_token }}
|
| 2 |
+
{%- if messages[0]['role'] == 'system' -%}
|
| 3 |
+
{%- if messages[0]['content'] is string -%}
|
| 4 |
+
{%- set first_user_prefix = messages[0]['content'] + '
|
| 5 |
+
|
| 6 |
+
' -%}
|
| 7 |
+
{%- else -%}
|
| 8 |
+
{%- set first_user_prefix = messages[0]['content'][0]['text'] + '
|
| 9 |
+
|
| 10 |
+
' -%}
|
| 11 |
+
{%- endif -%}
|
| 12 |
+
{%- set loop_messages = messages[1:] -%}
|
| 13 |
+
{%- else -%}
|
| 14 |
+
{%- set first_user_prefix = "" -%}
|
| 15 |
+
{%- set loop_messages = messages -%}
|
| 16 |
+
{%- endif -%}
|
| 17 |
+
{%- for message in loop_messages -%}
|
| 18 |
+
{%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%}
|
| 19 |
+
{{ raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") }}
|
| 20 |
+
{%- endif -%}
|
| 21 |
+
{%- if (message['role'] == 'assistant') -%}
|
| 22 |
+
{%- set role = "model" -%}
|
| 23 |
+
{%- else -%}
|
| 24 |
+
{%- set role = message['role'] -%}
|
| 25 |
+
{%- endif -%}
|
| 26 |
+
{{ '<start_of_turn>' + role + '
|
| 27 |
+
' + (first_user_prefix if loop.first else "") }}
|
| 28 |
+
{%- if message['content'] is string -%}
|
| 29 |
+
{{ message['content'] | trim }}
|
| 30 |
+
{%- elif message['content'] is iterable -%}
|
| 31 |
+
{%- for item in message['content'] -%}
|
| 32 |
+
{%- if item['type'] == 'image' -%}
|
| 33 |
+
{{ '<start_of_image>' }}
|
| 34 |
+
{%- elif item['type'] == 'text' -%}
|
| 35 |
+
{{ item['text'] | trim }}
|
| 36 |
+
{%- endif -%}
|
| 37 |
+
{%- endfor -%}
|
| 38 |
+
{%- else -%}
|
| 39 |
+
{{ raise_exception("Invalid content type") }}
|
| 40 |
+
{%- endif -%}
|
| 41 |
+
{{ '<end_of_turn>
|
| 42 |
+
' }}
|
| 43 |
+
{%- endfor -%}
|
| 44 |
+
{%- if add_generation_prompt -%}
|
| 45 |
+
{{'<start_of_turn>model
|
| 46 |
+
'}}
|
| 47 |
+
{%- endif -%}
|
text_encoder_processor/preprocessor_config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": null,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_pan_and_scan": null,
|
| 5 |
+
"do_rescale": true,
|
| 6 |
+
"do_resize": true,
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.5,
|
| 9 |
+
0.5,
|
| 10 |
+
0.5
|
| 11 |
+
],
|
| 12 |
+
"image_processor_type": "Gemma3ImageProcessor",
|
| 13 |
+
"image_seq_length": 256,
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"pan_and_scan_max_num_crops": null,
|
| 20 |
+
"pan_and_scan_min_crop_size": null,
|
| 21 |
+
"pan_and_scan_min_ratio_to_activate": null,
|
| 22 |
+
"processor_class": "Gemma3Processor",
|
| 23 |
+
"resample": 2,
|
| 24 |
+
"rescale_factor": 0.00392156862745098,
|
| 25 |
+
"size": {
|
| 26 |
+
"height": 896,
|
| 27 |
+
"width": 896
|
| 28 |
+
}
|
| 29 |
+
}
|
text_encoder_processor/processor_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_seq_length": 256,
|
| 3 |
+
"processor_class": "Gemma3Processor"
|
| 4 |
+
}
|
text_encoder_processor/special_tokens_map.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"boi_token": "<start_of_image>",
|
| 3 |
+
"bos_token": {
|
| 4 |
+
"content": "<bos>",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false
|
| 9 |
+
},
|
| 10 |
+
"eoi_token": "<end_of_image>",
|
| 11 |
+
"eos_token": {
|
| 12 |
+
"content": "<eos>",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false
|
| 17 |
+
},
|
| 18 |
+
"image_token": "<image_soft_token>",
|
| 19 |
+
"pad_token": {
|
| 20 |
+
"content": "<pad>",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false
|
| 25 |
+
},
|
| 26 |
+
"unk_token": {
|
| 27 |
+
"content": "<unk>",
|
| 28 |
+
"lstrip": false,
|
| 29 |
+
"normalized": false,
|
| 30 |
+
"rstrip": false,
|
| 31 |
+
"single_word": false
|
| 32 |
+
}
|
| 33 |
+
}
|
text_encoder_processor/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4667f2089529e8e7657cfb6d1c19910ae71ff5f28aa7ab2ff2763330affad795
|
| 3 |
+
size 33384568
|
text_encoder_processor/tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|