WIP: Added support for timm in unet #3717
Open
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.
This PR attempts to add
timm
models to theunet_learner
, as per conversations during Live Coding 17: https://forums.fast.ai/t/live-coding-17/97166I have several issues so far:
I don't know if theres a way to get the cut preferences from timm, I have added some code which tries to match them to fastai model types as a backup but they don't seem to match up so perhaps this is pointless and instead we either get them somewhere else or rely on manual user input
I tried training with them, but it seems like they use up a tonne of memory meaning my batch size can only be 1, not sure whats going on but something seems wrong especially considering i tried a smaller timm model
resnet18
than my default unet fastai modelresnet32
.I am sure I have done something wrong, and would appreciate some direction on what to do next.