Run this model with HF Jobs
Run Sourabh2/Human_Face_generator 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/Sourabh2/Human_Face_generator. 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/Sourabh2/Human_Face_generator 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 Sourabh2/Human_Face_generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Sourabh2/Human_Face_generator with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Sourabh2/Human_Face_generator", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload folder using huggingface_hub
Browse filesFiles changed (30)
- checkpoint-1000/optimizer.binAdded+3
- checkpoint-1000/random_states_0.pklAdded+3
- checkpoint-1000/scaler.ptAdded+3
- checkpoint-1000/scheduler.binAdded+3
- checkpoint-1000/unet/config.jsonAdded+68
- checkpoint-1000/unet/diffusion_pytorch_model.safetensorsAdded+3
- checkpoint-500/optimizer.binAdded+3
- checkpoint-500/random_states_0.pklAdded+3
- checkpoint-500/scaler.ptAdded+3
- checkpoint-500/scheduler.binAdded+3
- checkpoint-500/unet/config.jsonAdded+68
- checkpoint-500/unet/diffusion_pytorch_model.safetensorsAdded+3
- feature_extractor/preprocessor_config.jsonAdded+27
- logs/text2image-fine-tune/1723372610.764281/events.out.tfevents.1723372610.2b5359dca8e6.169.1Added+3
- logs/text2image-fine-tune/1723372610.7667599/hparams.ymlAdded+55
- logs/text2image-fine-tune/events.out.tfevents.1723372610.2b5359dca8e6.169.0Added+3
- model_index.jsonAdded+38
- safety_checker/config.jsonAdded+28
- safety_checker/model.safetensorsAdded+3
- scheduler/scheduler_config.jsonAdded+15
- text_encoder/config.jsonAdded+25
- text_encoder/model.safetensorsAdded+3
- tokenizer/merges.txtAdded
- tokenizer/special_tokens_map.jsonAdded+24
- tokenizer/tokenizer_config.jsonAdded+30
- tokenizer/vocab.jsonAdded
- unet/config.jsonAdded+68
- unet/diffusion_pytorch_model.safetensorsAdded+3
- vae/config.jsonAdded+38
- vae/diffusion_pytorch_model.safetensorsAdded+3
123version https://git-lfs.github.com/spec/v1oid sha256:12f1e7575f2d0e6bbbdf7c3aacc469e0e52d3f272048693ecd16da9c8939c637size 1725110394123version https://git-lfs.github.com/spec/v1oid sha256:96c5d733af50fa7c593890a2b26ba351ca031ae218260eedd66f12ff55b61a52size 14668123version https://git-lfs.github.com/spec/v1oid sha256:9d8fdcd0311eba9854fff738038ed4c1a269832665b4d88ba4e4e3d02a1a7e0esize 988123version https://git-lfs.github.com/spec/v1oid sha256:81a7fe0a2983de695c44ba167520d4ce1ca01157e36e90498bee8c9d8e4b61fcsize 10001234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ "_class_name": "UNet2DConditionModel", "_diffusers_version": "0.30.0.dev0", "_name_or_path": "runwayml/stable-diffusion-v1-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:ada0589a874d73ee16f000c6d0f73d4efdec129bea85e35bbe5d0cd7e4c976aasize 3438167536123version https://git-lfs.github.com/spec/v1oid sha256:a44772510a3fb05cd4b64a40b0644e0de419f71849ce342407f904adb500e65dsize 1725110394123version https://git-lfs.github.com/spec/v1oid sha256:9de5d3f50025f6a302712353706ab09a9c23c32123869d530f825b09b2530eddsize 14668123version https://git-lfs.github.com/spec/v1oid sha256:18b984273ea2d45b7ffb1d047bb359d93111e41fcad70d16a1b453fd38f72636size 988123version https://git-lfs.github.com/spec/v1oid sha256:9d16ae9dedf4c45ceadc467593037d83423677715e75ab402a9f44aa81de9b84size 10001234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ "_class_name": "UNet2DConditionModel", "_diffusers_version": "0.30.0.dev0", "_name_or_path": "runwayml/stable-diffusion-v1-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:24cc5b558d1ed792a24d2c7cb78da65f07e66551fb2eb951cfdc0ef9b80db505size 3438167536123456789101112131415161718192021222324252627{ "crop_size": { "height": 224, "width": 224 }, "do_center_crop": true, "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.48145466, 0.4578275, 0.40821073 ], "image_processor_type": "CLIPImageProcessor", "image_std": [ 0.26862954, 0.26130258, 0.27577711 ], "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "shortest_edge": 224 }}123version https://git-lfs.github.com/spec/v1oid sha256:fc463c2b263f3510865cf523f78a7f099ac559b81d8c0f591d1f43046004db90size 245512345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1.0e-08adam_weight_decay: 0.01allow_tf32: falsecache_dir: nullcaption_column: textcenter_crop: truecheckpointing_steps: 500checkpoints_total_limit: nulldataloader_num_workers: 0dataset_config_name: nulldataset_name: Sourabh2/Human_facedream_detail_preservation: 1.0dream_training: falseenable_xformers_memory_efficient_attention: trueforeach_ema: falsegradient_accumulation_steps: 4gradient_checkpointing: truehub_model_id: nullhub_token: nullimage_column: imageinput_perturbation: 0learning_rate: 1.0e-05local_rank: 0logging_dir: logslr_scheduler: constantlr_warmup_steps: 0max_grad_norm: 1.0max_train_samples: nullmax_train_steps: 1000mixed_precision: fp16noise_offset: 0non_ema_revision: nullnum_train_epochs: 31offload_ema: falseoutput_dir: sd-naruto-modelprediction_type: nullpretrained_model_name_or_path: runwayml/stable-diffusion-v1-5push_to_hub: falserandom_flip: truereport_to: tensorboardresolution: 512resume_from_checkpoint: nullrevision: nullscale_lr: falseseed: nullsnr_gamma: nulltracker_project_name: text2image-fine-tunetrain_batch_size: 1train_data_dir: nulluse_8bit_adam: trueuse_ema: falsevalidation_epochs: 5variant: null123version https://git-lfs.github.com/spec/v1oid sha256:f340e6d67853b8eb3d75ca5f68a50a52cde591532f86df3a6980c9304005f14csize 489611234567891011121314151617181920212223242526272829303132333435363738{ "_class_name": "StableDiffusionPipeline", "_diffusers_version": "0.30.0.dev0", "_name_or_path": "runwayml/stable-diffusion-v1-5", "feature_extractor": [ "transformers", "CLIPImageProcessor" ], "image_encoder": [ null, null ], "requires_safety_checker": true, "safety_checker": [ "stable_diffusion", "StableDiffusionSafetyChecker" ], "scheduler": [ "diffusers", "PNDMScheduler" ], "text_encoder": [ "transformers", "CLIPTextModel" ], "tokenizer": [ "transformers", "CLIPTokenizer" ], "unet": [ "diffusers", "UNet2DConditionModel" ], "vae": [ "diffusers", "AutoencoderKL" ]}12345678910111213141516171819202122232425262728{ "_name_or_path": "/root/.cache/huggingface/hub/models--runwayml--stable-diffusion-v1-5/snapshots/1d0c4ebf6ff58a5caecab40fa1406526bca4b5b9/safety_checker", "architectures": [ "StableDiffusionSafetyChecker" ], "initializer_factor": 1.0, "logit_scale_init_value": 2.6592, "model_type": "clip", "projection_dim": 768, "text_config": { "dropout": 0.0, "hidden_size": 768, "intermediate_size": 3072, "model_type": "clip_text_model", "num_attention_heads": 12 }, "torch_dtype": "float32", "transformers_version": "4.42.3", "vision_config": { "dropout": 0.0, "hidden_size": 1024, "intermediate_size": 4096, "model_type": "clip_vision_model", "num_attention_heads": 16, "num_hidden_layers": 24, "patch_size": 14 }}123version https://git-lfs.github.com/spec/v1oid sha256:fb351a5ded815c3ff744968ad9c6b218d071b9d313d04f35e813b84b4c0ffde8size 1215979664123456789101112131415{ "_class_name": "PNDMScheduler", "_diffusers_version": "0.30.0.dev0", "beta_end": 0.012, "beta_schedule": "scaled_linear", "beta_start": 0.00085, "clip_sample": false, "num_train_timesteps": 1000, "prediction_type": "epsilon", "set_alpha_to_one": false, "skip_prk_steps": true, "steps_offset": 1, "timestep_spacing": "leading", "trained_betas": null}12345678910111213141516171819202122232425{ "_name_or_path": "runwayml/stable-diffusion-v1-5", "architectures": [ "CLIPTextModel" ], "attention_dropout": 0.0, "bos_token_id": 0, "dropout": 0.0, "eos_token_id": 2, "hidden_act": "quick_gelu", "hidden_size": 768, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-05, "max_position_embeddings": 77, "model_type": "clip_text_model", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 1, "projection_dim": 768, "torch_dtype": "float16", "transformers_version": "4.42.3", "vocab_size": 49408}123version https://git-lfs.github.com/spec/v1oid sha256:660c6f5b1abae9dc498ac2d21e1347d2abdb0cf6c0c0c8576cd796491d9a6cddsize 246144152123456789101112131415161718192021222324{ "bos_token": { "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "pad_token": "<|endoftext|>", "unk_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}123456789101112131415161718192021222324252627282930{ "add_prefix_space": false, "added_tokens_decoder": { "49406": { "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "49407": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<|startoftext|>", "clean_up_tokenization_spaces": true, "do_lower_case": true, "eos_token": "<|endoftext|>", "errors": "replace", "model_max_length": 77, "pad_token": "<|endoftext|>", "tokenizer_class": "CLIPTokenizer", "unk_token": "<|endoftext|>"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ "_class_name": "UNet2DConditionModel", "_diffusers_version": "0.30.0.dev0", "_name_or_path": "runwayml/stable-diffusion-v1-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:ada0589a874d73ee16f000c6d0f73d4efdec129bea85e35bbe5d0cd7e4c976aasize 34381675361234567891011121314151617181920212223242526272829303132333435363738{ "_class_name": "AutoencoderKL", "_diffusers_version": "0.30.0.dev0", "_name_or_path": "runwayml/stable-diffusion-v1-5", "act_fn": "silu", "block_out_channels": [ 128, 256, 512, 512 ], "down_block_types": [ "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D" ], "force_upcast": true, "in_channels": 3, "latent_channels": 4, "latents_mean": null, "latents_std": null, "layers_per_block": 2, "mid_block_add_attention": true, "norm_num_groups": 32, "out_channels": 3, "sample_size": 512, "scaling_factor": 0.18215, "shift_factor": null, "up_block_types": [ "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D" ], "use_post_quant_conv": true, "use_quant_conv": true}123version https://git-lfs.github.com/spec/v1oid sha256:4fbcf0ebe55a0984f5a5e00d8c4521d52359af7229bb4d81890039d2aa16dd7csize 167335342checkpoint-1000/optimizer.binAdded+3
checkpoint-1000/random_states_0.pklAdded+3
checkpoint-1000/scaler.ptAdded+3
checkpoint-1000/scheduler.binAdded+3
checkpoint-1000/unet/config.jsonAdded+68
checkpoint-1000/unet/diffusion_pytorch_model.safetensorsAdded+3
checkpoint-500/optimizer.binAdded+3
checkpoint-500/random_states_0.pklAdded+3
checkpoint-500/scaler.ptAdded+3
checkpoint-500/scheduler.binAdded+3
checkpoint-500/unet/config.jsonAdded+68
checkpoint-500/unet/diffusion_pytorch_model.safetensorsAdded+3
feature_extractor/preprocessor_config.jsonAdded+27
logs/text2image-fine-tune/1723372610.764281/events.out.tfevents.1723372610.2b5359dca8e6.169.1Added+3
logs/text2image-fine-tune/1723372610.7667599/hparams.ymlAdded+55
logs/text2image-fine-tune/events.out.tfevents.1723372610.2b5359dca8e6.169.0Added+3
model_index.jsonAdded+38
safety_checker/config.jsonAdded+28
safety_checker/model.safetensorsAdded+3
scheduler/scheduler_config.jsonAdded+15
text_encoder/config.jsonAdded+25
text_encoder/model.safetensorsAdded+3
tokenizer/merges.txtAdded
tokenizer/special_tokens_map.jsonAdded+24
tokenizer/tokenizer_config.jsonAdded+30
tokenizer/vocab.jsonAdded
unet/config.jsonAdded+68
unet/diffusion_pytorch_model.safetensorsAdded+3
vae/config.jsonAdded+38
vae/diffusion_pytorch_model.safetensorsAdded+3