Merged
Conversation
…mprovements to the PaintingsDataset class.
…ts a default value for the data_path parameter in the constructor.
…ass with new augmentation options.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor: Dataset Structure, Transformations & Interface Improvements
This PR introduces several updates to the dataset pipeline, transformations, and model interface. Below are the main changes:
Dataset and Loader
data/
├── abstrait/
└── figuratif/
(Replaces previous folders like
abstrait-v2,figuratif - aleat, etc.)PaintingsDataset:custom_augment_abstraitandcustom_augment_figuratif.double_abstract=Trueduplicates abstract samples to include both original and transformed versions in training.n_transforms_augmentedfor dynamic random augmentation composition from a transform pool.zero,mirror, andreplicatemodes.transform=True).Transformations
transformations/folder to organize custom transformations:SkewTransformRandomStretchDataset Split Script
get_new_data.pynew_dataset/train/abstrait, etc.).Interface Enhancements
Interfaceclass updated with new arguments:load_model_pathto resume trainingfreeze_layersfor partial fine-tuning of ResNet50weighted_lossto manually override automatic class weight calculationdouble_abstractExample Notebook
research/joel/20250617_weights.ipynb:PaintingsDatasetwith custom transforms