Instructions to use CiaraRowles/TemporalNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use CiaraRowles/TemporalNet with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("CiaraRowles/TemporalNet") pipe = StableDiffusionControlNetPipeline.from_pretrained( "runwayml/stable-diffusion-v1-5", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
File size: 462 Bytes
53e195f | 1 2 3 4 5 6 7 | pip install transformers
import torch
from transformers import TemporalNetStableDiffusionModel, TemporalNetStableDiffusionConfig, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/temporalnet_stablediffusion_enwik8")
config = TemporalNetStableDiffusionConfig.from_pretrained("EleutherAI/temporalnet_stablediffusion_enwik8")
model = TemporalNetStableDiffusionModel.from_pretrained("EleutherAI/temporalnet_stablediffusion_enwik8", config=config)
|