Skip to content

Commit 1c9a3d3

Browse files
committed
Update some file headers.
1 parent deb7af3 commit 1c9a3d3

11 files changed

+42
-4
lines changed

effdet/data/dataset.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" COCO dataset (quick and dirty)
1+
""" Detection dataset
22
33
Hacked together by Ross Wightman
44
"""
@@ -9,7 +9,7 @@
99

1010

1111
class DetectionDatset(data.Dataset):
12-
"""`MS Coco Detection <http://mscoco.org/dataset/#detections-challenge2016>`_ Dataset.
12+
"""`Object Detection Dataset. Use with parsers for COCO, VOC, and OpenImages.
1313
Args:
1414
parser (string, Parser):
1515
transform (callable, optional): A function/transform that takes in an PIL image

effdet/data/dataset_config.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
import os
1+
""" COCO, VOC, OpenImages dataset configurations
22
3+
Copyright 2020 Ross Wightman
4+
"""
5+
import os
36
from dataclasses import dataclass, field
47
from typing import Dict
58

effdet/data/dataset_factory.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
""" Dataset factory
2+
3+
Copyright 2020 Ross Wightman
4+
"""
15
import os
26
from pathlib import Path
37

effdet/data/loader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
""" Object detection loader/collate
22
3-
Hacked together by Ross Wightman
3+
Hacked together by / Copyright 2020 Ross Wightman
44
"""
55
import torch.utils.data
66
from .transforms import *

effdet/data/parsers/parser_coco.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
""" COCO dataset parser
2+
3+
Copyright 2020 Ross Wightman
4+
"""
15
import os
26
import numpy as np
37
from pycocotools.coco import COCO

effdet/data/parsers/parser_config.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
""" Dataset parser configs
2+
3+
Copyright 2020 Ross Wightman
4+
"""
15
from dataclasses import dataclass
26

37
__all__ = ['CocoParserCfg', 'OpenImagesParserCfg', 'VocParserCfg']

effdet/data/parsers/parser_factory.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
""" Parser factory
2+
3+
Copyright 2020 Ross Wightman
4+
"""
15
from .parser_coco import CocoParser
26
from .parser_open_images import OpenImagesParser
37
from .parser_voc import VocParser

effdet/data/parsers/parser_open_images.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
""" OpenImages dataset parser
2+
3+
Copyright 2020 Ross Wightman
4+
"""
15
import numpy as np
26
import pandas as pd
37
import os

effdet/data/parsers/parser_voc.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
""" Pascal VOC dataset parser
2+
3+
Copyright 2020 Ross Wightman
4+
"""
15
import os
26
import xml.etree.ElementTree as ET
37
from collections import defaultdict

effdet/data/random_erasing.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
""" Multi-Scale RandomErasing
2+
3+
Copyright 2020 Ross Wightman
4+
"""
15
import random
26
import math
37
import torch

effdet/loss.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
""" EfficientDet Focal, Huber/Smooth L1 loss fns w/ jit support
2+
3+
Based on loss fn in Google's automl EfficientDet repository (Apache 2.0 license).
4+
https://github.com/google/automl/tree/master/efficientdet
5+
6+
Copyright 2020 Ross Wightman
7+
"""
18
import torch
29
import torch.nn as nn
310
import torch.nn.functional as F

0 commit comments

Comments
 (0)