Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/models/include/models/yolov10/yolov10.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ tensor_guid_t create_yolov10_c2fcib_module(

/**
* \brief Creates layers matching a single iteration of
* <a href="https://github.com/ultralytics/ultralytics/blob/f8ad132a15b5f6818c2ce0647b40dc57e993bf0c/ultralytics/nn/modules/head.py#L1799-L1804">
* <a href="https://github.com/ultralytics/ultralytics/blob/f8ad132a15b5f6818c2ce0647b40dc57e993bf0c/ultralytics/nn/modules/head.py#L105-L107">
* the loop
* </a>
* that creates the box head (aka <tt>cv3</tt>) for
* that creates the box head (aka <tt>cv2</tt>) for
* <a href="https://github.com/ultralytics/ultralytics/blob/f8ad132a15b5f6818c2ce0647b40dc57e993bf0c/ultralytics/nn/modules/head.py#L1761-L1810">
* ultralytics' <tt>v10Detect</tt> module.
* </a>
Expand All @@ -159,10 +159,10 @@ tensor_guid_t

/**
* \brief Creates layers matching a single iteration of
* <a href="https://github.com/ultralytics/ultralytics/blob/f8ad132a15b5f6818c2ce0647b40dc57e993bf0c/ultralytics/nn/modules/head.py#L106">
* <a href="https://github.com/ultralytics/ultralytics/blob/f8ad132a15b5f6818c2ce0647b40dc57e993bf0c/ultralytics/nn/modules/head.py#L1798-L1805">
* the loop
* </a>
* that creates the class head (aka <tt>cls_head</tt>, or <tt>cv2</tt>) for
* that creates the class head (aka <tt>cls_head</tt>, or <tt>cv3</tt>) for
* <a href="https://github.com/ultralytics/ultralytics/blob/f8ad132a15b5f6818c2ce0647b40dc57e993bf0c/ultralytics/nn/modules/head.py#L1761-L1810">
* ultralytics' <tt>v10Detect</tt> module.
* </a>
Expand Down
7 changes: 5 additions & 2 deletions lib/models/src/models/yolov10/yolov10.cc
Original file line number Diff line number Diff line change
Expand Up @@ -355,13 +355,16 @@ tensor_guid_t

/**
* https://github.com/ultralytics/ultralytics/blob/f8ad132a15b5f6818c2ce0647b40dc57e993bf0c/ultralytics/nn/modules/conv.py#L66
*
* Note that <tt>eps</tt> and <tt>momentum</tt> are set in:
* https://github.com/ultralytics/ultralytics/blob/f8ad132a15b5f6818c2ce0647b40dc57e993bf0c/ultralytics/utils/torch_utils.py#L558-L568
*/
tensor_guid_t out = cgb.batch_norm(
/*input=*/conv,
/*affine=*/true,
/*activation=*/std::nullopt,
/*eps=*/1e-5,
/*momentum=*/0.1);
/*eps=*/1e-3,
/*momentum=*/0.03);

/**
* https://github.com/ultralytics/ultralytics/blob/f8ad132a15b5f6818c2ce0647b40dc57e993bf0c/ultralytics/nn/modules/conv.py#L67
Expand Down
Loading