-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add support for training #159
Conversation
…ning widget; minor refactor
Hey @lorenzocerrone, I'd say this PR is good to go and we can move forward to combining it with your dataset management functionality in #161. Quick update: I've removed the training widget from GUI and allow the training in the headless mode only, so that this branch doesn't impact any of the current functionalities and it's safe to merge. Training the model headless and then using it in napari gui works already, but would be great to have it properly integrated with the dataset management :) |
Looks good! Let’s have a minor release, and plan a major one by the end of January when the dataset manager and the docs are ready :) |
--config
optionCurrently only dense training is supported where the user select the dataset directory. It is expected that the
DATASET_DIR
containstrain
andval
subdirectories, where the training and validation h5 files can be found. In order to support training from exported proofreading, we could e.g. create an additional metadata file inside theDATASET_DIR
, which can be parsed for creating the loaders.The outcome of the training is the model files (
config_train.yml
,best_checkpoint.pytorch
, 'last_checkpoint.pytorch`) saved inside the directory specified by he user.