Text-to-Image
Diffusers
PyTorch
ONNX
Safetensors
English
NSFW
UnfilteredAI
Not-For-All-Audiences
Abhaykoul commited on
Commit
0f62445
1 Parent(s): 2755174

Upload folder using huggingface_hub

Browse files
model_index.json CHANGED
@@ -1,15 +1,20 @@
1
  {
2
- "_class_name": "StableDiffusionXLPipeline",
3
- "_diffusers_version": "0.22.0.dev0",
 
4
  "feature_extractor": [
5
  null,
6
  null
7
  ],
8
- "force_zeros_for_empty_prompt": true,
9
  "image_encoder": [
10
  null,
11
  null
12
  ],
 
 
 
 
 
13
  "scheduler": [
14
  "diffusers",
15
  "EulerAncestralDiscreteScheduler"
@@ -18,18 +23,10 @@
18
  "transformers",
19
  "CLIPTextModel"
20
  ],
21
- "text_encoder_2": [
22
- "transformers",
23
- "CLIPTextModelWithProjection"
24
- ],
25
  "tokenizer": [
26
  "transformers",
27
  "CLIPTokenizer"
28
  ],
29
- "tokenizer_2": [
30
- "transformers",
31
- "CLIPTokenizer"
32
- ],
33
  "unet": [
34
  "diffusers",
35
  "UNet2DConditionModel"
 
1
  {
2
+ "_class_name": "StableDiffusionPipeline",
3
+ "_diffusers_version": "0.27.2",
4
+ "_name_or_path": "UnfilteredAI/NSFW-gen",
5
  "feature_extractor": [
6
  null,
7
  null
8
  ],
 
9
  "image_encoder": [
10
  null,
11
  null
12
  ],
13
+ "requires_safety_checker": true,
14
+ "safety_checker": [
15
+ null,
16
+ null
17
+ ],
18
  "scheduler": [
19
  "diffusers",
20
  "EulerAncestralDiscreteScheduler"
 
23
  "transformers",
24
  "CLIPTextModel"
25
  ],
 
 
 
 
26
  "tokenizer": [
27
  "transformers",
28
  "CLIPTokenizer"
29
  ],
 
 
 
 
30
  "unet": [
31
  "diffusers",
32
  "UNet2DConditionModel"
scheduler/scheduler_config.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "_class_name": "EulerAncestralDiscreteScheduler",
3
- "_diffusers_version": "0.22.0.dev0",
4
  "beta_end": 0.012,
5
  "beta_schedule": "scaled_linear",
6
  "beta_start": 0.00085,
@@ -8,6 +8,7 @@
8
  "interpolation_type": "linear",
9
  "num_train_timesteps": 1000,
10
  "prediction_type": "epsilon",
 
11
  "sample_max_value": 1.0,
12
  "set_alpha_to_one": false,
13
  "skip_prk_steps": true,
 
1
  {
2
  "_class_name": "EulerAncestralDiscreteScheduler",
3
+ "_diffusers_version": "0.27.2",
4
  "beta_end": 0.012,
5
  "beta_schedule": "scaled_linear",
6
  "beta_start": 0.00085,
 
8
  "interpolation_type": "linear",
9
  "num_train_timesteps": 1000,
10
  "prediction_type": "epsilon",
11
+ "rescale_betas_zero_snr": false,
12
  "sample_max_value": 1.0,
13
  "set_alpha_to_one": false,
14
  "skip_prk_steps": true,
text_encoder/config.json CHANGED
@@ -1,4 +1,5 @@
1
  {
 
2
  "architectures": [
3
  "CLIPTextModel"
4
  ],
@@ -19,6 +20,6 @@
19
  "pad_token_id": 1,
20
  "projection_dim": 768,
21
  "torch_dtype": "float16",
22
- "transformers_version": "4.34.0",
23
  "vocab_size": 49408
24
  }
 
1
  {
2
+ "_name_or_path": "/root/.cache/huggingface/hub/models--UnfilteredAI--NSFW-gen/snapshots/2755174ccd9ddf41e78aa0c1924a4def8e5f856f/text_encoder",
3
  "architectures": [
4
  "CLIPTextModel"
5
  ],
 
20
  "pad_token_id": 1,
21
  "projection_dim": 768,
22
  "torch_dtype": "float16",
23
+ "transformers_version": "4.38.2",
24
  "vocab_size": 49408
25
  }
text_encoder/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a86c7f074d847a59bc90f968d54e9978a97d98dbed562e9348229a1767e857f0
3
+ size 492588311
tokenizer/special_tokens_map.json CHANGED
@@ -1,6 +1,30 @@
1
  {
2
- "bos_token": "<|startoftext|>",
3
- "eos_token": "<|endoftext|>",
4
- "pad_token": "<|endoftext|>",
5
- "unk_token": "<|endoftext|>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  }
 
1
  {
2
+ "bos_token": {
3
+ "content": "<|startoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<|endoftext|>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<|endoftext|>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
  }
tokenizer/tokenizer_config.json CHANGED
@@ -7,7 +7,7 @@
7
  "normalized": true,
8
  "rstrip": false,
9
  "single_word": false,
10
- "special": false
11
  },
12
  "49407": {
13
  "content": "<|endoftext|>",
@@ -15,7 +15,7 @@
15
  "normalized": false,
16
  "rstrip": false,
17
  "single_word": false,
18
- "special": false
19
  }
20
  },
21
  "additional_special_tokens": [],
@@ -27,6 +27,5 @@
27
  "model_max_length": 77,
28
  "pad_token": "<|endoftext|>",
29
  "tokenizer_class": "CLIPTokenizer",
30
- "tokenizer_file": "/home/user/.cache/huggingface/hub/models--openai--clip-vit-large-patch14/snapshots/32bd64288804d66eefd0ccbe215aa642df71cc41/tokenizer.json",
31
  "unk_token": "<|endoftext|>"
32
  }
 
7
  "normalized": true,
8
  "rstrip": false,
9
  "single_word": false,
10
+ "special": true
11
  },
12
  "49407": {
13
  "content": "<|endoftext|>",
 
15
  "normalized": false,
16
  "rstrip": false,
17
  "single_word": false,
18
+ "special": true
19
  }
20
  },
21
  "additional_special_tokens": [],
 
27
  "model_max_length": 77,
28
  "pad_token": "<|endoftext|>",
29
  "tokenizer_class": "CLIPTokenizer",
 
30
  "unk_token": "<|endoftext|>"
31
  }
unet/config.json CHANGED
@@ -1,6 +1,7 @@
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
- "_diffusers_version": "0.22.0.dev0",
 
4
  "act_fn": "silu",
5
  "addition_embed_type": "text_time",
6
  "addition_embed_type_num_heads": 64,
@@ -50,6 +51,7 @@
50
  "resnet_out_scale_factor": 1.0,
51
  "resnet_skip_time_act": false,
52
  "resnet_time_scale_shift": "default",
 
53
  "sample_size": 128,
54
  "time_cond_proj_dim": null,
55
  "time_embedding_act_fn": null,
 
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
+ "_diffusers_version": "0.27.2",
4
+ "_name_or_path": "/root/.cache/huggingface/hub/models--UnfilteredAI--NSFW-gen/snapshots/2755174ccd9ddf41e78aa0c1924a4def8e5f856f/unet",
5
  "act_fn": "silu",
6
  "addition_embed_type": "text_time",
7
  "addition_embed_type_num_heads": 64,
 
51
  "resnet_out_scale_factor": 1.0,
52
  "resnet_skip_time_act": false,
53
  "resnet_time_scale_shift": "default",
54
+ "reverse_transformer_layers_per_block": null,
55
  "sample_size": 128,
56
  "time_cond_proj_dim": null,
57
  "time_embedding_act_fn": null,
vae_decoder/config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKL",
3
+ "_diffusers_version": "0.27.2",
4
+ "_name_or_path": "/root/.cache/huggingface/hub/models--UnfilteredAI--NSFW-gen/snapshots/2755174ccd9ddf41e78aa0c1924a4def8e5f856f/vae",
5
+ "act_fn": "silu",
6
+ "block_out_channels": [
7
+ 128,
8
+ 256,
9
+ 512,
10
+ 512
11
+ ],
12
+ "down_block_types": [
13
+ "DownEncoderBlock2D",
14
+ "DownEncoderBlock2D",
15
+ "DownEncoderBlock2D",
16
+ "DownEncoderBlock2D"
17
+ ],
18
+ "force_upcast": true,
19
+ "in_channels": 3,
20
+ "latent_channels": 4,
21
+ "latents_mean": null,
22
+ "latents_std": null,
23
+ "layers_per_block": 2,
24
+ "norm_num_groups": 32,
25
+ "out_channels": 3,
26
+ "sample_size": 1024,
27
+ "scaling_factor": 0.13025,
28
+ "up_block_types": [
29
+ "UpDecoderBlock2D",
30
+ "UpDecoderBlock2D",
31
+ "UpDecoderBlock2D",
32
+ "UpDecoderBlock2D"
33
+ ]
34
+ }
vae_encoder/config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKL",
3
+ "_diffusers_version": "0.27.2",
4
+ "_name_or_path": "/root/.cache/huggingface/hub/models--UnfilteredAI--NSFW-gen/snapshots/2755174ccd9ddf41e78aa0c1924a4def8e5f856f/vae",
5
+ "act_fn": "silu",
6
+ "block_out_channels": [
7
+ 128,
8
+ 256,
9
+ 512,
10
+ 512
11
+ ],
12
+ "down_block_types": [
13
+ "DownEncoderBlock2D",
14
+ "DownEncoderBlock2D",
15
+ "DownEncoderBlock2D",
16
+ "DownEncoderBlock2D"
17
+ ],
18
+ "force_upcast": true,
19
+ "in_channels": 3,
20
+ "latent_channels": 4,
21
+ "latents_mean": null,
22
+ "latents_std": null,
23
+ "layers_per_block": 2,
24
+ "norm_num_groups": 32,
25
+ "out_channels": 3,
26
+ "sample_size": 1024,
27
+ "scaling_factor": 0.13025,
28
+ "up_block_types": [
29
+ "UpDecoderBlock2D",
30
+ "UpDecoderBlock2D",
31
+ "UpDecoderBlock2D",
32
+ "UpDecoderBlock2D"
33
+ ]
34
+ }