This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
This file converts the hand dataset (https://www.robots.ox.ac.uk/~vgg/data/hands/) to Pascal Format | |
''' | |
import scipy.io as sio | |
from os import listdir | |
from os.path import isfile, join | |
import math | |
from xml.etree import ElementTree as et | |
import cv2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake -D CMAKE_BUILD_TYPE=Release \ | |
-D CMAKE_INSTALL_PREFIX=/usr/share \ | |
-D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules \ | |
-D PYTHON3_EXECUTABLE=/usr/bin/python3 \ | |
-D ENABLE_FAST_MATH=1 \ | |
-D CUDA_FAST_MATH=1 \ | |
-D WITH_CUBLAS=1 \ | |
-D BUILD_NEW_PYTHON_SUPPORT=ON \ | |
../opencv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/slim/nets/resnet_v1.py b/slim/nets/resnet_v1.py | |
index 03d49ed..edc2af9 100644 | |
--- a/slim/nets/resnet_v1.py | |
+++ b/slim/nets/resnet_v1.py | |
@@ -226,7 +226,7 @@ def resnet_v1_50(inputs, | |
return resnet_v1(inputs, blocks, num_classes, is_training, | |
global_pool=global_pool, output_stride=output_stride, | |
include_root_block=True, reuse=reuse, scope=scope) | |
- | |
+resnet_v1_50.default_image_size = resnet_v1.default_image_size |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Opencv Output: | |
[[217 201 174 174]] | |
Coordinates of the center of the box | |
[304, 288, 174, 174] | |
SimpleCV output | |
[[302 288]] [175] [175] |