Instructions to use Echo-Team/tiny-echo-wm-flash-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Echo-Team/tiny-echo-wm-flash-diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Echo-Team/tiny-echo-wm-flash-diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
This is a modular diffusion pipeline built with 🧨 Diffusers' modular pipeline framework.
Pipeline Type: EchoWMFlashBlocks
Description:
This pipeline uses a 5-block architecture that can be customized and extended.
Example Usage
[TODO]
Pipeline Architecture
This modular pipeline is composed of the following blocks:
- text (
EchoWMFlashTextConditioningStep) - camera (
EchoWMFlashCameraConditionStep) - image_encoder (
EchoWMVaeEncoderStep)- VAE encoder step that encodes the input
imageinto normalized latents for image-to-video generation.
- VAE encoder step that encodes the input
- denoise (
EchoWMFlashDenoiseStep)- Autoregressively denoise and commit each Echo-WM Flash video/audio chunk.
- decode (
EchoWMDecoderStep)
Model Components
- text_encoder (
PreTrainedModel) - tokenizer (
PreTrainedTokenizerBase) - connectors (
LTX2TextConnectors) - transformer (
EchoWMTransformer3DModel) - vae (
AutoencoderKLLTX2Video) - video_processor (
VideoProcessor) - audio_vae (
AutoencoderKLLTX2Audio) - scheduler (
FlowMatchEulerDiscreteScheduler) - vocoder (
LTX2Vocoder)
Input/Output Specification
Inputs:
prompt(str): The prompt or prompts to guide image generation.max_sequence_length(int, optional, defaults to1024): Maximum sequence length for prompt encoding.action(str): WASD/IJKL action program.height(int, optional, defaults to704): The height in pixels of the generated image.width(int, optional, defaults to1280): The width in pixels of the generated image.num_frames(int, optional, defaults to241): Number of output video frames.frame_rate(float, optional, defaults to24.0): Output video frame rate.translation_speed(float, optional, defaults to0.05): Per-frame camera translation speed for W/A/S/D actions.rotation_speed_deg(float, optional, defaults to0.4): Per-frame camera yaw speed in degrees for J/L actions.pitch_speed_deg(float, optional, defaults to0.2): Per-frame camera pitch speed in degrees for I/K actions.pitch_limit_deg(float, optional, defaults to40.0): Maximum absolute camera pitch in degrees.fov_deg(float, optional, defaults to70.0): Horizontal camera field of view in degrees.num_videos_per_prompt(int, optional, defaults to1): The number of images to generate per prompt.image(Image | list): Reference image(s) for denoising. Can be a single image or list of images.image_crf(int, optional): H.264 CRF used to re-compress the conditioningimagebefore VAE encode, matching the compression the model was trained against.None(default) resolves from the text-encoder generation (33 through LTX-2.3, 18 for LTX-2.5). Pass0to skip re-compression. Requires aPIL.Image.Imagewhen re-compression runs.generator(Generator, optional): Torch generator for deterministic generation.timesteps(list, optional, defaults to[1000, 750, 500, 250]): Distilled denoising timestep IDs for each autoregressive chunk.video_cache_size(int, optional, defaults to19): Maximum number of latent video frames retained in the bounded KV cache.video_sink_size(int, optional, defaults to7): Number of leading latent video frames permanently retained as the cache sink.output_type(str, optional, defaults topil): Output format: 'pil', 'np', 'pt'.decode_timestep(None, optional, defaults to0.0): The timestep at which the VAE decodes the final latents.decode_noise_scale(None, optional): Noise interpolation factor applied to the latents at the decode timestep.vae_tiling(bool, optional, defaults toTrue): Enable spatial and temporal VAE decoding tiles to reduce peak memory usage.vae_tile_size(int, optional, defaults to512): Spatial tile long-side size in pixels; the short side follows the video aspect ratio.vae_tile_overlap(int, optional, defaults to64): Spatial tile overlap in pixels.vae_temporal_tile_size(int, optional, defaults to64): Temporal tile size in sample frames, excluding the causal boundary frame.vae_temporal_tile_overlap(int, optional, defaults to24): Temporal tile overlap in sample frames.
Outputs:
videos(list): The generated videos.audio(Tensor): The generated audio waveform.
- Downloads last month
- 42