Yu-Wu / Exploit-Unknown-Gradually

CVPR 2018 Exploit the Unknown Gradually: One-Shot Video-Based Person Re-Identification by Stepwise Learning

Home Page:https://yu-wu.net/pdf/CVPR2018_Exploit-Unknown-Gradually.pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid Argument

MAdil45 opened this issue · comments

Hi. Thanks for the repository. I am getting a weird error. Could you please guide me through it. Looking forward your positive response.

(reid) F:\16181510532019\PREID_PRIM\Exploit-Unknown-Gradually>python run.py --dataset mars --logs_dir /logs/mars_EF_10/ --EF 10 --mode Dissimilarity --max_frames 300
Traceback (most recent call last):
File "run.py", line 116, in
main(parser.parse_args())
File "run.py", line 53, in main
sys.stdout = Logger(osp.join(args.logs_dir, 'log'+ str(args.EF)+ time.strftime(".%m_%d_%H:%M:%S") + '.txt'))
File "F:\16181510532019\PREID_PRIM\Exploit-Unknown-Gradually\reid\utils\logging.py", line 14, in init
self.file = open(fpath, 'w')
OSError: [Errno 22] Invalid argument: '/logs/mars_EF_10/log10.03_12_19:24:02.txt'

commented

@MAdil45

It seems the Windows OS caused this issue.

Please try Linux.
Otherwise you have to change the file path format to Windows by yourself.

Hi @Yu-Wu Thanks: Appreciate it.