Skip to content

Commit 6c17d57

Browse files
committed
Fix some attributions, add copyrights to some file docstrings
1 parent a69c0e0 commit 6c17d57

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+182
-42
lines changed

avg_checkpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
EMA (exponential moving average) of the model weights or performing SWA (stochastic
1010
weight averaging), but post-training.
1111
12-
Hacked together by Ross Wightman (https://github.com/rwightman)
12+
Hacked together by / Copyright 2020 Ross Wightman (https://github.com/rwightman)
1313
"""
1414
import torch
1515
import argparse

clean_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
and outputs a CPU tensor checkpoint with only the `state_dict` along with SHA256
66
calculation for model zoo compatibility.
77
8-
Hacked together by Ross Wightman (https://github.com/rwightman)
8+
Hacked together by / Copyright 2020 Ross Wightman (https://github.com/rwightman)
99
"""
1010
import torch
1111
import argparse

inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
An example inference script that outputs top-k class ids for images in a folder into a csv.
55
6-
Hacked together by Ross Wightman (https://github.com/rwightman)
6+
Hacked together by / Copyright 2020 Ross Wightman (https://github.com/rwightman)
77
"""
88
import os
99
import time

timm/data/auto_augment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
RandAugment: Practical automated data augmentation... - https://arxiv.org/abs/1909.13719
1616
AugMix: A Simple Data Processing Method to Improve Robustness and Uncertainty - https://arxiv.org/abs/1912.02781
1717
18-
Hacked together by Ross Wightman
18+
Hacked together by / Copyright 2020 Ross Wightman
1919
"""
2020
import random
2121
import math

timm/data/dataset.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
""" Quick n Simple Image Folder, Tarfile based DataSet
2+
3+
Hacked together by / Copyright 2020 Ross Wightman
4+
"""
15
from __future__ import absolute_import
26
from __future__ import division
37
from __future__ import print_function

timm/data/loader.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
""" Loader Factory, Fast Collate, CUDA Prefetcher
2+
3+
Prefetcher and Fast Collate inspired by NVIDIA APEX example at
4+
https://github.com/NVIDIA/apex/commit/d5e2bb4bdeedd27b1dfaf5bb2b24d6c000dee9be#diff-cf86c282ff7fba81fad27a559379d5bf
5+
6+
Hacked together by / Copyright 2020 Ross Wightman
7+
"""
8+
19
import torch.utils.data
210
import numpy as np
311

timm/data/mixup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
""" Mixup
2+
Paper: `mixup: Beyond Empirical Risk Minimization` - https://arxiv.org/abs/1710.09412
3+
4+
Hacked together by / Copyright 2020 Ross Wightman
5+
"""
16
import numpy as np
27
import torch
38

timm/data/random_erasing.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
""" Random Erasing (Cutout)
2+
3+
Originally inspired by impl at https://github.com/zhunzhong07/Random-Erasing, Apache 2.0
4+
Copyright Zhun Zhong & Liang Zheng
5+
6+
Hacked together by / Copyright 2020 Ross Wightman
7+
"""
18
import random
29
import math
310
import torch

timm/data/real_labels.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
""" Real labels evaluator for ImageNet
2+
Paper: `Are we done with ImageNet?` - https://arxiv.org/abs/2006.07159
3+
Based on Numpy example at https://github.com/google-research/reassessed-imagenet
4+
5+
Hacked together by / Copyright 2020 Ross Wightman
6+
"""
17
import os
28
import json
39
import numpy as np

timm/data/tf_preprocessing.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
""" Tensorflow Preprocessing Adapter
2+
3+
Allows use of Tensorflow preprocessing pipeline in PyTorch Transform
4+
5+
Copyright of original Tensorflow code below.
6+
7+
Hacked together by / Copyright 2020 Ross Wightman
8+
"""
9+
110
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
211
#
312
# Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)