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

Picture saving bug fixed. #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yang-jin-hai
Copy link

Picture output fails in Windows system, since the path is not correctly obtained.

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

This trouble result from that Windows use '' as seperator, which can be easily solved by adding another split.

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

@QizhengWu
Copy link

QizhengWu commented May 11, 2019

Hi, thanks a lot for your code @WannaSeaU, but I still have problems processing images in a directory in Windows system. When I run the code using "python detect.py --images imgs --det det" in the Anaconda prompt, where "imgs" is the directory storing many images, the detection results can only be shown in the prompt line by line without any result images being saved into "det". Can you please help me? Thank you very much.

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.

None yet

3 participants