mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-22 21:04:21 +08:00
add calculation for flops
This commit is contained in:
parent
587981fc27
commit
1539b5a678
8
flops.py
Normal file
8
flops.py
Normal file
@ -0,0 +1,8 @@
|
||||
from ultralytics import YOLOv10
|
||||
|
||||
model = YOLOv10('yolov10n.yaml')
|
||||
model.model.model[-1].export = True
|
||||
model.model.model[-1].format = 'onnx'
|
||||
del model.model.model[-1].cv2
|
||||
del model.model.model[-1].cv3
|
||||
model.fuse()
|
@ -496,7 +496,7 @@ class RTDETRDecoder(nn.Module):
|
||||
|
||||
class v10Detect(Detect):
|
||||
|
||||
max_det = -1
|
||||
max_det = 300
|
||||
|
||||
def __init__(self, nc=80, ch=()):
|
||||
super().__init__(nc, ch)
|
||||
|
Loading…
x
Reference in New Issue
Block a user