THU-MIG / RepViT

RepViT: Revisiting Mobile CNN From ViT Perspective [CVPR 2024] and RepViT-SAM: Towards Real-Time Segmenting Anything
https://arxiv.org/abs/2307.09283
Apache License 2.0
681 stars 55 forks source link

TypeError: repvit_m0_9() got an unexpected keyword argument 'pretrained_cfg' #44

Closed ZackGoing closed 4 months ago

ZackGoing commented 4 months ago

我运行train.sh,报错了,请问怎么解决这个问题,谢谢

jameslahm commented 4 months ago

您好,可以在repvit_m0_9()入参最后加入**kwargs,类似这样

def repvit_m0_9(..., **kwargs)