hyz-xmaster / VarifocalNet

VarifocalNet: An IoU-aware Dense Object Detector
Apache License 2.0
346 stars 52 forks source link

About load model #7

Closed yy18dlz closed 3 years ago

yy18dlz commented 3 years ago

Hi, when I load vfnet_r50_fpn_1x_coco20201027-38db6f58.pth model there has some error: RuntimeError: version <= kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at /pytorch/caffe2/serialize/inline_container.cc:132, please repor t a bug to PyTorch. Attempted to read a PyTorch file with version 3, but the maximum supported version for reading is 2. Your PyTorch installation may be too old. (init at /pytorch/caffe2/serialize/inline_container.cc:132)

my torch version

torch.version '1.4.0+cu100'

hyz-xmaster commented 3 years ago

Hi, the published models are trained using PyTorch 1.6.0 and are not tested with PyTorch 1.4.0. The error information indicates that your version of PyTorch is not compatible with the file format you were reading. The possible solution is updating your PyTorch to a higher version, say, 1.6.0.

yy18dlz commented 3 years ago

Hi, the published models are trained using PyTorch 1.6.0 and are not tested with PyTorch 1.4.0. The error information indicates that your version of PyTorch is not compatible with the file format you were reading. The possible solution is updating your PyTorch to a higher version, say, 1.6.0.

It works! Thanks~