The default args are not passed into get_scheduler in train.py
max_epoch=1,
n_epochs_init=50,
n_epochs_decay=50,
As a result, cosine and linear scheduler does not work properly. cosine will oscillate rapidly between 1 and 0 and linear will decrease the lr to negative values, causing the loss to explode
https://github.com/ziqi-jin/finetune-anything/blob/1e5640d7796b078248b1c24a18ca34c6d834f025/extend_sam/__init__.py#L34C5-L34C18
The default args are not passed into get_scheduler in train.py
As a result,
cosine
andlinear
scheduler does not work properly.cosine
will oscillate rapidly between 1 and 0 andlinear
will decrease the lr to negative values, causing the loss to explode