You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyTorch has deprecated the weights kwarg for its pretrained models API. It has been replaced with 'weights=....'. Currently our model pipelines use timm as the backend which works with the 'pretrained' flag, but this will break if 'torch' is selected as the backend.
Requires minor change to config file structure in model.encoder_cfg to add the weights parameter, and minor changes to visual_encoder.py to not pass the pretrained param to the constructor, but rather the weights param. The 'weights param should not be passed to timm constructors. The config names should be changed to make it more clear that weights is for PyTorch and pretrained is for timm. E.g. timm_pretrained and torch_weights
The text was updated successfully, but these errors were encountered:
PyTorch has deprecated the weights kwarg for its pretrained models API. It has been replaced with 'weights=....'. Currently our model pipelines use timm as the backend which works with the 'pretrained' flag, but this will break if 'torch' is selected as the backend.
From torchvision docs (https://pytorch.org/vision/2.0/models.html):
Requires minor change to config file structure in model.encoder_cfg to add the weights parameter, and minor changes to visual_encoder.py to not pass the pretrained param to the constructor, but rather the weights param. The 'weights param should not be passed to timm constructors. The config names should be changed to make it more clear that weights is for PyTorch and pretrained is for timm. E.g. timm_pretrained and torch_weights
The text was updated successfully, but these errors were encountered: