Run this model with HF Jobs
Run haopt/scflow_t2i on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/haopt/scflow_t2i. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/haopt/scflow_t2i on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use haopt/scflow_t2i with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use haopt/scflow_t2i with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("haopt/scflow_t2i", 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
Upload checkpoint-18000 weights
Browse filesFiles changed (11)
- discriminator/config.jsonAdded+68
- discriminator/diffusion_pytorch_model.safetensorsAdded+3
- optimizer.binAdded+3
- optimizer_1.binAdded+3
- random_states_0.pklAdded+3
- scheduler.binAdded+3
- scheduler_1.binAdded+3
- unet/config.jsonAdded+68
- unet/diffusion_pytorch_model.safetensorsAdded+3
- unet_ema/config.jsonAdded+75
- unet_ema/diffusion_pytorch_model.safetensorsAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ "_class_name": "SDDiscriminator", "_diffusers_version": "0.26.3", "_name_or_path": "XCLIU/2_rectified_flow_from_sd_1_5", "act_fn": "silu", "addition_embed_type": null, "addition_embed_type_num_heads": 64, "addition_time_embed_dim": null, "attention_head_dim": 8, "attention_type": "default", "block_out_channels": [ 320, 640, 1280, 1280 ], "center_input_sample": false, "class_embed_type": null, "class_embeddings_concat": false, "conv_in_kernel": 3, "conv_out_kernel": 3, "cross_attention_dim": 768, "cross_attention_norm": null, "down_block_types": [ "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "DownBlock2D" ], "downsample_padding": 1, "dropout": 0.0, "dual_cross_attention": false, "encoder_hid_dim": null, "encoder_hid_dim_type": null, "flip_sin_to_cos": true, "freq_shift": 0, "in_channels": 4, "layers_per_block": 2, "mid_block_only_cross_attention": null, "mid_block_scale_factor": 1, "mid_block_type": "UNetMidBlock2DCrossAttn", "norm_eps": 1e-05, "norm_num_groups": 32, "num_attention_heads": null, "num_class_embeds": null, "only_cross_attention": false, "out_channels": 4, "projection_class_embeddings_input_dim": null, "resnet_out_scale_factor": 1.0, "resnet_skip_time_act": false, "resnet_time_scale_shift": "default", "reverse_transformer_layers_per_block": null, "sample_size": 64, "time_cond_proj_dim": null, "time_embedding_act_fn": null, "time_embedding_dim": null, "time_embedding_type": "positional", "timestep_post_act": null, "transformer_layers_per_block": 1, "up_block_types": [ "UpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D" ], "upcast_attention": false, "use_linear_projection": false}123version https://git-lfs.github.com/spec/v1oid sha256:84c316b5953dd0de4770a92fa43a00b3a5017f6c3ca20b086e06e3168b5dbf89size 707954746123version https://git-lfs.github.com/spec/v1oid sha256:1edeb7cd3178288bb73e2b11019aaf886d6ebbc249f0d2672002d3744e8761efsize 3438661660123version https://git-lfs.github.com/spec/v1oid sha256:dce66895909c6fb3d2bd2878d1b8ce21cede5c1e574920536a690fbb1851a07bsize 1416092450123version https://git-lfs.github.com/spec/v1oid sha256:e92b2c77a5690d4e9a2073adebf3137c95a677a946578eef90ded6fc7a0973efsize 15060123version https://git-lfs.github.com/spec/v1oid sha256:41d4e8b5b77f1d05bc37e64757554209c00feda2e53a784724aff2cd79f0b32bsize 1000123version https://git-lfs.github.com/spec/v1oid sha256:4673c23bd58c25799c051455f20553d9cd35cdc07abc114a714d200ef960b42asize 10081234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ "_class_name": "UNet2DConditionModel", "_diffusers_version": "0.26.3", "_name_or_path": "XCLIU/2_rectified_flow_from_sd_1_5", "act_fn": "silu", "addition_embed_type": null, "addition_embed_type_num_heads": 64, "addition_time_embed_dim": null, "attention_head_dim": 8, "attention_type": "default", "block_out_channels": [ 320, 640, 1280, 1280 ], "center_input_sample": false, "class_embed_type": null, "class_embeddings_concat": false, "conv_in_kernel": 3, "conv_out_kernel": 3, "cross_attention_dim": 768, "cross_attention_norm": null, "down_block_types": [ "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "DownBlock2D" ], "downsample_padding": 1, "dropout": 0.0, "dual_cross_attention": false, "encoder_hid_dim": null, "encoder_hid_dim_type": null, "flip_sin_to_cos": true, "freq_shift": 0, "in_channels": 4, "layers_per_block": 2, "mid_block_only_cross_attention": null, "mid_block_scale_factor": 1, "mid_block_type": "UNetMidBlock2DCrossAttn", "norm_eps": 1e-05, "norm_num_groups": 32, "num_attention_heads": null, "num_class_embeds": null, "only_cross_attention": false, "out_channels": 4, "projection_class_embeddings_input_dim": null, "resnet_out_scale_factor": 1.0, "resnet_skip_time_act": false, "resnet_time_scale_shift": "default", "reverse_transformer_layers_per_block": null, "sample_size": 64, "time_cond_proj_dim": null, "time_embedding_act_fn": null, "time_embedding_dim": null, "time_embedding_type": "positional", "timestep_post_act": null, "transformer_layers_per_block": 1, "up_block_types": [ "UpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D" ], "upcast_attention": false, "use_linear_projection": false}123version https://git-lfs.github.com/spec/v1oid sha256:a9fd6ef6cc579fced719e3da3e15d0f687bf1c3cbae95474c87647c0a46b3786size 1719125992123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ "_class_name": "UNet2DConditionModel", "_diffusers_version": "0.26.3", "_name_or_path": "XCLIU/2_rectified_flow_from_sd_1_5", "act_fn": "silu", "addition_embed_type": null, "addition_embed_type_num_heads": 64, "addition_time_embed_dim": null, "attention_head_dim": 8, "attention_type": "default", "block_out_channels": [ 320, 640, 1280, 1280 ], "center_input_sample": false, "class_embed_type": null, "class_embeddings_concat": false, "conv_in_kernel": 3, "conv_out_kernel": 3, "cross_attention_dim": 768, "cross_attention_norm": null, "decay": 0.9999, "down_block_types": [ "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "DownBlock2D" ], "downsample_padding": 1, "dropout": 0.0, "dual_cross_attention": false, "encoder_hid_dim": null, "encoder_hid_dim_type": null, "flip_sin_to_cos": true, "freq_shift": 0, "in_channels": 4, "inv_gamma": 1.0, "layers_per_block": 2, "mid_block_only_cross_attention": null, "mid_block_scale_factor": 1, "mid_block_type": "UNetMidBlock2DCrossAttn", "min_decay": 0.0, "norm_eps": 1e-05, "norm_num_groups": 32, "num_attention_heads": null, "num_class_embeds": null, "only_cross_attention": false, "optimization_step": 18000, "out_channels": 4, "power": 0.6666666666666666, "projection_class_embeddings_input_dim": null, "resnet_out_scale_factor": 1.0, "resnet_skip_time_act": false, "resnet_time_scale_shift": "default", "reverse_transformer_layers_per_block": null, "sample_size": 64, "time_cond_proj_dim": null, "time_embedding_act_fn": null, "time_embedding_dim": null, "time_embedding_type": "positional", "timestep_post_act": null, "transformer_layers_per_block": 1, "up_block_types": [ "UpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D" ], "upcast_attention": false, "update_after_step": 0, "use_ema_warmup": false, "use_linear_projection": false}123version https://git-lfs.github.com/spec/v1oid sha256:71f9388425cd2c2084fecf1a486e40b5ed7ef926801d25445db44b8fcb33b9b5size 3438167536discriminator/config.jsonAdded+68
discriminator/diffusion_pytorch_model.safetensorsAdded+3
optimizer.binAdded+3
optimizer_1.binAdded+3
random_states_0.pklAdded+3
scheduler.binAdded+3
scheduler_1.binAdded+3
unet/config.jsonAdded+68
unet/diffusion_pytorch_model.safetensorsAdded+3
unet_ema/config.jsonAdded+75
unet_ema/diffusion_pytorch_model.safetensorsAdded+3