Open LLF-afk opened 1 week ago
Its probably because data is not loading correctly.
This may be because the number of frames in all of your videos is less than lframe + gframe.
This may be because the number of frames in all of your videos is less than lframe + gframe.
请问你如何解决这个问题的?如果已经解决能否给我提供一些方案
我是将默认的gframe从16 / 32 设置为 4 / 8。或者你可以让每个视频的帧数量大于32。(主要原因是dataset不会读取帧数量小于lframe + gframe的视频)
修改exps/customed_example/v++_SwinTiny_example.py
中的self.gframe
、self.gframe_val
self.gframe = 4
self.gframe_val = 8 #config your gframe_val and gframe here
我是将默认的gframe从16 / 32 设置为 4 / 8。或者你可以让每个视频的帧数量大于32。(主要原因是dataset不会读取帧数量小于lframe + gframe的视频)
修改
exps/customed_example/v++_SwinTiny_example.py
中的self.gframe
、self.gframe_val
self.gframe = 4 self.gframe_val = 8 #config your gframe_val and gframe here
能否加一个联系方式呢,进一步回答呢,联系方式为qq:2926968068
This may be because the number of frames in all of your videos is less than lframe + gframe.
因为我现在主要是学习这个方向的
= 8 #config your gframe_val and gframe here
你好,我问一下你在自制的数据集上进行训练,效果如何?
Traceback (most recent call last):
File "/22085400415/leilanfang/smoke_fusion_theraml/YOLOV-master3/tools/vid_train.py", line 131, in
launch(
└ <function launch at 0x7fbdcd768670>
File "/22085400415/leilanfang/smoke_fusion_theraml/YOLOV-master3/tools/vid_train.py", line 115, in main trainer.train() │ └ <function Trainer.train at 0x7fbdc45c5d30> └ <yolox.core.vid_trainer.Trainer object at 0x7fbe446d6640>
File "/22085400415/leilanfang/smoke_fusion_theraml/YOLOV-master3/yolox/core/vid_trainer.py", line 122, in train self.train_in_epoch() │ └ <function Trainer.train_in_epoch at 0x7fbdc45c5dc0> └ <yolox.core.vid_trainer.Trainer object at 0x7fbe446d6640>
File "/22085400415/leilanfang/smoke_fusion_theraml/YOLOV-master3/yolox/core/vid_trainer.py", line 132, in train_in_epoch self.after_epoch() │ └ <function Trainer.after_epoch at 0x7fbdc45c7160> └ <yolox.core.vid_trainer.Trainer object at 0x7fbe446d6640>
File "/22085400415/leilanfang/smoke_fusion_theraml/YOLOV-master3/yolox/core/vid_trainer.py", line 278, in after_epoch self.evaluate_and_save_model() │ └ <function Trainer.evaluate_and_save_model at 0x7fbdc45c7430> └ <yolox.core.vid_trainer.Trainer object at 0x7fbe446d6640>
File "/22085400415/leilanfang/smoke_fusion_theraml/YOLOV-master3/yolox/core/vid_trainer.py", line 387, in evaluate_and_save_model detail_info = extract_values(summary_info) │ └ 'Average forward time: 0.00 ms, Average NMS time: 0.00 ms, Average inference time: 0.00 ms\n' └ <function extract_values at 0x7fbdc45c5b80>
File "/22085400415/leilanfang/smoke_fusion_theraml/YOLOV-master3/yolox/core/vid_trainer.py", line 42, in extract_values AP75 = re.search(r'Average Precision (AP) @[ IoU=0.75.*? ] = (\d+.\d+)', text).group(1) │ │ └ 'Average forward time: 0.00 ms, Average NMS time: 0.00 ms, Average inference time: 0.00 ms\n' │ └ <function search at 0x7fbe42e63af0> └ <module 're' from '/opt/conda/lib/python3.8/re.py'>
AttributeError: 'NoneType' object has no attribute 'group' 在自制的数据集上出现这个问题,这个问题如何解决,是不是一个视频的帧数太少了