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

File not found error on using trained model for testing #33

Open
harshj94 opened this issue Aug 31, 2019 · 1 comment
Open

File not found error on using trained model for testing #33

harshj94 opened this issue Aug 31, 2019 · 1 comment

Comments

@harshj94
Copy link

Getting the following error:

(base) username@user:~/abc/FD-GAN$ python baseline.py -b 256 -d market1501 -a resnet50 --evaluate --resume best_net_E.pth.tar
Traceback (most recent call last):
File "baseline.py", line 200, in
main(parser.parse_args())
File "baseline.py", line 84, in main
sys.stdout = Logger(osp.join(log_dir, 'log_test.txt'))
File "/home/xyz/FD-GAN/reid/utils/logging.py", line 13, in init
mkdir_if_missing(os.path.dirname(fpath))
File "/home/xyz/FD-GAN/reid/utils/osutils.py", line 8, in mkdir_if_missing
os.makedirs(dir_path)
File "/home/pqr/anaconda3/lib/python3.7/os.py", line 221, in makedirs
mkdir(name, mode)
FileNotFoundError: [Errno 2] No such file or directory: ''

@yxgeee
Copy link
Owner

yxgeee commented Sep 17, 2019

Please double check the arg --resume, which directs the absolute path for best_net_E.pth.tar.

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

2 participants