yolov5_rotation icon indicating copy to clipboard operation
yolov5_rotation copied to clipboard

windows下训练报错--缓存标签读取有问题

Open wang-TJ-20 opened this issue 2 years ago • 2 comments

❔Question

File "D:/CV/NIO/yolov5_rotation-master/yolov5_rotation-master/yolov5_rotation-master/train_rotation.py", line 212, in train testloader = create_dataloader(test_path, imgsz_test, batch_size * 2, gs, single_cls, File "D:\CV\NIO\yolov5_rotation-master\yolov5_rotation-master\yolov5_rotation-master\utils\datasets_rotation.py", line 75, in create_dataloader dataset = LoadImagesAndLabels(path, imgsz, batch_size, File "D:\CV\NIO\yolov5_rotation-master\yolov5_rotation-master\yolov5_rotation-master\utils\datasets_rotation.py", line 417, in init labels, shapes, self.segments = zip(*cache.values()) ValueError: not enough values to unpack (expected 3, got 0) 缓存标签读取有问题,debug发现cache里面读不到值

Additional context

wang-TJ-20 avatar Mar 29 '22 12:03 wang-TJ-20

把Label文件夹cache删掉,重新试试?

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: wang-TJ-20 @.> 发送时间: 2022年3月29日 20:28 收件人: onehahaha756/yolov5_rotation @.> 抄送: Subscribed @.***> 主题: Re: [onehahaha756/yolov5_rotation] windows下训练报错--缓存标签读取有问题 (Issue #18)

❔Question

File "D:/CV/NIO/yolov5_rotation-master/yolov5_rotation-master/yolov5_rotation-master/train_rotation.py", line 212, in train testloader = create_dataloader(test_path, imgsz_test, batch_size * 2, gs, single_cls, File "D:\CV\NIO\yolov5_rotation-master\yolov5_rotation-master\yolov5_rotation-master\utils\datasets_rotation.py", line 75, in create_dataloader dataset = LoadImagesAndLabels(path, imgsz, batch_size, File "D:\CV\NIO\yolov5_rotation-master\yolov5_rotation-master\yolov5_rotation-master\utils\datasets_rotation.py", line 417, in init labels, shapes, self.segments = zip(*cache.values()) ValueError: not enough values to unpack (expected 3, got 0) 缓存标签读取有问题,debug发现cache里面读不到值

Additional context

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

onehahaha756 avatar Mar 29 '22 12:03 onehahaha756

我试了还是不行,在之前遇到这个,我把它注释了,会不会是他的影响😂

---原始邮件--- 发件人: @.> 发送时间: 2022年3月29日(周二) 晚上8:38 收件人: @.>; 抄送: @.@.>; 主题: Re: [onehahaha756/yolov5_rotation] windows下训练报错--缓存标签读取有问题 (Issue #18)

把Label文件夹cache删掉,重新试试?

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: wang-TJ-20 @.> 发送时间: 2022年3月29日 20:28 收件人: onehahaha756/yolov5_rotation @.> 抄送: Subscribed @.***> 主题: Re: [onehahaha756/yolov5_rotation] windows下训练报错--缓存标签读取有问题 (Issue #18)

❔Question

File "D:/CV/NIO/yolov5_rotation-master/yolov5_rotation-master/yolov5_rotation-master/train_rotation.py", line 212, in train testloader = create_dataloader(test_path, imgsz_test, batch_size * 2, gs, single_cls, File "D:\CV\NIO\yolov5_rotation-master\yolov5_rotation-master\yolov5_rotation-master\utils\datasets_rotation.py", line 75, in create_dataloader dataset = LoadImagesAndLabels(path, imgsz, batch_size, File "D:\CV\NIO\yolov5_rotation-master\yolov5_rotation-master\yolov5_rotation-master\utils\datasets_rotation.py", line 417, in init labels, shapes, self.segments = zip(*cache.values()) ValueError: not enough values to unpack (expected 3, got 0) 缓存标签读取有问题,debug发现cache里面读不到值

Additional context

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

wang-TJ-20 avatar Oct 11 '22 06:10 wang-TJ-20