yolov4-tf2
yolov4-tf2 copied to clipboard
这是一个yolo4-tf2(tensorflow2)的源码,可以用于训练自己的模型。
由于我使用的数据集尺寸非常多,导致默认的mIOU很低,因此我尝试在yolo_anchors.txt文件中加入anchors使得总共有20个anchors,但是程序运行报错,这个该如何求解。谢谢博主  
运行出错了
大哥,,,帮帮忙!!!!! 报错位置是这里:   model.fit(data_generator(lines[:num_train], batch_size, input_shape, anchors, num_classes, mosaic=mosaic), steps_per_epoch=max(1, num_train//batch_size), validation_data=data_generator(lines[num_train:], batch_size, input_shape, anchors, num_classes, mosaic=False), validation_steps=max(1, num_val//batch_size), epochs=Freeze_epoch, initial_epoch=Init_epoch, max_queue_size=1, callbacks=[logging, checkpoint, reduce_lr, early_stopping] ) TypeError: int()...
程序运行后的第一次检测,速度特别慢。如果要运用于移动端,应该怎么解决呢?
请教,生成的中间文件2007_train.txt格式是什么样子的?我生成的是这样的: /media/cfs/xxxx/Projects/DetectionOCR_seal/seal_detectionOCR_v1/yolov4_tf2/VOCdevkit/VOC2007/JPEGImages/110.jpg 791.6666666666667,295.0,961.6666666666667,605.0,0 968.6046511627907,347.6744186046512,1086.046511627907,676.7441860465117,1 其中第一个是图片的路径,紧接着的是两个box, 按照顺序分别是x1,y1,x2,y2,class_id, 请问这样对吗?
这种格式,我看在tf1.X中挺常用的,但是在tf2.x中大佬们都不用了。是为什么呢?