Conversation
The train.py module was changed from v1 to v2 of fastai.
Updated train.py to fastai v2
Changed the learning rate insted of the BCE function, in case the model is trained with a sequence_len different than 64. All other changes were recommended by PR14
Forgot a change in the save_to name.
Corrected learning rate and f-string, deleted debugs and deleted datasource from sampler since it is not used.
Timbelime train v2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Breaking changes
log1pis now applied to FRP values at dataset creation time (viaActiveFiresLog) rather than at load time. Datasets created with the old pipeline (ActiveFires) are not compatible — they must be regenerated with the newbanet_create_datasetcommand..nc(NetCDF4) instead of.mat. Existing.matdatasets cannot be used directly with this version.Major changes
Core
data.py,predict.py,nrt.py,train.py,cli.py, etc.) from fastai v1 to fastai v2.matto.nc(NetCDF4); active fires now preprocessed withlog1pviaActiveFiresLogbefore savingTraining (new)
banet/train.pywithSampleEpisode,CustomLoader,ImageSequence,CutoutCombined,BCE, andtrain_model()banet_train_modelCLI commandTooling
setup.py+settings.iniwithpyproject.tomlnbdevdependency; source notebooks deleted (.pyfiles are now the source of truth)Makefile:makesets up the venv,make testruns pytestactions/setup-python@v5fastscriptwithfastcore.scriptCleanup
AUTOGENERATEDheaders and unusednbdevimports from source filesbanet/_nbdev.pyCONTRIBUTING.mdandREADME.mdContributors
train.pyimplementation (fastai v2 training pipeline) via PR Timbelime train v2 #14