V2AI / Det3D

World's first general purpose 3D object detection codebse.
https://arxiv.org/abs/1908.09492
Apache License 2.0
1.5k stars 299 forks source link

test.py--OSerror:latest.pth is not a checkpoint file #156

Closed gkd2020 closed 3 years ago

gkd2020 commented 3 years ago

Thanks for your code!

Instructions To Reproduce the Issue:

Traceback (most recent call last): File "./tools/test.py", line 214, in main() File "./tools/test.py", line 172, in main checkpoint = load_checkpoint(model, args.checkpoint, map_location="cpu") File "/home/zzy/PycharmProjects/Det3D/det3d/torchie/trainer/checkpoint.py", line 155, in load_checkpoint raise IOError("{} is not a checkpoint file".format(filename)) OSError: /home/zzy/PycharmProjects/Det3D/work_dirs/latest.pth is not a checkpoint file

  1. what changes you made (git diff) or what code you wrote
    test.py not change
  2. what exact command you run:

python ./tools/test.py --show ./examples/point_pillars/configs/nusc_all_point_pillars_mghead_syncbn.py /home/zzy/PycharmProjects/Det3D/work_dirs/latest.pth

  1. what you observed (including the full logs):
    
    /home/zzy/miniconda3/envs/det3d/lib/python3.6/site-packages/numba/cuda/envvars.py:17: NumbaWarning: 
    Environment variables with the 'NUMBAPRO' prefix are deprecated and consequently ignored, found use of NUMBAPRO_CUDA_DRIVER=/usr/lib/x86_64-linux-gnu/libcuda.so.

For more information about alternatives visit: ('https://numba.pydata.org/numba-doc/latest/cuda/overview.html', '#cudatoolkit-lookup') warnings.warn(errors.NumbaWarning(msg)) /home/zzy/miniconda3/envs/det3d/lib/python3.6/site-packages/numba/cuda/envvars.py:17: NumbaWarning: Environment variables with the 'NUMBAPRO' prefix are deprecated and consequently ignored, found use of NUMBAPRO_NVVM=/usr/local/cuda/nvvm/lib64/libnvvm.so.

For more information about alternatives visit: ('https://numba.pydata.org/numba-doc/latest/cuda/overview.html', '#cudatoolkit-lookup') warnings.warn(errors.NumbaWarning(msg)) /home/zzy/miniconda3/envs/det3d/lib/python3.6/site-packages/numba/cuda/envvars.py:17: NumbaWarning: Environment variables with the 'NUMBAPRO' prefix are deprecated and consequently ignored, found use of NUMBAPRO_LIBDEVICE=/usr/local/cuda/nvvm/libdevice.

For more information about alternatives visit: ('https://numba.pydata.org/numba-doc/latest/cuda/overview.html', '#cudatoolkit-lookup') warnings.warn(errors.NumbaWarning(msg)) Traceback (most recent call last): File "./tools/test.py", line 214, in main() File "./tools/test.py", line 172, in main checkpoint = load_checkpoint(model, args.checkpoint, map_location="cpu") File "/home/zzy/PycharmProjects/Det3D/det3d/torchie/trainer/checkpoint.py", line 155, in load_checkpoint raise IOError("{} is not a checkpoint file".format(filename)) OSError: /home/zzy/PycharmProjects/Det3D/work_dirs/latest.pth is not a checkpoint file



Neither the model downloaded from the home page nor the model trained by myself can run. Thank you for your help.
poodarchu commented 3 years ago

Screen Shot 2021-11-02 at 3 56 57 PM does the file exist?

gkd2020 commented 3 years ago

Thanks a lot ! ! ! The file path is not correct. ....../work_dirs/nusc_all_point_pillars_mghed_syncbn/latest.pth