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

数据集的目录形式是什么样的? #22

Open
zhjw0927 opened this issue May 15, 2019 · 7 comments
Open

数据集的目录形式是什么样的? #22

zhjw0927 opened this issue May 15, 2019 · 7 comments

Comments

@zhjw0927
Copy link

我想请问下数据集的目录形式,和这段代码是什么意思?
if isinstance(list_file, list):
# Cat multiple list files together.
# This is especially useful for voc07/voc12 combination.
tmp_file = '/tmp/listfile.txt'
os.system('cat %s > %s' % (' '.join(list_file), tmp_file))
list_file = tmp_file

@czy112
Copy link

czy112 commented Jul 11, 2020

请问你有解决吗?

@Kun-Mengyao
Copy link

Kun-Mengyao commented Apr 7, 2021

同问!!!请教

我想请问下数据集的目录形式,和这段代码是什么意思?
if isinstance(list_file, list):

Cat multiple list files together.

This is especially useful for voc07/voc12 combination.

tmp_file = '/tmp/listfile.txt'
os.system('cat %s > %s' % (' '.join(list_file), tmp_file))
list_file = tmp_file

同问!!不知道'/tmp/listfile.txt'里面是什么文件

@M088
Copy link

M088 commented Jan 24, 2022

你好,请问你解决了吗

@freemedom
Copy link

list_file就是个list,里边有一些"xxx.txt"
代码的意思就是合并这些txt到一个txt“/tmp/listfile.txt”中

@freemedom
Copy link

freemedom commented May 16, 2022

理论上会自动创建这个文件的,但是文件夹不能自动创建

@myshrry
Copy link

myshrry commented Jun 23, 2022

cat查看list_file中的所有txt文件内容,>重定向到tmp_file文件

@Zero-2021
Copy link

你需要吧voc2012.txt和voc2007混合,同样图片数据集也需要混合。

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

7 participants