Introduction of TemporalNet2-stable-diffusion-xl-base-1.0
Model Details of TemporalNet2-stable-diffusion-xl-base-1.0
TemporalNet2 ControlNet for SDXL
This is a TemporalNet2 ControlNet model trained on SDXL (Stable Diffusion XL base 1.0).
Model Description
TemporalNet2 is a ControlNet variant designed for temporal coherence in video generation. It takes two conditioning inputs:
Previous Frame
: The previous frame in the video sequence (3 channels)
Optical Flow
: The optical flow between the previous and current frame (3 channels)
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.
Usage
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")
Training Details
Base Model
: stabilityai/stable-diffusion-xl-base-1.0
Training Resolution
: Multi-resolution (512, 640, 768, 896, 1024px)
Conditioning Channels
: 6 (3 for previous frame + 3 for optical flow)
Training Steps
: 25,000
Mixed Precision
: bfloat16
Limitations
This model requires specific conditioning inputs:
The previous frame from your video sequence
The optical flow computed between frames
For best results, ensure your optical flow visualization uses a consistent color scheme and magnitude representation.
License
This model is released under the same license as SDXL (OpenRAIL++).
Runs of daydreamlive TemporalNet2-stable-diffusion-xl-base-1.0 on huggingface.co
35
Total runs
-3
24-hour runs
-9
3-day runs
-7
7-day runs
-15
30-day runs
More Information About TemporalNet2-stable-diffusion-xl-base-1.0 huggingface.co Model
More TemporalNet2-stable-diffusion-xl-base-1.0 license Visit here:
TemporalNet2-stable-diffusion-xl-base-1.0 huggingface.co is an AI model on huggingface.co that provides TemporalNet2-stable-diffusion-xl-base-1.0's model effect (), which can be used instantly with this daydreamlive TemporalNet2-stable-diffusion-xl-base-1.0 model. huggingface.co supports a free trial of the TemporalNet2-stable-diffusion-xl-base-1.0 model, and also provides paid use of the TemporalNet2-stable-diffusion-xl-base-1.0. Support call TemporalNet2-stable-diffusion-xl-base-1.0 model through api, including Node.js, Python, http.
TemporalNet2-stable-diffusion-xl-base-1.0 huggingface.co is an online trial and call api platform, which integrates TemporalNet2-stable-diffusion-xl-base-1.0's modeling effects, including api services, and provides a free online trial of TemporalNet2-stable-diffusion-xl-base-1.0, you can try TemporalNet2-stable-diffusion-xl-base-1.0 online for free by clicking the link below.
daydreamlive TemporalNet2-stable-diffusion-xl-base-1.0 online free url in huggingface.co:
TemporalNet2-stable-diffusion-xl-base-1.0 is an open source model from GitHub that offers a free installation service, and any user can find TemporalNet2-stable-diffusion-xl-base-1.0 on GitHub to install. At the same time, huggingface.co provides the effect of TemporalNet2-stable-diffusion-xl-base-1.0 install, users can directly use TemporalNet2-stable-diffusion-xl-base-1.0 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
TemporalNet2-stable-diffusion-xl-base-1.0 install url in huggingface.co: