slideflow icon indicating copy to clipboard operation
slideflow copied to clipboard

Customized optimizer

Open cswpy opened this issue 2 years ago • 1 comments

Feature

Support for customized optimizers during training allows for greater flexibility in training models. Some frameworks in WSI tasks consist of multiple networks. Right now, we can only build a model with a single network.

Pitch

There are some models that require customized optimizers, typically models that are consisted of several modules. For example, WENO is consisted of a student network and a teacher network. Right now, I cannot implement WENO using SlideFlow.

Alternatives

I don't think the current version has support for such knowledge distillation network.

Additional context

cswpy avatar Apr 26 '23 14:04 cswpy

Thanks for this suggestion. At present, Slideflow could be used for image processing and preparation of feature bags (in PyTorch format) for external, customized MIL training loops like WENO. I will look into whether we can extend our MIL training framework to add support for custom optimizers. I don't think it would take too much work.

jamesdolezal avatar Apr 28 '23 21:04 jamesdolezal