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

数据集多类别问题 #28

Closed
Answergeng opened this issue Mar 22, 2023 · 6 comments
Closed

数据集多类别问题 #28

Answergeng opened this issue Mar 22, 2023 · 6 comments

Comments

@Answergeng
Copy link

你好 想请教一下这种已经分好类的数据集我想合并类别需要怎么修改 比如说把car bus truck都合并成car
QQ截图20230322173943

@Fafa-DL
Copy link
Owner

Fafa-DL commented Mar 22, 2023

在原始数据集那一步把这三个子文件夹放一块就行

@Answergeng
Copy link
Author

在原始数据集那一步把这三个子文件夹放一块就行

试了会报错 IsADirectoryError: [Errno 21] Is a directory:
如果你指的是所有文件放一起的话 那这分类的操作就白做了
还有一个就是有时候数据集太大再做拷贝不太现实 建议只获取路径写入txt会不会更合适点?

@Fafa-DL
Copy link
Owner

Fafa-DL commented Mar 23, 2023

指的就是把三个子文件夹下图片放在car文件夹下。你提出的问题不就是要将这三个类别改为一个类别吗?

@Answergeng
Copy link
Author

指的就是把三个子文件夹下图片放在car文件夹下。你提出的问题不就是要将这三个类别改为一个类别吗?

嗯嗯 但是会报错 看了split_data应该是没有做递归遍历的

@jackyjinjing
Copy link
Contributor

需要文件放到一个目录下,不要把目录和文件整个copy过来,你如果嫌移动文件麻烦,也可以改spit_data脚本,支持文件夹里面有文件夹

@Answergeng
Copy link
Author

需要文件放到一个目录下,不要把目录和文件整个copy过来,你如果嫌移动文件麻烦,也可以改spit_data脚本,支持文件夹里面有文件夹

移文件肯定麻烦 当时应该是改了split_data

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

3 participants