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

Change fileState.txt file path format #81

Closed
wants to merge 3 commits into from

Conversation

yes-github
Copy link
Collaborator

  1. 把fileState.txt文件中的图片文件路径保存格式从绝对路径改为相对路径(和Label.txt格式一致)
  2. 删除不方便定位列表文件的自然排序(使用默认的字符排序),同时增强图片数量大的时候性能

PPOCRLabel.py Outdated
@@ -2246,7 +2249,7 @@ def scanAllImages(self, folderPath):
relativePath = os.path.join(folderPath, file)
path = ustr(os.path.abspath(relativePath))
images.append(path)
natural_sort(images, key=lambda x: x.lower())
# natural_sort(images, key=lambda x: x.lower())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个还是保留吧,不然每次打开可能结果不一样。

@yes-github yes-github closed this Sep 16, 2024
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.

2 participants