Instructions to use Supermaxman/hubble-diffusion-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Supermaxman/hubble-diffusion-2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Supermaxman/hubble-diffusion-2", dtype=torch.bfloat16, device_map="cuda") prompt = "Hubble snaps images of the birthplace of stars within a cluster: The dust and gas expand within the cluster due to the powerful influence of baby stars. With these new images comes improved detail and a clearer view for astronomers to study how early stars are born and change over time." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download unet/config.json from Supermaxman/hubble-diffusion-2: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/Supermaxman/hubble-diffusion-2/resolve/main/unet/config.json
- Command line
-
hf download hf://Supermaxman/hubble-diffusion-2/unet/config.json
-
curl -L -o config.json https://huggingface.co/Supermaxman/hubble-diffusion-2/resolve/main/unet/config.json
1.34 kB
| { | |
| "_class_name": "UNet2DConditionModel", | |
| "_diffusers_version": "0.14.0.dev0", | |
| "_name_or_path": "/content/gdrive/MyDrive/Models/hubble/esa-hubble-v2/checkpoint-7500", | |
| "act_fn": "silu", | |
| "attention_head_dim": [ | |
| 5, | |
| 10, | |
| 20, | |
| 20 | |
| ], | |
| "block_out_channels": [ | |
| 320, | |
| 640, | |
| 1280, | |
| 1280 | |
| ], | |
| "center_input_sample": false, | |
| "class_embed_type": null, | |
| "conv_in_kernel": 3, | |
| "conv_out_kernel": 3, | |
| "cross_attention_dim": 1024, | |
| "down_block_types": [ | |
| "CrossAttnDownBlock2D", | |
| "CrossAttnDownBlock2D", | |
| "CrossAttnDownBlock2D", | |
| "DownBlock2D" | |
| ], | |
| "downsample_padding": 1, | |
| "dual_cross_attention": false, | |
| "flip_sin_to_cos": true, | |
| "freq_shift": 0, | |
| "in_channels": 4, | |
| "layers_per_block": 2, | |
| "mid_block_scale_factor": 1, | |
| "mid_block_type": "UNetMidBlock2DCrossAttn", | |
| "norm_eps": 1e-05, | |
| "norm_num_groups": 32, | |
| "num_class_embeds": null, | |
| "only_cross_attention": false, | |
| "out_channels": 4, | |
| "projection_class_embeddings_input_dim": null, | |
| "resnet_time_scale_shift": "default", | |
| "sample_size": 64, | |
| "time_cond_proj_dim": null, | |
| "time_embedding_type": "positional", | |
| "timestep_post_act": null, | |
| "up_block_types": [ | |
| "UpBlock2D", | |
| "CrossAttnUpBlock2D", | |
| "CrossAttnUpBlock2D", | |
| "CrossAttnUpBlock2D" | |
| ], | |
| "upcast_attention": false, | |
| "use_linear_projection": true | |
| } | |