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

Open
Answergeng opened this issue Mar 22, 2023 · 4 comments
Open

数据集多类别问题 #28

Answergeng opened this issue Mar 22, 2023 · 4 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应该是没有做递归遍历的

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

2 participants