Run this model with HF Jobs
Run Yanis236/HySCDG 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/Yanis236/HySCDG. 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/Yanis236/HySCDG 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 Yanis236/HySCDG with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Yanis236/HySCDG with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Yanis236/HySCDG", 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 folder using huggingface_hub
Browse filesFiles changed (15)
- HySCDG_ControlNet/config.jsonAdded+57
- HySCDG_ControlNet/diffusion_pytorch_model.safetensorsAdded+3
- HySCDG_Inpainting/feature_extractor/preprocessor_config.jsonAdded+20
- HySCDG_Inpainting/model_index.jsonAdded+33
- HySCDG_Inpainting/scheduler/scheduler_config.jsonAdded+13
- HySCDG_Inpainting/text_encoder/config.jsonAdded+25
- HySCDG_Inpainting/text_encoder/pytorch_model.binAdded+3
- HySCDG_Inpainting/tokenizer/merges.txtAdded
- HySCDG_Inpainting/tokenizer/special_tokens_map.jsonAdded+24
- HySCDG_Inpainting/tokenizer/tokenizer_config.jsonAdded+34
- HySCDG_Inpainting/tokenizer/vocab.jsonAdded
- HySCDG_Inpainting/unet/config.jsonAdded+44
- HySCDG_Inpainting/unet/diffusion_pytorch_model.safetensorsAdded+3
- HySCDG_Inpainting/vae/config.jsonAdded+30
- HySCDG_Inpainting/vae/diffusion_pytorch_model.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ "_class_name": "ControlNetModel", "_diffusers_version": "0.31.0", "_name_or_path": "/lustre/fswork/projects/rech/jrj/uhz23wx/LOGS/ControlNet/SDI2_NewMasks_VRAI/checkpoint-34000", "act_fn": "silu", "addition_embed_type": null, "addition_embed_type_num_heads": 64, "addition_time_embed_dim": null, "attention_head_dim": [ 5, 10, 20, 20 ], "block_out_channels": [ 320, 640, 1280, 1280 ], "class_embed_type": null, "conditioning_channels": 3, "conditioning_embedding_out_channels": [ 16, 32, 96, 256 ], "controlnet_conditioning_channel_order": "rgb", "cross_attention_dim": 1024, "down_block_types": [ "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "DownBlock2D" ], "downsample_padding": 1, "encoder_hid_dim": null, "encoder_hid_dim_type": null, "flip_sin_to_cos": true, "freq_shift": 0, "global_pool_conditions": false, "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_attention_heads": null, "num_class_embeds": null, "only_cross_attention": false, "projection_class_embeddings_input_dim": null, "resnet_time_scale_shift": "default", "transformer_layers_per_block": 1, "upcast_attention": false, "use_linear_projection": true}123version https://git-lfs.github.com/spec/v1oid sha256:6cef9d90007f1c72c5c09442acadbcbd917152501449c3af2237e518edbbeeb3size 14569535601234567891011121314151617181920{ "crop_size": 224, "do_center_crop": true, "do_convert_rgb": true, "do_normalize": true, "do_resize": true, "feature_extractor_type": "CLIPFeatureExtractor", "image_mean": [ 0.48145466, 0.4578275, 0.40821073 ], "image_std": [ 0.26862954, 0.26130258, 0.27577711 ], "resample": 3, "size": 224}123456789101112131415161718192021222324252627282930313233{ "_class_name": "StableDiffusionInpaintPipeline", "_diffusers_version": "0.8.0", "feature_extractor": [ "transformers", "CLIPImageProcessor" ], "requires_safety_checker": false, "safety_checker": [ null, null ], "scheduler": [ "diffusers", "PNDMScheduler" ], "text_encoder": [ "transformers", "CLIPTextModel" ], "tokenizer": [ "transformers", "CLIPTokenizer" ], "unet": [ "diffusers", "UNet2DConditionModel" ], "vae": [ "diffusers", "AutoencoderKL" ]}12345678910111213{ "_class_name": "PNDMScheduler", "_diffusers_version": "0.8.0", "beta_end": 0.012, "beta_schedule": "scaled_linear", "beta_start": 0.00085, "clip_sample": false, "num_train_timesteps": 1000, "set_alpha_to_one": false, "skip_prk_steps": true, "steps_offset": 1, "trained_betas": null}12345678910111213141516171819202122232425{ "_name_or_path": "./hf-models/stable-diffusion-v2-inpainting/text_encoder", "architectures": [ "CLIPTextModel" ], "attention_dropout": 0.0, "bos_token_id": 0, "dropout": 0.0, "eos_token_id": 2, "hidden_act": "gelu", "hidden_size": 1024, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 4096, "layer_norm_eps": 1e-05, "max_position_embeddings": 77, "model_type": "clip_text_model", "num_attention_heads": 16, "num_hidden_layers": 23, "pad_token_id": 1, "projection_dim": 512, "torch_dtype": "float32", "transformers_version": "4.25.0.dev0", "vocab_size": 49408}123version https://git-lfs.github.com/spec/v1oid sha256:e9c787e9388134c1a25dc69934a51a32a2683b38b8a9b017e1f3a692b8ed6b98size 1361679905123456789101112131415161718192021222324{ "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": "!", "unk_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}12345678910111213141516171819202122232425262728293031323334{ "add_prefix_space": false, "bos_token": { "__type": "AddedToken", "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "do_lower_case": true, "eos_token": { "__type": "AddedToken", "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "errors": "replace", "model_max_length": 77, "name_or_path": "./hf-models/stable-diffusion-v2-inpainting/tokenizer", "pad_token": "<|endoftext|>", "special_tokens_map_file": "./special_tokens_map.json", "tokenizer_class": "CLIPTokenizer", "unk_token": { "__type": "AddedToken", "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}1234567891011121314151617181920212223242526272829303132333435363738394041424344{ "_class_name": "UNet2DConditionModel", "_diffusers_version": "0.8.0", "_name_or_path": "./hf-models/stable-diffusion-v2-inpainting/unet", "act_fn": "silu", "attention_head_dim": [ 5, 10, 20, 20 ], "block_out_channels": [ 320, 640, 1280, 1280 ], "center_input_sample": false, "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": 9, "layers_per_block": 2, "mid_block_scale_factor": 1, "norm_eps": 1e-05, "norm_num_groups": 32, "out_channels": 4, "sample_size": 64, "up_block_types": [ "UpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D" ], "use_linear_projection": true}123version https://git-lfs.github.com/spec/v1oid sha256:010a868f7af7fcb1059b0b218dce8f914442e33014f3a12a5d86fa3ef66e6c42size 3463784120123456789101112131415161718192021222324252627282930{ "_class_name": "AutoencoderKL", "_diffusers_version": "0.8.0", "_name_or_path": "./hf-models/stable-diffusion-v2-inpainting/vae", "act_fn": "silu", "block_out_channels": [ 128, 256, 512, 512 ], "down_block_types": [ "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D" ], "in_channels": 3, "latent_channels": 4, "layers_per_block": 2, "norm_num_groups": 32, "out_channels": 3, "sample_size": 512, "up_block_types": [ "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D" ]}123version https://git-lfs.github.com/spec/v1oid sha256:a4302e1efa25f3a47ceb7536bc335715ad9d1f203e90c2d25507600d74006e89size 334715313HySCDG_ControlNet/config.jsonAdded+57
HySCDG_ControlNet/diffusion_pytorch_model.safetensorsAdded+3
HySCDG_Inpainting/feature_extractor/preprocessor_config.jsonAdded+20
HySCDG_Inpainting/model_index.jsonAdded+33
HySCDG_Inpainting/scheduler/scheduler_config.jsonAdded+13
HySCDG_Inpainting/text_encoder/config.jsonAdded+25
HySCDG_Inpainting/text_encoder/pytorch_model.binAdded+3
HySCDG_Inpainting/tokenizer/merges.txtAdded
HySCDG_Inpainting/tokenizer/special_tokens_map.jsonAdded+24
HySCDG_Inpainting/tokenizer/tokenizer_config.jsonAdded+34
HySCDG_Inpainting/tokenizer/vocab.jsonAdded
HySCDG_Inpainting/unet/config.jsonAdded+44
HySCDG_Inpainting/unet/diffusion_pytorch_model.safetensorsAdded+3
HySCDG_Inpainting/vae/config.jsonAdded+30
HySCDG_Inpainting/vae/diffusion_pytorch_model.binAdded+3