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

Tune augmentations with CLI and config for contrastive models #126

Merged
merged 5 commits into from
Aug 7, 2024

Conversation

ziw-liu
Copy link
Collaborator

@ziw-liu ziw-liu commented Aug 7, 2024

A simple CLI is added for training contrastive models with triplet data (not accessible from the main viscy entry point and not working for all stages). This allows hyperparameters to be documented in human-readable YAML config files along side TensorBoard training logs.

Usage:

python -m viscy.cli.contrastive_triplet fit -c fit.yml

Example training run:

/hpc/projects/intracellular_dashboard/viral-sensor/infection_classification/models/contrastive_tune_augmentations

For the future iteration (v0.3?) it might make sense to replace the manual CLI entry point (viscy [command]) with python's built-in (python -m viscy.cli.module [command]) to make supporting multiple learning tasks easier.

@ziw-liu ziw-liu changed the title Tune augmentations with CLI and config Tune augmentations with CLI and config for contrastive models Aug 7, 2024
@ziw-liu ziw-liu marked this pull request as ready for review August 7, 2024 20:23
@ziw-liu ziw-liu added the enhancement New feature or request label Aug 7, 2024
@mattersoflight
Copy link
Member

@ziw-liu please version an example fit.yml, perhaps in the examples folder.

@Soorya19Pradeep
Copy link
Contributor

I used the config provided on the path and tried the cli with my viscy environment. I tried a few changes in augmentation and configuring the workers. Thanks @ziw-liu !

@ziw-liu
Copy link
Collaborator Author

ziw-liu commented Aug 7, 2024

@ziw-liu please version an example fit.yml, perhaps in the examples folder.

The config is in the linked training run directory.

@ziw-liu ziw-liu merged commit a1df436 into main Aug 7, 2024
4 checks passed
@ziw-liu ziw-liu deleted the tune-augmentations branch August 7, 2024 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants