Open mhruz opened 2 years ago
https://github.com/fundamentalvision/Deformable-DETR/blob/11169a60c33333af00a4849f1808023eba96a931/util/misc.py#L30
For torchvision version >0.10.0 this check fails and the algorithm determines the version is <0.5
Proposed solution:
torchvision_version = torchvision.__version__.split(".") if float(torchvision_version[0]) < 0 and float(torchvision_version[1]) < 5:
https://github.com/fundamentalvision/Deformable-DETR/blob/11169a60c33333af00a4849f1808023eba96a931/util/misc.py#L30
For torchvision version >0.10.0 this check fails and the algorithm determines the version is <0.5