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

LitData Refactor PR3: Add custom StreamingDataset #84

Closed
Closed
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ The config file has three main sections:
- `crop_hw`: (Tuple[int]) Crop height and width of each instance (h, w) for centered-instance model. If `None`, this would be automatically computed based on the largest instance in the `sio.Labels` file.
- `min_crop_size`: (int) Minimum crop size to be used if `crop_hw` is `None`.
- `use_augmentations_train`: (bool) True if the data augmentation should be applied to the training data, else False.
- `augmentation_config`: (only if `use_augmentations` is `True`)
- `random crop`: (Optional) (Dict[float]) {"random_crop_p": None, "crop_height": None. "crop_width": None}, where *random_crop_p* is the probability of applying random crop and *crop_height* and *crop_width* are the desired output size (out_h, out_w) of the crop.
- `augmentation_config`: (only if `use_augmentations` is `True`)
- `intensity`: (Optional)
- `uniform_noise_min`: (float) Minimum value for uniform noise (uniform_noise_min >=0).
- `uniform_noise_max`: (float) Maximum value for uniform noise (uniform_noise_max <>=1).
Expand All @@ -57,6 +56,8 @@ The config file has three main sections:
- `mixup_lambda`: (float) min-max value of mixup strength. Default is 0-1. *Default*: `None`.
- `mixup_p`: (float) Probability of applying random mixup v2. *Default*=0.0
- `input_key`: (str) Can be `image` or `instance`. The input_key `instance` expects the KorniaAugmenter to follow the InstanceCropper else `image` otherwise for default.
- `random crop`: (Optional) (Dict[float]) {"random_crop_p": None, "crop_height": None. "crop_width": None}, where *random_crop_p* is the probability of applying random crop and *crop_height* and *crop_width* are the desired output size (out_h, out_w) of the crop.
# TODO: change doc for random crop

- `model_config`:
- `init_weight`: (str) model weights initialization method. "default" uses kaiming uniform initialization and "xavier" uses Xavier initialization method.
Expand Down
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ dependencies:
- ndx-pose
- pip
- pip:
- "--editable=.[dev]"
- "--editable=.[dev]"
- litdata
3 changes: 2 additions & 1 deletion environment_cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ dependencies:
- ndx-pose
- pip
- pip:
- "--editable=.[dev]"
- "--editable=.[dev]"
- litdata
3 changes: 2 additions & 1 deletion environment_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ dependencies:
- ndx-pose
- pip
- pip:
- "--editable=.[dev]"
- "--editable=.[dev]"
- litdata
Loading
Loading