提交 1256d982 编写于 作者: N nemonameless

fix mot identity gttxt doc, test=document_fix

上级 cb568212
...@@ -163,7 +163,7 @@ In the annotation text, each line is describing a bounding box and has the follo ...@@ -163,7 +163,7 @@ In the annotation text, each line is describing a bounding box and has the follo
``` ```
**Notes:** **Notes:**
- `class` should be `0`. Only single-class multi-object tracking is supported now. - `class` should be `0`. Only single-class multi-object tracking is supported now.
- `identity` is an integer from `0` to `num_identities - 1`(`num_identities` is the total number of instances of objects in the dataset), or `-1` if this box has no identity annotation. - `identity` is an integer from `1` to `num_identities`(`num_identities` is the total number of instances of objects in the dataset), or `-1` if this box has no identity annotation.
- `[x_center] [y_center] [width] [height]` are the center coordinates, width and height, note that they are normalized by the width/height of the image, so they are floating point numbers ranging from 0 to 1. - `[x_center] [y_center] [width] [height]` are the center coordinates, width and height, note that they are normalized by the width/height of the image, so they are floating point numbers ranging from 0 to 1.
### Dataset Directory ### Dataset Directory
......
...@@ -161,7 +161,7 @@ MOT17 ...@@ -161,7 +161,7 @@ MOT17
``` ```
**注意**: **注意**:
- `class``0`,目前仅支持单类别多目标跟踪。 - `class``0`,目前仅支持单类别多目标跟踪。
- `identity`是从`0``num_identifies-1`的整数(`num_identifies`是数据集中不同物体实例的总数),如果此框没有`identity`标注,则为`-1` - `identity`是从`1``num_identifies`的整数(`num_identifies`是数据集中不同物体实例的总数),如果此框没有`identity`标注,则为`-1`
- `[x_center] [y_center] [width] [height]`是中心点坐标和宽高,注意他们的值是由图片的宽度/高度标准化的,因此它们是从0到1的浮点数。 - `[x_center] [y_center] [width] [height]`是中心点坐标和宽高,注意他们的值是由图片的宽度/高度标准化的,因此它们是从0到1的浮点数。
### 数据集目录 ### 数据集目录
......
...@@ -39,7 +39,7 @@ In the annotation text, each line is describing a bounding box and has the follo ...@@ -39,7 +39,7 @@ In the annotation text, each line is describing a bounding box and has the follo
``` ```
**Notes:** **Notes:**
- `class` should be `0`. Only single-class multi-object tracking is supported now. - `class` should be `0`. Only single-class multi-object tracking is supported now.
- `identity` is an integer from `0` to `num_identities - 1`(`num_identities` is the total number of instances of objects in the dataset), or `-1` if this box has no identity annotation. - `identity` is an integer from `1` to `num_identities`(`num_identities` is the total number of instances of objects in the dataset), or `-1` if this box has no identity annotation.
- `[x_center] [y_center] [width] [height]` are the center coordinates, width and height, note that they are normalized by the width/height of the image, so they are floating point numbers ranging from 0 to 1. - `[x_center] [y_center] [width] [height]` are the center coordinates, width and height, note that they are normalized by the width/height of the image, so they are floating point numbers ranging from 0 to 1.
...@@ -124,16 +124,18 @@ imExt=.jpg ...@@ -124,16 +124,18 @@ imExt=.jpg
Each line in `gt.txt` describes a bounding box, with the format as follows: Each line in `gt.txt` describes a bounding box, with the format as follows:
``` ```
[frame_id],[identity],[bb_left],[bb_top],[width],[height],[x],[y],[z] [frame_id],[identity],[bb_left],[bb_top],[width],[height],[score],[label],[vis_ratio]
``` ```
**Notes:**: **Notes:**:
- `frame_id` is the current frame id. - `frame_id` is the current frame id.
- `identity` is an integer from `0` to `num_identities - 1`(`num_identities` is the total number of instances of objects in the dataset), or `-1` if this box has no identity annotation. - `identity` is an integer from `1` to `num_identities`(`num_identities` is the total number of instances of objects in the dataset), or `-1` if this box has no identity annotation.
- `bb_left` is the x coordinate of the left boundary of the target box - `bb_left` is the x coordinate of the left boundary of the target box
- `bb_top` is the Y coordinate of the upper boundary of the target box - `bb_top` is the Y coordinate of the upper boundary of the target box
- `width, height` are the pixel width and height - `width, height` are the pixel width and height
- `x,y,z` are only used in 3D, default to `-1` in 2D. - `score` acts as a flag whether the entry is to be considered. A value of 0 means that this particular instance is ignored in the evaluation, while a value of 1 is used to mark it as active. `1` by default.
- `label` is the type of object annotated, use `1` as default because only single-class multi-object tracking is supported now. There are other classes of object in MOT-16, but they are treated as ignore.
- `vis_ratio` is the visibility ratio of each bounding box. This can be due to occlusion by another
static or moving object, or due to image border cropping. `1` by default.
#### labels_with_ids #### labels_with_ids
Annotations of these datasets are provided in a unified format. Every image has a corresponding annotation text. Given an image path, the annotation text path can be generated by replacing the string `images` with `labels_with_ids` and replacing `.jpg` with `.txt`. Annotations of these datasets are provided in a unified format. Every image has a corresponding annotation text. Given an image path, the annotation text path can be generated by replacing the string `images` with `labels_with_ids` and replacing `.jpg` with `.txt`.
...@@ -144,7 +146,7 @@ In the annotation text, each line is describing a bounding box and has the follo ...@@ -144,7 +146,7 @@ In the annotation text, each line is describing a bounding box and has the follo
``` ```
**Notes:** **Notes:**
- `class` should be `0`. Only single-class multi-object tracking is supported now. - `class` should be `0`. Only single-class multi-object tracking is supported now.
- `identity` is an integer from `0` to `num_identities - 1`(`num_identities` is the total number of instances of objects in the dataset), or `-1` if this box has no identity annotation. - `identity` is an integer from `1` to `num_identities`(`num_identities` is the total number of instances of objects in the dataset), or `-1` if this box has no identity annotation.
- `[x_center] [y_center] [width] [height]` are the center coordinates, width and height, note that they are normalized by the width/height of the image, so they are floating point numbers ranging from 0 to 1. - `[x_center] [y_center] [width] [height]` are the center coordinates, width and height, note that they are normalized by the width/height of the image, so they are floating point numbers ranging from 0 to 1.
Generate the corresponding `labels_with_ids` with following command: Generate the corresponding `labels_with_ids` with following command:
......
...@@ -37,7 +37,7 @@ MOT17 ...@@ -37,7 +37,7 @@ MOT17
``` ```
**注意**: **注意**:
- `class``0`,目前仅支持单类别多目标跟踪。 - `class``0`,目前仅支持单类别多目标跟踪。
- `identity`是从`0``num_identifies-1`的整数(`num_identifies`是数据集中不同物体实例的总数),如果此框没有`identity`标注,则为`-1` - `identity`是从`1``num_identifies`的整数(`num_identifies`是数据集中不同物体实例的总数),如果此框没有`identity`标注,则为`-1`
- `[x_center] [y_center] [width] [height]`是中心点坐标和宽高,注意它们的值是由图片的宽度/高度标准化的,因此它们是从0到1的浮点数。 - `[x_center] [y_center] [width] [height]`是中心点坐标和宽高,注意它们的值是由图片的宽度/高度标准化的,因此它们是从0到1的浮点数。
### 数据集目录 ### 数据集目录
...@@ -206,15 +206,17 @@ imExt=.jpg ...@@ -206,15 +206,17 @@ imExt=.jpg
`gt.txt`里是当前视频中所有图片的原始标注文件,每行都描述一个边界框,格式如下: `gt.txt`里是当前视频中所有图片的原始标注文件,每行都描述一个边界框,格式如下:
``` ```
[frame_id],[identity],[bb_left],[bb_top],[width],[height],[x],[y],[z] [frame_id],[identity],[bb_left],[bb_top],[width],[height],[score],[label],[vis_ratio]
``` ```
**注意**: **注意**:
- `frame_id`为当前图片帧序号 - `frame_id`为当前图片帧序号
- `identity`是从`0``num_identifies-1`的整数(`num_identifies`是数据集中不同物体实例的总数),如果此框没有`identity`标注,则为`-1` - `identity`是从`1``num_identifies`的整数(`num_identifies`是当前视频中不同物体实例的总数),如果此框没有`identity`标注,则为`-1`
- `bb_left`是目标框的左边界的x坐标 - `bb_left`是目标框的左边界的x坐标
- `bb_top`是目标框的上边界的y坐标 - `bb_top`是目标框的上边界的y坐标
- `width,height`是真实的像素宽高 - `width,height`是真实的像素宽高
- `x,y,z`是3D中用到的,在2D中默认为`-1` - `score`是当前目标是否进入考虑范围内的标志(值为0表示此目标在计算中被忽略,而值为1则用于将其标记为活动实例),默认为`1`
- `label`是当前目标的种类标签,由于目前仅支持单类别跟踪,默认为`1`,MOT-16数据集中会有其他类别标签,但都是当作ignore类别计算
- `vis_ratio`是当前目标被其他目标包含或覆挡后的可见率,是从0到1的浮点数,默认为`1`
#### labels_with_ids文件夹 #### labels_with_ids文件夹
...@@ -224,7 +226,7 @@ imExt=.jpg ...@@ -224,7 +226,7 @@ imExt=.jpg
``` ```
**注意**: **注意**:
- `class``0`,目前仅支持单类别多目标跟踪。 - `class``0`,目前仅支持单类别多目标跟踪。
- `identity`是从`0``num_identifies-1`的整数(`num_identifies`是数据集中不同物体实例的总数),如果此框没有`identity`标注,则为`-1` - `identity`是从`1``num_identifies`的整数(`num_identifies`是数据集中不同物体实例的总数),如果此框没有`identity`标注,则为`-1`
- `[x_center] [y_center] [width] [height]`是中心点坐标和宽高,注意是由图片的宽度/高度标准化的,因此它们是从0到1的浮点数。 - `[x_center] [y_center] [width] [height]`是中心点坐标和宽高,注意是由图片的宽度/高度标准化的,因此它们是从0到1的浮点数。
可采用如下脚本生成相应的`labels_with_ids`: 可采用如下脚本生成相应的`labels_with_ids`:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册