This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import tarfile | |
import json | |
from collections import defaultdict | |
def group_files(root_dir): | |
file_groups = defaultdict(list) | |
for subdir, _, files in os.walk(root_dir): | |
for file in files: | |
if file == "urls.txt" or file == "caption_cog_params.txt": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"last_node_id": 67, | |
"last_link_id": 131, | |
"nodes": [ | |
{ | |
"id": 8, | |
"type": "VAEDecode", | |
"pos": [ | |
1200, | |
96 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"last_node_id": 65, | |
"last_link_id": 114, | |
"nodes": [ | |
{ | |
"id": 4, | |
"type": "CheckpointLoaderSimple", | |
"pos": [ | |
-48, | |
96 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using this repo: | |
https://github.com/kanewallmann/Dreambooth-Stable-Diffusion | |
Folder structure, using a project name of "ff7r" for example but you can name it however you want | |
/reg/man/ (all your regularization images of men) | |
/training_samples/ff7r/man (all your images of men to train) | |
/reg/woman/ (all your regulaization images of women) | |
/training_samples/ff7r/woman (all your images of women to train) |