Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update polyiou.py #90

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions DOTA_devkit/polyiou.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
import importlib
fp = None
try:
fp, pathname, description = imp.find_module('_polyiou', [dirname(__file__)])
fp, pathname, description = importlib.find_module('_polyiou', [dirname(__file__)])
except ImportError:
import _polyiou
return _polyiou
if fp is not None:
try:
_mod = imp.load_module('_polyiou', fp, pathname, description)
_mod = importlib.load_module('_polyiou.cpython-37m-x86_64-linux-gnu.so', fp, pathname, description)
finally:
fp.close()
return _mod
Expand Down
6 changes: 3 additions & 3 deletions DOTA_devkit/prepare_dota1.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

def parse_args():
parser = argparse.ArgumentParser(description='prepare dota1')
parser.add_argument('--srcpath', default='/home/dingjian/project/dota')
parser.add_argument('--dstpath', default=r'/home/dingjian/workfs/dota1-split-1024',
parser.add_argument('--srcpath', default='/content/AerialDetection/data/dota')
parser.add_argument('--dstpath', default=r'/content/AerialDetection/data/dota1-split-1024',
help='prepare data')
args = parser.parse_args()

Expand Down Expand Up @@ -99,4 +99,4 @@ def prepare(srcpath, dstpath):
args = parse_args()
srcpath = args.srcpath
dstpath = args.dstpath
prepare(srcpath, dstpath)
prepare(srcpath, dstpath)
2 changes: 1 addition & 1 deletion configs/DOTA/faster_rcnn_obb_r50_fpn_1x_dota.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
)
# dataset settings
dataset_type = 'DOTADataset'
data_root = 'data/dota1_1024/'
data_root = '/content/AerialDetection/data/dota1-split-1024/'
img_norm_cfg = dict(
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
data = dict(
Expand Down