DocF / multispectral-object-detection

Multispectral Object Detection with Yolov5 and Transformer
GNU Affero General Public License v3.0
298 stars 57 forks source link

抱歉刚入门复现此项目,请问转出来的.txt格式的标签文件的位置应该放在哪里 #40

Open jayendsff opened 1 year ago

jayendsff commented 1 year ago

抱歉刚入门复现此项目,请问转出来的.txt格式的标签文件的位置应该放在哪里

jayendsff commented 1 year ago

问题已解决,多有打扰抱歉

jackdhwu commented 1 year ago

遇到同样的问题,请问你文件夹是什么样的结构?怎么转的txt呀?

jayendsff commented 1 year ago

hi你好,你可以参考yolov5页面的那个建立一个datasets目录即可,比如我就是 datasets/RGB/images 里面还有val/train/test的图片文件 datasets/RGB/labels 里面还有val/train/test的.txt文件 datasets/IR/images 里面还有val/train/test的图片文件 datasets/IR/labels 里面还有val/train/test的.txt文件

然后在主目录再建立一个对应的文件夹类似于flir那样的,分别储存四个tran/val的txt文件即可(这里的四个txt文件需要带相对路径)

转txt使用yolov5自带的xml转txt程序即可。  

小裤 @.***

 

------------------ Original message ------------------ From: "jackdhwu"; Sendtime: Friday, Nov 4, 2022 3:07 PM To: "DocF/multispectral-object-detection"; Cc: @.***>; "Author"; Subject: Re: [DocF/multispectral-object-detection] 抱歉刚入门复现此项目,请问转出来的.txt格式的标签文件的位置应该放在哪里 (Issue #40)

遇到同样的问题,请问你文件夹是什么样的结构?怎么转的txt呀?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jackdhwu commented 1 year ago

好的,谢谢前辈,我去试试!

xiejiadiwu commented 1 year ago

您好 ,请问一下主目录内的txt文件是包含图片文件路径还是label文件路径 抑或是其他 我两个都尝试了 都会报错

train: WARNING: No labels found in data/datasets/LLVIP/visible/train.cache.

xiejiadiwu commented 1 year ago

他应该是按照我储存的txt文件中的路径去寻找标签吧

jayendsff commented 1 year ago

您好,datasets文件夹应当和data处于同一级目录下。 以下是我运行此项目的一个参考: 1.目录结构

(1)datasets里可见光和红外单独存放,参考yolov5项目的datasets,里面分别有images和labels两个文件夹,此处无需在images和labels下划分train/val/test。

(2)对红外和可见光的图像划分train/val/test,生成所需的train_rgb.txt、val_rgb.txt、train_ir.txt、val_ir.txt四个文件,使用yolov5的划分代码即可,网上都有,放在主目录下的fl文件夹(自行命名即可),以train_rgb.txt和val_ir.txt为例,路径相对于主目录即可:

(3)修改data/multispectral/FLIR_aligned.yaml,路径相对于主目录即可


小裤 @.***

 

------------------ Original ------------------ From: @.>; Send time: Monday, Nov 14, 2022 9:58 PM @.>; @.>; @.>; Subject:  Re: [DocF/multispectral-object-detection] 抱歉刚入门复现此项目,请问转出来的.txt格式的标签文件的位置应该放在哪里 (Issue #40)

您好 ,请问一下主目录内的txt文件是包含图片文件路径还是label文件路径 抑或是其他 我两个都尝试了 都会报错

train: WARNING: No labels found in data/datasets/LLVIP/visible/train.cache.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jayendsff commented 1 year ago

我发现我上传的图片被吞了。 重新说明下: (1)【datasets】、【data】、【fl】处于同一层级下; (2)【datasets】文件夹下两文件夹[FLIR]和[RGB],[FLIR]文件夹下两文件夹[images]和[labels],储存全部红外图和.txt格式标签文件,无需进一步划分train、val、test文件夹此处。 (3)对[FLIR]和[RGB]图像划分train、val、test生成所需的train_rgb.txt、val_rgb.txt、train_ir.txt、val_ir.txt四个文件,放在【fl】文件夹下。对了,我在划分的时候发现这个数据集目标是3类:[ ‘person', 'car', 'bicycle'] (4)train_rgb.txt内部每行数据格式为:                     datasets/RGB/images/FLIR_11004_RGB.jpg                     datasets/RGB/images/FLIR_12104_RGB.jpg ………………………………………………………………………………………… (5)val_ir.txt内部每行数据格式为:                     datasets/FLIR/images/FLIR_12104_PreviewData.jpeg                     datasets/FLIR/images/FLIR_12304_PreviewData.jpeg ………………………………………………………………………………………… (6)修改data/multispectral/FLIR_aligned.yaml,路径相对于主目录即可: 如train_rgb: ./fl/train_rgb.txt ........ nc: 3 names: [ ‘person', 'car', 'bicycle']


小裤 @.***

 

------------------ Original ------------------ From: @.>; Send time: Monday, Nov 14, 2022 9:59 PM @.>; @.>; @.>; Subject:  Re: [DocF/multispectral-object-detection] 抱歉刚入门复现此项目,请问转出来的.txt格式的标签文件的位置应该放在哪里 (Issue #40)

他应该是按照我储存的txt文件中的路径去寻找标签吧

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

xiejiadiwu commented 1 year ago

好的 谢谢您的解答

jayendsff commented 1 year ago

好的 谢谢您的解答 :>(4)、(5)没有那些nbsp空格啊,直接看后面就好,github的回复格式我还不是很熟悉

EveningLin commented 1 year ago

@jayendsff 我在百度下载的好像是没有rgb图像标注文件?

dyx30 commented 7 months ago

@jayendsff

您好,我想请问一下,作者在哪里指定了数据集的划分?谢谢。

123abxc commented 5 months ago

@dyx30 您好 请问您复现成功了嘛,谢谢

jayendsff commented 5 months ago

您好是可以复现成功的,但是时间比较久远了具体操作忘记了。

小裤 @.***

 

------------------ 原始邮件 ------------------ 发件人: "DocF/multispectral-object-detection" @.>; 发送时间: 2024年5月8日(星期三) 下午2:30 @.>; @.**@.>; 主题: Re: [DocF/multispectral-object-detection] 抱歉刚入门复现此项目,请问转出来的.txt格式的标签文件的位置应该放在哪里 (Issue #40)

@dyx30 您好 请问您复现成功了嘛,谢谢

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

123abxc commented 5 months ago

请问方便教我一下如何复现嘛 我尝试了好几天都没能成功

------------------ 原始邮件 ------------------ 发件人: "DocF/multispectral-object-detection" @.>; 发送时间: 2024年5月8日(星期三) 下午5:41 @.>; @.**@.>; 主题: Re: [DocF/multispectral-object-detection] 抱歉刚入门复现此项目,请问转出来的.txt格式的标签文件的位置应该放在哪里 (Issue #40)

您好是可以复现成功的,但是时间比较久远了具体操作忘记了。

小裤 @.***

 

------------------ 原始邮件 ------------------ 发件人: "DocF/multispectral-object-detection" @.>; 发送时间: 2024年5月8日(星期三) 下午2:30 @.>; @.**@.>; 主题: Re: [DocF/multispectral-object-detection] 抱歉刚入门复现此项目,请问转出来的.txt格式的标签文件的位置应该放在哪里 (Issue #40)

@dyx30 您好 请问您复现成功了嘛,谢谢

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

mengyin369 commented 1 month ago

请问一下,我生成的标签文件是一一对应的,如何合成一个train.txt这样的标签文件 PixPin_2024-08-31_16-48-37