Instructions to use AnthonyGosselin/Ctrl-Crash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AnthonyGosselin/Ctrl-Crash with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("AnthonyGosselin/Ctrl-Crash", 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
| { | |
| "_class_name": "ControlNetModel", | |
| "_diffusers_version": "0.27.2", | |
| "_name_or_path": "controlnet_30900", | |
| "action_dim": 5, | |
| "addition_time_embed_dim": 256, | |
| "bbox_embedding_shape": [ | |
| 4, | |
| 40, | |
| 64 | |
| ], | |
| "block_out_channels": [ | |
| 320, | |
| 640, | |
| 1280, | |
| 1280 | |
| ], | |
| "cross_attention_dim": 1024, | |
| "down_block_types": [ | |
| "CrossAttnDownBlockSpatioTemporal", | |
| "CrossAttnDownBlockSpatioTemporal", | |
| "CrossAttnDownBlockSpatioTemporal", | |
| "DownBlockSpatioTemporal" | |
| ], | |
| "in_channels": 8, | |
| "layers_per_block": 2, | |
| "num_attention_heads": [ | |
| 5, | |
| 10, | |
| 20, | |
| 20 | |
| ], | |
| "num_frames": 25, | |
| "projection_class_embeddings_input_dim": 768, | |
| "sample_size": null, | |
| "transformer_layers_per_block": 1 | |
| } | |