End of training
Browse files- README.md +30 -23
- prior_pipeline/model_index.json +23 -0
- prior_pipeline/prior/config.json +12 -0
- prior_pipeline/prior/diffusion_pytorch_model.safetensors +3 -0
- prior_pipeline/scheduler/scheduler_config.json +6 -0
- prior_pipeline/text_encoder/config.json +25 -0
- prior_pipeline/text_encoder/model.safetensors +3 -0
- prior_pipeline/tokenizer/special_tokens_map.json +30 -0
- prior_pipeline/tokenizer/tokenizer.json +0 -0
- prior_pipeline/tokenizer/tokenizer_config.json +30 -0
- val_imgs_grid.png +0 -0
README.md
CHANGED
@@ -1,41 +1,48 @@
|
|
|
|
1 |
---
|
2 |
-
|
3 |
-
|
4 |
-
|
|
|
5 |
tags:
|
6 |
-
-
|
7 |
-
- stable-diffusion-xl-diffusers
|
8 |
- text-to-image
|
9 |
-
- diffusers-training
|
10 |
- diffusers
|
|
|
11 |
inference: true
|
12 |
---
|
|
|
|
|
13 |
|
14 |
-
|
15 |
-
should probably proofread and complete it, then remove this comment. -->
|
16 |
-
|
17 |
-
|
18 |
-
# Text-to-image finetuning - haorandai/temp
|
19 |
-
|
20 |
-
This pipeline was finetuned from **stabilityai/stable-diffusion-xl-base-1.0** on the **haorandai/Vehicle_Bicycle_lr0.01_e0.1_20_with20constraints** dataset. Below are some example images generated with the finetuned pipeline using the following prompt: None:
|
21 |
-
|
22 |
-
|
23 |
|
24 |
-
|
25 |
|
26 |
|
27 |
-
##
|
28 |
|
29 |
-
|
30 |
|
31 |
```python
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
```
|
34 |
|
35 |
-
|
36 |
|
37 |
-
|
38 |
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
-
[TODO: describe the data used to train the model]
|
|
|
1 |
+
|
2 |
---
|
3 |
+
license: mit
|
4 |
+
base_model: warp-ai/wuerstchen-prior
|
5 |
+
datasets:
|
6 |
+
- haorandai/Mammal_Mice_lr0.01_e0.1_20_with20constraints
|
7 |
tags:
|
8 |
+
- wuerstchen
|
|
|
9 |
- text-to-image
|
|
|
10 |
- diffusers
|
11 |
+
- diffusers-training
|
12 |
inference: true
|
13 |
---
|
14 |
+
|
15 |
+
# Finetuning - haorandai/temp
|
16 |
|
17 |
+
This pipeline was finetuned from **warp-ai/wuerstchen-prior** on the **haorandai/Mammal_Mice_lr0.01_e0.1_20_with20constraints** dataset. Below are some example images generated with the finetuned pipeline using the following prompts: ['An image of a mice and a cat']:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
+
![val_imgs_grid](./val_imgs_grid.png)
|
20 |
|
21 |
|
22 |
+
## Pipeline usage
|
23 |
|
24 |
+
You can use the pipeline like so:
|
25 |
|
26 |
```python
|
27 |
+
from diffusers import DiffusionPipeline
|
28 |
+
import torch
|
29 |
+
|
30 |
+
pipe_prior = DiffusionPipeline.from_pretrained("haorandai/temp", torch_dtype=torch.float16)
|
31 |
+
pipe_t2i = DiffusionPipeline.from_pretrained("warp-ai/wuerstchen", torch_dtype=torch.float16)
|
32 |
+
prompt = "An image of a mice and a cat"
|
33 |
+
(image_embeds,) = pipe_prior(prompt).to_tuple()
|
34 |
+
image = pipe_t2i(image_embeddings=image_embeds, prompt=prompt).images[0]
|
35 |
+
image.save("my_image.png")
|
36 |
```
|
37 |
|
38 |
+
## Training info
|
39 |
|
40 |
+
These are the key hyperparameters used during training:
|
41 |
|
42 |
+
* Epochs: 40
|
43 |
+
* Learning rate: 1e-05
|
44 |
+
* Batch size: 1
|
45 |
+
* Gradient accumulation steps: 4
|
46 |
+
* Image resolution: 512
|
47 |
+
* Mixed-precision: fp16
|
48 |
|
|
prior_pipeline/model_index.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "WuerstchenPriorPipeline",
|
3 |
+
"_diffusers_version": "0.31.0.dev0",
|
4 |
+
"latent_mean": 42.0,
|
5 |
+
"latent_std": 1.0,
|
6 |
+
"prior": [
|
7 |
+
"wuerstchen",
|
8 |
+
"WuerstchenPrior"
|
9 |
+
],
|
10 |
+
"resolution_multiple": 42.67,
|
11 |
+
"scheduler": [
|
12 |
+
"diffusers",
|
13 |
+
"DDPMWuerstchenScheduler"
|
14 |
+
],
|
15 |
+
"text_encoder": [
|
16 |
+
"transformers",
|
17 |
+
"CLIPTextModel"
|
18 |
+
],
|
19 |
+
"tokenizer": [
|
20 |
+
"transformers",
|
21 |
+
"PreTrainedTokenizerFast"
|
22 |
+
]
|
23 |
+
}
|
prior_pipeline/prior/config.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "WuerstchenPrior",
|
3 |
+
"_diffusers_version": "0.31.0.dev0",
|
4 |
+
"_name_or_path": "warp-ai/wuerstchen-prior",
|
5 |
+
"c": 1536,
|
6 |
+
"c_cond": 1280,
|
7 |
+
"c_in": 16,
|
8 |
+
"c_r": 64,
|
9 |
+
"depth": 32,
|
10 |
+
"dropout": 0.1,
|
11 |
+
"nhead": 24
|
12 |
+
}
|
prior_pipeline/prior/diffusion_pytorch_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eb130d24e0636f30311645c47211d824ad87784147510d1e8975fbc395763141
|
3 |
+
size 3974614648
|
prior_pipeline/scheduler/scheduler_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "DDPMWuerstchenScheduler",
|
3 |
+
"_diffusers_version": "0.31.0.dev0",
|
4 |
+
"s": 0.008,
|
5 |
+
"scaler": 1.0
|
6 |
+
}
|
prior_pipeline/text_encoder/config.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "warp-ai/wuerstchen-prior",
|
3 |
+
"architectures": [
|
4 |
+
"CLIPTextModel"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"dropout": 0.0,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_size": 1280,
|
12 |
+
"initializer_factor": 1.0,
|
13 |
+
"initializer_range": 0.02,
|
14 |
+
"intermediate_size": 5120,
|
15 |
+
"layer_norm_eps": 1e-05,
|
16 |
+
"max_position_embeddings": 77,
|
17 |
+
"model_type": "clip_text_model",
|
18 |
+
"num_attention_heads": 20,
|
19 |
+
"num_hidden_layers": 32,
|
20 |
+
"pad_token_id": 1,
|
21 |
+
"projection_dim": 512,
|
22 |
+
"torch_dtype": "float16",
|
23 |
+
"transformers_version": "4.44.2",
|
24 |
+
"vocab_size": 49408
|
25 |
+
}
|
prior_pipeline/text_encoder/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aef4e14fde660be314b0d0dcb6c705c843ac9146936cec9a9ed7ea668477c08c
|
3 |
+
size 1386105272
|
prior_pipeline/tokenizer/special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
}
|
prior_pipeline/tokenizer/tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
prior_pipeline/tokenizer/tokenizer_config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"49406": {
|
5 |
+
"content": "<|startoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"49407": {
|
13 |
+
"content": "<|endoftext|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
}
|
20 |
+
},
|
21 |
+
"bos_token": "<|startoftext|>",
|
22 |
+
"clean_up_tokenization_spaces": true,
|
23 |
+
"do_lower_case": true,
|
24 |
+
"eos_token": "<|endoftext|>",
|
25 |
+
"errors": "replace",
|
26 |
+
"model_max_length": 77,
|
27 |
+
"pad_token": "<|endoftext|>",
|
28 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
29 |
+
"unk_token": "<|endoftext|>"
|
30 |
+
}
|
val_imgs_grid.png
ADDED