Revision 2b019233d6851facadec8e9215cc805eef47932c authored by Changjian Chen on 20 May 2024, 01:52:04 UTC, committed by Changjian Chen on 20 May 2024, 01:52:04 UTC
1 parent 08a8fb3
voc.cpython-36.pyc
3
�L`�; � @ s� d Z ddlmZ ddljZddlZddlZddlj j
Z
ddlZddlZ
ddlZddlmZ ejd dkrvddljjZnddljjZd$Zejed�ZG dd� de�ZG dd� de�ZG d d!� d!e
j�ZG d"d#� d#e
j�Z dS )%z�VOC Dataset Classes
Original author: Francisco Massa
https://github.com/fmassa/vision/blob/voc_dataset/torchvision/datasets/voc.py
Updated by: Ellis Brown, Max deGroot
� )�HOME� N)�logger� � aeroplane�bicycle�bird�boat�bottle�bus�car�cat�chair�cow�diningtable�dog�horse� motorbike�person�pottedplant�sheep�sofa�train� tvmonitorzWSL/Data/VOCdevkit/c @ s" e Zd ZdZddd�Zdd� ZdS ) �VOCEvalAnnotationTransforma� Transforms a VOC annotation into a Tensor of bbox coords and label index
Initilized with a dictionary lookup of classnames to indexes
Arguments:
class_to_ind (dict, optional): dictionary lookup of classnames -> indexes
(default: alphabetic indexing of VOC's 20 classes)
keep_difficult (bool, optional): keep difficult instances or not
(default: False)
height (int): height
width (int): width
NFc C s&