Victor Hall
e8f7b6c8b4
fix oopsie
2023-12-22 13:54:20 -05:00
Victor Hall
e89ec053c7
fix issue with plugin interaction with validation
2023-12-22 13:52:26 -05:00
Victor Hall
c7d3064029
error in dataloader plugin
2023-12-21 10:50:11 -05:00
Victor Hall
d9d2a43804
fix order of running pil image dataloader plugin
2023-12-20 15:24:09 -05:00
Victor Hall
dfcc9e7f41
add dataloader plugin hooks for caption and pil image
2023-12-20 14:55:50 -05:00
reijerh
7de666ec2d
Misc minor fixes
2023-11-09 00:22:41 +01:00
Victor Hall
c0a1955164
Merge pull request #233 from damian0815/feat_the_acculmunator
...
plugin: grad accumulation scheduler
2023-11-05 19:53:11 -05:00
Damian Stewart
86aaf1c4d7
fix big when loss_scale.txt contains 0
2023-11-01 19:00:08 +01:00
Damian Stewart
da731268b2
put a file loss_scale.txt containing a float in a training folder to apply loss scale (eg -1 for negative examples)
2023-10-31 10:06:21 +01:00
Damian Stewart
9396d2156e
Merge remote-tracking branch 'upstream/main' into feat_the_acculmunator
2023-10-22 19:35:32 +02:00
Damian Stewart
26a1475f0c
initial implementation of the_acculmunator
2023-10-22 19:26:35 +02:00
Gabriel Roldán
60e10867bc
Fix undersize warning
2023-10-05 01:48:09 -03:00
Victor Hall
e8e4f0c2ea
Merge pull request #214 from luisgabrielroldan/keep_tags
...
Add --keep_tags to keep first N tags fixed on shuffle
2023-09-25 13:10:21 -04:00
Victor Hall
a47d65799f
early work on pinned image tensor
2023-09-21 13:48:40 -04:00
Gabriel Roldan
99a0431d0f
Ignore negative keep_tags values
2023-09-20 19:53:31 -03:00
Gabriel Roldán
43984f2ad3
Add --keep_tags to keep first N tags fixed on shuffle
2023-09-20 19:53:30 -03:00
alexds9
7e5f8244b1
Refactored the _percent_random_crop function to make it simpler and cleaner.
...
- Removed the aspect ratio adjustment after cropping - which caused unnecessary stretch.
- Made sure that the crop pixels values are integers.
2023-07-03 18:39:24 +03:00
Damian Stewart
1ab27a9059
better check for null manual_data_root
2023-06-17 11:04:14 +02:00
Damian Stewart
dd6b37840d
permit empty manual_data_root
2023-06-17 11:04:14 +02:00
Damian Stewart
6c60b76fb6
log combined loss if there are >1 val subsets
2023-06-17 11:04:14 +02:00
Damian Stewart
403f7ddf07
fix chunked_shuffle crash with empty list
2023-06-17 11:04:14 +02:00
Damian Stewart
ded73f088f
cleanup
2023-06-17 11:04:14 +02:00
Damian Stewart
8885d58efd
create bucket if it doesn't exist
2023-06-17 11:04:14 +02:00
Damian Stewart
bd89ad96d2
typo
2023-06-17 11:04:14 +02:00
Damian Stewart
e4872fdc0c
improve shuffle and runt handling for named buckets
2023-06-17 11:04:14 +02:00
Damian Stewart
a047294676
assert an important precondition
2023-06-08 11:01:16 +02:00
Damian Stewart
4f98f0bcc9
ensure predictable shuffle behaviour and further cleanup
2023-06-08 10:50:51 +02:00
Damian Stewart
1874a38663
cleanup
2023-06-08 10:39:32 +02:00
Damian Stewart
b3c5d656e3
refactor for clarity
2023-06-08 10:31:10 +02:00
damian
86f80a8776
allow empty default_batch
2023-06-07 18:39:13 +02:00
damian
59fc9891d4
shuffle named batches while respecting and accounting for grad_accum
2023-06-07 18:07:37 +02:00
Damian Stewart
ba95b8c6d1
simplify runt handling
2023-06-05 01:04:21 +02:00
Damian Stewart
53d0686086
add a batch_id.txt file to subfolders or a batch_id key to local yaml to force images for that folder to be processed in the same batch
2023-06-05 01:02:27 +02:00
Victor Hall
a96c6e2166
dadapt stuff
2023-06-03 11:26:53 -04:00
Victor Hall
9ee2effacd
add 320 res
2023-06-01 21:19:20 -04:00
Victor Hall
97f1160496
correct image cropping
2023-06-01 21:06:55 -04:00
Victor Hall
c0e7c4adf9
errant print
2023-06-01 19:23:43 -04:00
Victor Hall
615fa929e5
errant print
2023-06-01 19:17:43 -04:00
Victor Hall
0e0b546ef7
help debug crop error someone got
2023-06-01 19:11:22 -04:00
Victor Hall
56deb26a59
early work on shuffle_tags.txt and add try around trimming
2023-06-01 16:18:21 -04:00
MFAlex
7dcfa7acbf
Speed up preloading by not loading pixel data
...
PIL lazy loads pixel data, so image size can be accessed without loading the full image.
This commit makes it so only image size and EXIF metadata are fetched from disk, speeding up the preload stage while still supporting transposing images.
2023-05-31 20:48:48 -04:00
Victor Hall
5c98cdee70
update to torch2, xformers 20, bnb 381
2023-05-30 22:15:02 -04:00
Damian Stewart
f3468fe7e7
Merge remote-tracking branch 'upstream/main' into val_partial_epochs
2023-05-07 02:11:58 +02:00
damian
8e28a74386
add migration code for
2023-04-29 16:55:02 -04:00
damian
360eaa5a42
don't print, using logging
2023-04-29 16:55:02 -04:00
damian
413f981512
implement extra manual validation splits
2023-04-29 16:55:02 -04:00
Damian Stewart
aad00eab2e
switch up errored item logic flow
2023-04-29 13:03:10 -04:00
Damian Stewart
ce85ce30ae
warn on chronically underfilled aspect ratio buckets
2023-04-29 13:03:10 -04:00
Victor Hall
630ac5e46a
Merge pull request #152 from qslug/yaml-tag-str
...
Always convert YAML tags to strings
2023-04-22 19:03:04 -04:00
Augusto de la Torre
2e8056174d
Always convert YAML tags to strings
2023-04-23 00:36:32 +02:00