Downloads · 30 days
62
8% of all-time downloads
daydreamlive/TemporalNet2-stable-diffusion-xl-base-1.0
TemporalNet2-stable-diffusion-xl-base-1.0 is a machine learning model from daydreamlive. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as openrail++.
This is a TemporalNet2 ControlNet model trained on SDXL (Stable Diffusion XL base 1.0).
Downloads · 30 days
62
8% of all-time downloads
All-time downloads
732
Public
Parameters
1.3B
5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5 GB · 100%
From the Hugging Face model README
This is a TemporalNet2 ControlNet model trained on SDXL (Stable Diffusion XL base 1.0).
TemporalNet2 is a ControlNet variant designed for temporal coherence in video generation. It takes two conditioning inputs:
Total conditioning channels: 6 channels
This model was trained to generate temporally coherent frames by learning from both the visual content of the previous frame and the motion information encoded in optical flow.
from diffusers import StableDiffusionXLControlNetPipeline, ControlNetModel, EulerDiscreteScheduler
from PIL import Image
import torch
# Load the ControlNet model
controlnet = ControlNetModel.from_pretrained(
"YOUR_USERNAME/temporalnet2-sdxl-controlnet",
torch_dtype=torch.float16
)
# Create the pipeline
pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
controlnet=controlnet,
torch_dtype=torch.float16
)
pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config)
pipe.to("cuda")
# Load your conditioning images
prev_frame = Image.open("previous_frame.jpg")
optical_flow = Image.open("optical_flow.jpg")
# Concatenate conditioning images (they will be concatenated in the pipeline)
# Note: You'll need to prepare the 6-channel input by concatenating prev_frame and optical_flow
prompt = "your prompt describing the scene"
# Generate
image = pipe(
prompt=prompt,
image=[prev_frame, optical_flow], # The pipeline will handle concatenation
num_inference_steps=20,
guidance_scale=7.5
).images[0]
image.save("output.jpg")
This model requires specific conditioning inputs:
For best results, ensure your optical flow visualization uses a consistent color scheme and magnitude representation.
This model is released under the same license as SDXL (OpenRAIL++).