-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,11 @@ | ||
[general] | ||
enable_bucket = true # 是否使用Aspect Ratio Bucketing | ||
|
||
[[datasets]] | ||
resolution = 512 # 训练分辨率 | ||
batch_size = 8 # 批次大小 | ||
|
||
[[datasets.subsets]] | ||
image_dir = '/kaggle/input/hxh-dataset/hxh/train_data' # 指定包含训练图像的文件夹 | ||
caption_extension = '.txt' # 若使用txt文件,更改此项 | ||
num_repeats = 10 # 训练图像的重复次数 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,11 @@ | ||
[general] | ||
enable_bucket = true # 是否使用Aspect Ratio Bucketing | ||
|
||
[[datasets]] | ||
resolution = 512 # 训练分辨率 | ||
batch_size = 8 # 批次大小 | ||
|
||
[[datasets.subsets]] | ||
image_dir = '/kaggle/input/uscaption-dataset/uscaption/train_data' # 指定包含训练图像的文件夹 | ||
caption_extension = '.txt' # 若使用txt文件,更改此项 | ||
num_repeats = 10 # 训练图像的重复次数 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
hxh4,solo,1boy, male_focus,realistic,black_hair, looking_at_viewer, portrait, lips,closed_mouth,bangs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
hxh4,solo,1boy, male_focus,realistic, black_hair, looking_at_viewer, portrait,lips,bangs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
hxh4,solo,1boy, male_focus,realistic, black_hair, looking_at_viewer, portrait,lips,bangs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
hxh4,solo,1boy, male_focus,realistic,black_hair, looking_at_viewer, portrait,lips,closed_mouth,bangs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
hxh4,solo,1boy, male_focus,realistic, black_hair, looking_at_viewer, portrait,lips,closed_mouth, short_hair,bangs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
hxh4,solo,1boy, male_focus,realistic,black_hair, looking_at_viewer, portrait,lips,closed_mouth, short_hair,bangs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
hxh4,solo,1boy, male_focus,realistic,black_hair,looking_at_viewer, portrait,lips,closed_mouth, short_hair,bangs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
hxh4,solo,1boy, male_focus,realistic,profile, upper_body,hair_ornament,black_hair |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
hxh4,solo,1boy, male_focus,realistic, profile, upper_body,hair_ornament,black_hair |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
1boy, male_focus, solo, manly, realistic, closed_mouth, upper_body |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
helmet,realistic |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,2 @@ | ||
superhero outfit,star emblem,shield1boy, male_focus, solo, realistic, gloves,eyepatch,action stance | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
solo, standing, male_focus, 1boy, realistic,belt,superhero outfit, star emblem, shield,gloves,heroic |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
helmet,solo,upper body,profile, from_side,goggles, star emblem |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,29 @@ | ||
{ | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-000.jpg": { | ||
"caption": "a male in a black shirt is staring at the camera" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-001.jpg": { | ||
"caption": "a young man wearing a black jacket, looking away from the camera" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-002.jpg": { | ||
"caption": "a man with black shirt and jacket on in a photo" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-003.jpg": { | ||
"caption": "a person with dark hair and black shirt" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-004.jpg": { | ||
"caption": "a man posing for a photo on a white surface" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-005.jpg": { | ||
"caption": "a man with a black shirt and jacket" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-006.jpg": { | ||
"caption": "a young man with an black shirt and jacket" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-007.jpg": { | ||
"caption": "a man in a suit sitting down looking at his phone" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-008.jpg": { | ||
"caption": "a man with short black hair standing up and looking at the side" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,38 @@ | ||
{ | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-000.jpg": { | ||
"caption": "a male in a black shirt is staring at the camera", | ||
"tags": "solo, male_focus, 1boy, black_hair, looking_at_viewer, portrait, lips, realistic,closed_mouth,bangs" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-001.jpg": { | ||
"caption": "a young man wearing a black jacket, looking away from the camera", | ||
"tags": "solo, male_focus, black_hair, looking_at_viewer, portrait,1boy, realistic,lips,bangs" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-002.jpg": { | ||
"caption": "a man with black shirt and jacket on in a photo", | ||
"tags": "solo, male_focus, black_hair, looking_at_viewer, portrait,1boy, realistic,lips,bangs" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-003.jpg": { | ||
"caption": "a person with dark hair and black shirt", | ||
"tags": "solo, male_focus, black_hair, looking_at_viewer, portrait,1boy, realistic,lips,closed_mouth,bangs" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-004.jpg": { | ||
"caption": "a man posing for a photo on a white surface", | ||
"tags": "solo, male_focus, black_hair, looking_at_viewer, portrait,1boy, realistic,lips,closed_mouth, short_hair,bangs" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-005.jpg": { | ||
"caption": "a man with a black shirt and jacket", | ||
"tags": "solo, male_focus, black_hair, looking_at_viewer, portrait,1boy, realistic,lips,closed_mouth, short_hair,bangs" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-006.jpg": { | ||
"caption": "a young man with an black shirt and jacket", | ||
"tags": "solo, male_focus,black_hair,looking_at_viewer, portrait,1boy, realistic,lips,closed_mouth, short_hair,bangs" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-007.jpg": { | ||
"caption": "a man in a suit sitting down looking at his phone", | ||
"tags": "male_focus, 1boy, solo, profile, upper_body,hair_ornament,black_hair" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-008.jpg": { | ||
"caption": "a man with short black hair standing up and looking at the side", | ||
"tags": "male_focus, 1boy, solo, profile, upper_body,hair_ornament,black_hair" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,38 @@ | ||
{ | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-000.jpg": { | ||
"caption": "a male in a black shirt is staring at the camera", | ||
"tags": "solo, male focus, 1boy, black hair, looking at viewer, portrait, lips, realistic,closed mouth,bangs" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-001.jpg": { | ||
"caption": "a man wearing a black jacket, looking away from the camera", | ||
"tags": "solo, male focus, black hair, looking at viewer, portrait,1boy, realistic,lips,bangs" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-002.jpg": { | ||
"caption": "a man with black shirt and jacket on in a photo", | ||
"tags": "solo, male focus, black hair, looking at viewer, portrait,1boy, realistic,lips,bangs" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-003.jpg": { | ||
"caption": "a girl with dark hair and black shirt", | ||
"tags": "solo, male focus, black hair, looking at viewer, portrait,1boy, realistic,lips,closed mouth,bangs" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-004.jpg": { | ||
"caption": "a man posing for a photo on a white surface", | ||
"tags": "solo, male focus, black hair, looking at viewer, portrait,1boy, realistic,lips,closed mouth, short hair,bangs" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-005.jpg": { | ||
"caption": "a man with a black shirt and jacket", | ||
"tags": "solo, male focus, black hair, looking at viewer, portrait,1boy, realistic,lips,closed mouth, short hair,bangs" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-006.jpg": { | ||
"caption": "a man with an black shirt and jacket", | ||
"tags": "solo, male focus,black hair,looking at viewer, portrait,1boy, realistic,lips,closed mouth, short hair,bangs" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-007.jpg": { | ||
"caption": "a man in a suit sitting down looking at his phone", | ||
"tags": "male focus, 1boy, solo, profile, upper body,hair ornament,black hair" | ||
}, | ||
"D:\\Probject\\SD\\sd-scripts\\finetune\\train_data\\hxh-008.jpg": { | ||
"caption": "a man with short black hair standing up and looking at the side", | ||
"tags": "male focus, 1boy, solo, profile, upper body,hair ornament,black hair" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,5 @@ | ||
python make_captions.py --batch_size 4 "D:\Probject\SD\sd-scripts\finetune\train_data" | ||
|
||
python merge_captions_to_metadata.py --full_path "D:\Probject\SD\sd-scripts\finetune\train_data" meta_cap.json | ||
|
||
python merge_dd_tags_to_metadata.py --full_path "D:\Probject\SD\sd-scripts\finetune\train_data" --in_json meta_cap.json meta_cap_dd.json |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
a male in a black shirt is staring at the camera |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
solo, male_focus, 1boy, black_hair, looking_at_viewer, portrait, lips, realistic,closed_mouth,bangs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
a young man wearing a black jacket, looking away from the camera |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
solo, male_focus, black_hair, looking_at_viewer, portrait,1boy, realistic,lips,bangs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
a man with black shirt and jacket on in a photo |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
solo, male_focus, black_hair, looking_at_viewer, portrait,1boy, realistic,lips,bangs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
a person with dark hair and black shirt |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
solo, male_focus, black_hair, looking_at_viewer, portrait,1boy, realistic,lips,closed_mouth,bangs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
a man posing for a photo on a white surface |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
solo, male_focus, black_hair, looking_at_viewer, portrait,1boy, realistic,lips,closed_mouth, short_hair,bangs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
a man with a black shirt and jacket |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
solo, male_focus, black_hair, looking_at_viewer, portrait,1boy, realistic,lips,closed_mouth, short_hair,bangs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
a young man with an black shirt and jacket |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
solo, male_focus,black_hair,looking_at_viewer, portrait,1boy, realistic,lips,closed_mouth, short_hair,bangs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
a man in a suit sitting down looking at his phone |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
male_focus, 1boy, solo, profile, upper_body,hair_ornament,black_hair |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
a man with short black hair standing up and looking at the side |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
male_focus, 1boy, solo, profile, upper_body,hair_ornament,black_hair |