Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType #57

Open
yuanfuture opened this issue Aug 10, 2023 · 0 comments

Comments

@yuanfuture
Copy link

Hello, first of all, thank you very much for your outstanding work, I have some questions to consult, the model has been configured according to the requirements, and the model can be trained normally, and can achieve similar results as in the paper, but I encountered the following problems when reasoning, may I ask why? Thank you very much! By the way, the statements I execute at inference time are : python test.py --cfg_file cfgs/kitti_models/sfd.yaml --batch_size 1

Traceback (most recent call last):
File "test.py", line 204, in
main()
File "test.py", line 200, in main
eval_single_ckpt(model, test_loader, args, eval_output_dir, logger, epoch_id, dist_test=dist_test)
File "test.py", line 60, in eval_single_ckpt
model.load_params_from_file(filename=args.ckpt, logger=logger, to_cpu=dist_test)
File "/media/SFD/pcdet/models/detectors/detector3d_template.py", line 355, in load_params_from_file
if not os.path.isfile(filename):
File "/home/miniconda3/envs/Basics-L/lib/python3.8/genericpath.py", line 30, in isfile
st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant