Skip to content

Commit a4d24dc

Browse files
committed
update .gitignore
1 parent 8a71865 commit a4d24dc

24 files changed

Lines changed: 1198 additions & 312 deletions

.gitignore

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
data/*
2+
3+
# READ THIS BEFORE YOU REFACTOR ME
4+
#
5+
# setup.py uses the list of patterns in this file to decide
6+
# what to delete, but it's not 100% sound. So, for example,
7+
# if you delete aten/build/ because it's redundant with build/,
8+
# aten/build/ will stop being cleaned. So be careful when
9+
# refactoring this file!
10+
11+
## PyTorch
12+
13+
.mypy_cache
14+
*.pyc
15+
*/*.pyc
16+
*/*.so*
17+
*/**/__pycache__
18+
*/**/*.dylib*
19+
*/**/*.pyc
20+
*/**/*.pyd
21+
*/**/*.so*
22+
*/**/**/*.pyc
23+
*/**/**/**/*.pyc
24+
*/**/**/**/**/*.pyc
25+
aten/build/
26+
aten/src/ATen/Config.h
27+
aten/src/ATen/cuda/CUDAConfig.h
28+
build/
29+
dist/
30+
docs/src/**/*
31+
test/.coverage
32+
test/cpp/api/mnist
33+
test/data/gpu_tensors.pt
34+
test/data/legacy_modules.t7
35+
test/data/legacy_serialized.pt
36+
test/data/linear.pt
37+
test/htmlcov
38+
third_party/build/
39+
tools/shared/_utils_internal.py
40+
torch.egg-info/
41+
torch/csrc/autograd/generated/*
42+
torch/csrc/cudnn/cuDNN.cpp
43+
torch/csrc/generated
44+
torch/csrc/generic/TensorMethods.cpp
45+
torch/csrc/jit/generated/*
46+
torch/csrc/nn/THCUNN.cpp
47+
torch/csrc/nn/THCUNN.cwrap
48+
torch/csrc/nn/THNN_generic.cpp
49+
torch/csrc/nn/THNN_generic.cwrap
50+
torch/csrc/nn/THNN_generic.h
51+
torch/csrc/nn/THNN.cpp
52+
torch/csrc/nn/THNN.cwrap
53+
torch/lib/*.a*
54+
torch/lib/*.dll*
55+
torch/lib/*.dylib*
56+
torch/lib/*.h
57+
torch/lib/*.lib
58+
torch/lib/*.so*
59+
torch/lib/build
60+
torch/lib/cmake
61+
torch/lib/include
62+
torch/lib/pkgconfig
63+
torch/lib/protoc
64+
torch/lib/tmp_install
65+
torch/lib/torch_shm_manager
66+
torch/version.py
67+
68+
# IPython notebook checkpoints
69+
.ipynb_checkpoints
70+
71+
# Editor temporaries
72+
*.swn
73+
*.swo
74+
*.swp
75+
*.swm
76+
*~
77+
78+
# macOS dir files
79+
.DS_Store
80+
81+
# Symbolic files
82+
tools/shared/cwrap_common.py
83+
84+
# Ninja files
85+
.ninja_deps
86+
.ninja_log
87+
compile_commands.json
88+
*.egg-info/
89+
docs/source/scripts/activation_images/
90+
91+
## General
92+
93+
# Compiled Object files
94+
*.slo
95+
*.lo
96+
*.o
97+
*.cuo
98+
*.obj
99+
100+
# Compiled Dynamic libraries
101+
*.so
102+
*.dylib
103+
*.dll
104+
105+
# Compiled Static libraries
106+
*.lai
107+
*.la
108+
*.a
109+
*.lib
110+
111+
# Compiled protocol buffers
112+
*.pb.h
113+
*.pb.cc
114+
*_pb2.py
115+
116+
# Compiled python
117+
*.pyc
118+
*.pyd
119+
120+
# Compiled MATLAB
121+
*.mex*
122+
123+
# IPython notebook checkpoints
124+
.ipynb_checkpoints
125+
126+
# Editor temporaries
127+
*.swn
128+
*.swo
129+
*.swp
130+
*~
131+
132+
# Sublime Text settings
133+
*.sublime-workspace
134+
*.sublime-project
135+
136+
# Eclipse Project settings
137+
*.*project
138+
.settings
139+
140+
# QtCreator files
141+
*.user
142+
143+
# PyCharm files
144+
.idea
145+
146+
# Visual Studio Code files
147+
.vscode
148+
.vs
149+
150+
# OSX dir files
151+
.DS_Store
152+
153+
## Caffe2
154+
155+
# build, distribute, and bins (+ python proto bindings)
156+
build
157+
build_host_protoc
158+
build_android
159+
build_ios
160+
/build_*
161+
.build_debug/*
162+
.build_release/*
163+
distribute/*
164+
*.testbin
165+
*.bin
166+
cmake_build
167+
.cmake_build
168+
gen
169+
.setuptools-cmake-build
170+
.pytest_cache
171+
aten/build/*
172+
173+
# Bram
174+
plsdontbreak
175+
176+
# Generated documentation
177+
docs/_site
178+
docs/gathered
179+
_site
180+
doxygen
181+
docs/dev
182+
183+
# LevelDB files
184+
*.sst
185+
*.ldb
186+
LOCK
187+
LOG*
188+
CURRENT
189+
MANIFEST-*
190+
191+
# generated version file
192+
caffe2/version.py
193+
194+
# setup.py intermediates
195+
.eggs
196+
caffe2.egg-info
197+
198+
# Atom/Watchman required file
199+
.watchmanconfig
200+
201+
# cython generated files
202+
lib/model/utils/bbox.c
203+
lib/pycocotools/_mask.c
-9.4 KB
Binary file not shown.
-8.78 KB
Binary file not shown.
-3.91 KB
Binary file not shown.
-15.3 KB
Binary file not shown.
-6.91 KB
Binary file not shown.
-6.16 KB
Binary file not shown.
-2 KB
Binary file not shown.
-9.68 KB
Binary file not shown.

detection/coco_eval.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ def summarize(self):
5959
print("IoU metric: {}".format(iou_type))
6060
coco_eval.summarize()
6161

62+
def evaluate(self):
63+
for coco_eval in self.coco_eval.values():
64+
coco_eval.evaluate()
65+
6266
def prepare(self, predictions, iou_type):
6367
if iou_type == "bbox":
6468
return self.prepare_for_coco_detection(predictions)

0 commit comments

Comments
 (0)