chaowenguo
commited on
Upload configuration.json
Browse files- configuration.json +68 -0
configuration.json
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"framework": "pytorch",
|
3 |
+
"task": "text-to-image-synthesis",
|
4 |
+
"pipeline": {
|
5 |
+
"type": "diffusers-stable-diffusion"
|
6 |
+
},
|
7 |
+
"model": {
|
8 |
+
"type": "stable-diffusion",
|
9 |
+
"pretrained_model_name_or_path": "runwayml/stable-diffusion-v1-5",
|
10 |
+
"lora_tune": true,
|
11 |
+
"dreambooth_tune": false
|
12 |
+
},
|
13 |
+
"preprocessor": {
|
14 |
+
"type": "diffusion-image-generation-preprocessor",
|
15 |
+
"resolution": 512,
|
16 |
+
"mean": [0.5],
|
17 |
+
"std": [0.5]
|
18 |
+
},
|
19 |
+
"train": {
|
20 |
+
"dataloader": {
|
21 |
+
"batch_size_per_gpu": 1,
|
22 |
+
"workers_per_gpu": 4,
|
23 |
+
"shuffle": true
|
24 |
+
},
|
25 |
+
"optimizer": {
|
26 |
+
"type": "AdamW",
|
27 |
+
"lr": 0.00005,
|
28 |
+
"weight_decay": 0.01
|
29 |
+
},
|
30 |
+
"lr_scheduler": {
|
31 |
+
"type": "LambdaLR"
|
32 |
+
},
|
33 |
+
"max_epochs": 100,
|
34 |
+
"lr_scheduler_hook": {
|
35 |
+
"type": "LrSchedulerHook",
|
36 |
+
"by_epoch": false
|
37 |
+
},
|
38 |
+
"optimizer_hook": {
|
39 |
+
"type": "OptimizerHook"
|
40 |
+
},
|
41 |
+
"hooks": [
|
42 |
+
{
|
43 |
+
"type": "CheckpointHook",
|
44 |
+
"interval": 1000
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"type": "TextLoggerHook",
|
48 |
+
"interval": 1,
|
49 |
+
"by_epoch": false
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"type": "IterTimerHook"
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"type": "EvaluationHook",
|
56 |
+
"interval": 1000
|
57 |
+
}
|
58 |
+
]
|
59 |
+
},
|
60 |
+
"evaluation": {
|
61 |
+
"dataloader": {
|
62 |
+
"batch_size_per_gpu": 1,
|
63 |
+
"workers_per_gpu": 4,
|
64 |
+
"shuffle": false
|
65 |
+
},
|
66 |
+
"metrics": ["loss-metric"]
|
67 |
+
}
|
68 |
+
}
|