Commit 94a0df07 authored by Yuxin Wu's avatar Yuxin Wu

rename imgaug/noname to imgaug/misc

parent f131dfff
...@@ -366,6 +366,7 @@ def autodoc_skip_member(app, what, name, obj, skip, options): ...@@ -366,6 +366,7 @@ def autodoc_skip_member(app, what, name, obj, skip, options):
'get_predictors', 'get_predictors',
'vs_name_for_predictor', 'vs_name_for_predictor',
'RandomCropAroundBox', 'RandomCropAroundBox',
'GaussianDeform',
'dump_chkpt_vars', 'dump_chkpt_vars',
'VisualQA', 'VisualQA',
'ParamRestore']: 'ParamRestore']:
......
...@@ -10,7 +10,7 @@ from six.moves import zip, map ...@@ -10,7 +10,7 @@ from six.moves import zip, map
from collections import Counter from collections import Counter
import json import json
__all__ = ['VisualQA'] __all__ = []
def read_json(fname): def read_json(fname):
......
...@@ -23,7 +23,11 @@ except ImportError: ...@@ -23,7 +23,11 @@ except ImportError:
from ...utils import logger from ...utils import logger
logger.warn("Cannot import 'cv2', therefore image augmentation is not available.") logger.warn("Cannot import 'cv2', therefore image augmentation is not available.")
else: else:
_CURR_DIR = os.path.dirname(__file__)
for _, module_name, _ in iter_modules( for _, module_name, _ in iter_modules(
[os.path.dirname(__file__)]): [os.path.dirname(__file__)]):
srcpath = os.path.join(_CURR_DIR, module_name + '.py')
if not os.path.isfile(srcpath):
continue
if not module_name.startswith('_'): if not module_name.startswith('_'):
global_import(module_name) global_import(module_name)
# -*- coding: UTF-8 -*- # -*- coding: UTF-8 -*-
# File: noname.py # File: misc.py
# Author: Yuxin Wu <ppwwyyxx@gmail.com> # Author: Yuxin Wu <ppwwyyxx@gmail.com>
from .base import ImageAugmentor from .base import ImageAugmentor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment