Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update bitsandbytes for 0.41.1 and fixed bugs with generate_controlnet_subsets_config for training #823

Merged
merged 7 commits into from
Sep 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions library/config_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,17 +547,13 @@ def generate(base_dir: Optional[str]):
return []

subsets_config = []
for subdir in base_dir.iterdir():
if not subdir.is_dir():
continue

subset_config = {"image_dir": str(subdir), "conditioning_data_dir": conditioning_data_dir, "caption_extension": caption_extension, "num_repeats": 1}
subsets_config.append(subset_config)
subset_config = {"image_dir": train_data_dir, "conditioning_data_dir": conditioning_data_dir, "caption_extension": caption_extension, "num_repeats": 1}
subsets_config.append(subset_config)

return subsets_config

subsets_config = []
subsets_config += generate(train_data_dir, False)
subsets_config += generate(train_data_dir)

return subsets_config

Expand Down