Skip to content

Conversation

@liuslnlp
Copy link

@liuslnlp liuslnlp commented Jan 13, 2019

The separator in Windows is "\" and in Linux is "/", so this line will be invalid on Win system

det_names = pd.Series(imlist).apply(lambda x: "{}/det_{}".format(args.det,x.split("/")[-1]))

and I modified it to

if platform.system() == 'Windows':
        det_names = pd.Series(imlist).apply(lambda x: "{}\\det_{}".format(args.det,x.split("\\")[-1]))
    else:
        det_names = pd.Series(imlist).apply(lambda x: "{}/det_{}".format(args.det,x.split("/")[-1]))

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

Successfully merging this pull request may close these issues.

1 participant