Run this model with HF Jobs
Run Envvi/Inkpunk-Diffusion 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/Envvi/Inkpunk-Diffusion. 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/Envvi/Inkpunk-Diffusion 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 Envvi/Inkpunk-Diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Envvi/Inkpunk-Diffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Envvi/Inkpunk-Diffusion", 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
Add Diffusers weights (#9)
Browse files- Add Diffusers weights (d87ca5fd817212c07304e5318fbc33ca55f54d23)
Co-authored-by: AQ <anzorq@users.noreply.huggingface.co>
Files changed (12)
- feature_extractor/preprocessor_config.json+10-2
- model_index.json+8-3
- safety_checker/config.jsonAdded+181
- safety_checker/pytorch_model.binAdded+3
- scheduler/scheduler_config.json+3-3
- text_encoder/config.json+2-2
- text_encoder/pytorch_model.bin+2-2
- tokenizer/tokenizer_config.json+1-1
- unet/config.json+6-3
- unet/diffusion_pytorch_model.bin+2-2
- vae/config.json+1-2
- vae/diffusion_pytorch_model.bin+2-2
123456781 unmodified line1011121314151617181920{"crop_size": 224,"do_center_crop": true,"do_convert_rgb": true,"do_normalize": true,"do_resize": true,"feature_extractor_type": "CLIPFeatureExtractor","image_mean": [1 unmodified line0.4578275,0.40821073],"image_std": [0.26862954,0.26130258,0.27577711],"resample": 3,"size": 224}1234567891011121 unmodified line141516171819202122232425262728{"crop_size": {"height": 224,"width": 224},"do_center_crop": true,"do_convert_rgb": true,"do_normalize": true,"do_rescale": true,"do_resize": true,"feature_extractor_type": "CLIPFeatureExtractor","image_mean": [1 unmodified line0.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}}
12345678910111213{"_class_name": "StableDiffusionPipeline","_diffusers_version": "0.8.0.dev0","feature_extractor": ["transformers","CLIPFeatureExtractor"],"scheduler": ["diffusers","DDIMScheduler"],"text_encoder": ["transformers",123456789101112131415161718{"_class_name": "StableDiffusionPipeline","_diffusers_version": "0.9.0","feature_extractor": ["transformers","CLIPImageProcessor"],"requires_safety_checker": true,"safety_checker": ["stable_diffusion","StableDiffusionSafetyChecker"],"scheduler": ["diffusers","PNDMScheduler"],"text_encoder": ["transformers",
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181{ "_commit_hash": "cb41f3a270d63d454d385fc2e4f571c487c253c5", "_name_or_path": "CompVis/stable-diffusion-safety-checker", "architectures": [ "StableDiffusionSafetyChecker" ], "initializer_factor": 1.0, "logit_scale_init_value": 2.6592, "model_type": "clip", "projection_dim": 768, "text_config": { "_name_or_path": "", "add_cross_attention": false, "architectures": null, "attention_dropout": 0.0, "bad_words_ids": null, "begin_suppress_tokens": null, "bos_token_id": 0, "chunk_size_feed_forward": 0, "cross_attention_hidden_size": null, "decoder_start_token_id": null, "diversity_penalty": 0.0, "do_sample": false, "dropout": 0.0, "early_stopping": false, "encoder_no_repeat_ngram_size": 0, "eos_token_id": 2, "exponential_decay_length_penalty": null, "finetuning_task": null, "forced_bos_token_id": null, "forced_eos_token_id": null, "hidden_act": "quick_gelu", "hidden_size": 768, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 3072, "is_decoder": false, "is_encoder_decoder": false, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "layer_norm_eps": 1e-05, "length_penalty": 1.0, "max_length": 20, "max_position_embeddings": 77, "min_length": 0, "model_type": "clip_text_model", "no_repeat_ngram_size": 0, "num_attention_heads": 12, "num_beam_groups": 1, "num_beams": 1, "num_hidden_layers": 12, "num_return_sequences": 1, "output_attentions": false, "output_hidden_states": false, "output_scores": false, "pad_token_id": 1, "prefix": null, "problem_type": null, "projection_dim": 512, "pruned_heads": {}, "remove_invalid_values": false, "repetition_penalty": 1.0, "return_dict": true, "return_dict_in_generate": false, "sep_token_id": null, "suppress_tokens": null, "task_specific_params": null, "temperature": 1.0, "tf_legacy_loss": false, "tie_encoder_decoder": false, "tie_word_embeddings": true, "tokenizer_class": null, "top_k": 50, "top_p": 1.0, "torch_dtype": null, "torchscript": false, "transformers_version": "4.25.0.dev0", "typical_p": 1.0, "use_bfloat16": false, "vocab_size": 49408 }, "text_config_dict": { "hidden_size": 768, "intermediate_size": 3072, "num_attention_heads": 12, "num_hidden_layers": 12 }, "torch_dtype": "float32", "transformers_version": null, "vision_config": { "_name_or_path": "", "add_cross_attention": false, "architectures": null, "attention_dropout": 0.0, "bad_words_ids": null, "begin_suppress_tokens": null, "bos_token_id": null, "chunk_size_feed_forward": 0, "cross_attention_hidden_size": null, "decoder_start_token_id": null, "diversity_penalty": 0.0, "do_sample": false, "dropout": 0.0, "early_stopping": false, "encoder_no_repeat_ngram_size": 0, "eos_token_id": null, "exponential_decay_length_penalty": null, "finetuning_task": null, "forced_bos_token_id": null, "forced_eos_token_id": null, "hidden_act": "quick_gelu", "hidden_size": 1024, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "image_size": 224, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 4096, "is_decoder": false, "is_encoder_decoder": false, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "layer_norm_eps": 1e-05, "length_penalty": 1.0, "max_length": 20, "min_length": 0, "model_type": "clip_vision_model", "no_repeat_ngram_size": 0, "num_attention_heads": 16, "num_beam_groups": 1, "num_beams": 1, "num_channels": 3, "num_hidden_layers": 24, "num_return_sequences": 1, "output_attentions": false, "output_hidden_states": false, "output_scores": false, "pad_token_id": null, "patch_size": 14, "prefix": null, "problem_type": null, "projection_dim": 512, "pruned_heads": {}, "remove_invalid_values": false, "repetition_penalty": 1.0, "return_dict": true, "return_dict_in_generate": false, "sep_token_id": null, "suppress_tokens": null, "task_specific_params": null, "temperature": 1.0, "tf_legacy_loss": false, "tie_encoder_decoder": false, "tie_word_embeddings": true, "tokenizer_class": null, "top_k": 50, "top_p": 1.0, "torch_dtype": null, "torchscript": false, "transformers_version": "4.25.0.dev0", "typical_p": 1.0, "use_bfloat16": false }, "vision_config_dict": { "hidden_size": 1024, "intermediate_size": 4096, "num_attention_heads": 16, "num_hidden_layers": 24, "patch_size": 14 }}123version https://git-lfs.github.com/spec/v1oid sha256:16d28f2b37109f222cdc33620fdd262102ac32112be0352a7f77e9614b35a394size 1216064769123456789101112{"_class_name": "DDIMScheduler","_diffusers_version": "0.8.0.dev0","beta_end": 0.012,"beta_schedule": "scaled_linear","beta_start": 0.00085,"clip_sample": false,"num_train_timesteps": 1000,"set_alpha_to_one": false,"steps_offset": 1,"trained_betas": null}123456789101112{"_class_name": "PNDMScheduler","_diffusers_version": "0.9.0","beta_end": 0.012,"beta_schedule": "scaled_linear","beta_start": 0.00085,"num_train_timesteps": 1000,"set_alpha_to_one": false,"skip_prk_steps": true,"steps_offset": 1,"trained_betas": null}
1234514 unmodified lines202122232425{"_name_or_path": "runwayml/stable-diffusion-v1-5","architectures": ["CLIPTextModel"],14 unmodified lines"pad_token_id": 1,"projection_dim": 768,"torch_dtype": "float32","transformers_version": "4.24.0","vocab_size": 49408}1234514 unmodified lines202122232425{"_name_or_path": "openai/clip-vit-large-patch14","architectures": ["CLIPTextModel"],14 unmodified lines"pad_token_id": 1,"projection_dim": 768,"torch_dtype": "float32","transformers_version": "4.25.0.dev0","vocab_size": 49408}
123version https://git-lfs.github.com/spec/v1oid sha256:4690e6e394a693b4743aba98e1961689b2cede0a449707ea63f50e21123d39aesize 492308087123version https://git-lfs.github.com/spec/v1oid sha256:a7dd4a7aca273de9a428a44e30f5fc74371bf947fa59f67671fb0cf9307e85dfsize 492307041
18 unmodified lines1920212223242518 unmodified lines},"errors": "replace","model_max_length": 77,"name_or_path": "/root/.cache/huggingface/diffusers/models--runwayml--stable-diffusion-v1-5/snapshots/3beed0bcb34a3d281ce27bd8a6a1efbb68eada38/tokenizer","pad_token": "<|endoftext|>","special_tokens_map_file": "./special_tokens_map.json","tokenizer_class": "CLIPTokenizer",18 unmodified lines1920212223242518 unmodified lines},"errors": "replace","model_max_length": 77,"name_or_path": "openai/clip-vit-large-patch14","pad_token": "<|endoftext|>","special_tokens_map_file": "./special_tokens_map.json","tokenizer_class": "CLIPTokenizer",
123456711 unmodified lines1920212223241 unmodified line2627282930311 unmodified line3334353637{"_class_name": "UNet2DConditionModel","_diffusers_version": "0.8.0.dev0","_name_or_path": "runwayml/stable-diffusion-v1-5","act_fn": "silu","attention_head_dim": 8,"block_out_channels": [11 unmodified lines"DownBlock2D"],"downsample_padding": 1,"flip_sin_to_cos": true,"freq_shift": 0,"in_channels": 4,1 unmodified line"mid_block_scale_factor": 1,"norm_eps": 1e-05,"norm_num_groups": 32,"out_channels": 4,"sample_size": 64,"up_block_types": [1 unmodified line"CrossAttnUpBlock2D","CrossAttnUpBlock2D","CrossAttnUpBlock2D"]}12345611 unmodified lines181920212223241 unmodified line26272829303132331 unmodified line353637383940{"_class_name": "UNet2DConditionModel","_diffusers_version": "0.9.0","act_fn": "silu","attention_head_dim": 8,"block_out_channels": [11 unmodified lines"DownBlock2D"],"downsample_padding": 1,"dual_cross_attention": false,"flip_sin_to_cos": true,"freq_shift": 0,"in_channels": 4,1 unmodified line"mid_block_scale_factor": 1,"norm_eps": 1e-05,"norm_num_groups": 32,"num_class_embeds": null,"only_cross_attention": false,"out_channels": 4,"sample_size": 64,"up_block_types": [1 unmodified line"CrossAttnUpBlock2D","CrossAttnUpBlock2D","CrossAttnUpBlock2D"],"use_linear_projection": false}
123version https://git-lfs.github.com/spec/v1oid sha256:d32f017b0f6c544453e23316d18b1f9a0e94fbe54a37661de0be312febe63101size 3438364325123version https://git-lfs.github.com/spec/v1oid sha256:8de30f96af7d8b31295fbe3775d478ffd91c02c4d7bde8842a88abc473b0a8f6size 3438366373
1234567{"_class_name": "AutoencoderKL","_diffusers_version": "0.8.0.dev0","_name_or_path": "stabilityai/sd-vae-ft-mse","act_fn": "silu","block_out_channels": [128,123456{"_class_name": "AutoencoderKL","_diffusers_version": "0.9.0","act_fn": "silu","block_out_channels": [128,
123version https://git-lfs.github.com/spec/v1oid sha256:1b4889b6b1d4ce7ae320a02dedaeff1780ad77d415ea0d744b476155c6377ddcsize 334707217123version https://git-lfs.github.com/spec/v1oid sha256:dcf4507d99b88db73f3916e2a20169fe74ada6b5582e9af56cfa80f5f3141765size 334711857
feature_extractor/preprocessor_config.json+10-2
model_index.json+8-3
safety_checker/config.jsonAdded+181
safety_checker/pytorch_model.binAdded+3
scheduler/scheduler_config.json+3-3
text_encoder/config.json+2-2
text_encoder/pytorch_model.bin+2-2
tokenizer/tokenizer_config.json+1-1
unet/config.json+6-3
unet/diffusion_pytorch_model.bin+2-2
vae/config.json+1-2
vae/diffusion_pytorch_model.bin+2-2