Closed AlexKaravaev closed 4 years ago
@AlexKaravaev
The finetune is actually only taking the weights of backbone into consideration. The weights of classifer is still random initalized. So the loss might be large. If you want to finetune the model while including the weights of classifier, you can change the code in here
https://github.com/cfzd/Ultra-Fast-Lane-Detection/blob/dadb937b01ea58428172eaa479c528c187314cdc/train.py#L127-L128
to if 'model' in k or 'cls' in k:
For the size of model:
The saved model files include weights of backbone, classification branch, auxiliary segmentation branch and optimizer. culane_18.pth
removed the weights of auxiliary segmentation branch and optimizer, so it is smaller.
Thank you! It works now even on my dataset, results are impressive. Cheers for the work, you've done!
I try to fine tune on culane data(just to check), however it's seems like the model, that I am using for fine-tune is really random weights, because first epochs of learning loss is really big and performance is really poor.
Config
Also this is strange, I do not know, why this is happening, but .pth files from train.py locally have size 356 MB, and provided culane_18.pth is 178 MB. Why is it down by factor of 2?