Skip to content

Commit

Permalink
rename utils to arg_utils
Browse files Browse the repository at this point in the history
To avoid confrict to pypi utils package
  • Loading branch information
mmitti committed Apr 11, 2023
1 parent 4b92bc6 commit 44e193b
Show file tree
Hide file tree
Showing 275 changed files with 288 additions and 288 deletions.
2 changes: 1 addition & 1 deletion action_recognition/action_clip/action_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from image_utils import imread, load_image # noqa: E402
from math_utils import softmax
from model_utils import check_and_download_models # noqa: E402
from utils import get_base_parser, get_savepath, update_parser # noqa: E402
from arg_utils import get_base_parser, get_savepath, update_parser # noqa: E402
from webcamera_utils import get_capture, get_writer # noqa: E402

logger = getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
from image_utils import load_image # noqa: E402
from image_utils import normalize_image # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from utils import check_file_existance # noqa: E402
from utils import get_base_parser, update_parser # noqa: E402
from arg_utils import check_file_existance # noqa: E402
from arg_utils import get_base_parser, update_parser # noqa: E402

from ax_action_recognition_util import pose_postprocess,TIME_RANGE,get_detector_result_lw_human_pose,draw_boxes,softmax
sys.path.append('../../pose_estimation/pose_resnet')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser # noqa: E402
from arg_utils import get_base_parser, update_parser # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from math_utils import softmax # noqa: E402
import webcamera_utils # noqa: E402
Expand Down
2 changes: 1 addition & 1 deletion action_recognition/mars/mars.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from classifier_utils import plot_results # noqa: E402
from image_utils import imread, load_image # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from utils import get_base_parser, update_parser # noqa: E402
from arg_utils import get_base_parser, update_parser # noqa: E402
from webcamera_utils import get_capture # noqa: E402

# ======================
Expand Down
4 changes: 2 additions & 2 deletions action_recognition/st_gcn/st_gcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from st_gcn_labels import KINETICS_LABEL

sys.path.append('../../util')
from utils import get_base_parser, update_parser # noqa: E402
from utils import check_file_existance # noqa: E402
from arg_utils import get_base_parser, update_parser # noqa: E402
from arg_utils import check_file_existance # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from webcamera_utils import get_capture, get_writer # noqa: E402

Expand Down
2 changes: 1 addition & 1 deletion action_recognition/va-cnn/va-cnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from params import MODALITIES, EXTENSIONS # noqa: E402
from model_utils import check_and_download_models # noqa: E402

Expand Down
2 changes: 1 addition & 1 deletion anomaly_detection/padim/padim.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from detector_utils import load_image # noqa: E402
import webcamera_utils # noqa: E402
Expand Down
2 changes: 1 addition & 1 deletion anomaly_detection/padim/padim_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import log_init
from logging import getLogger # noqa: E402

from utils import get_base_parser, update_parser # noqa: E402
from arg_utils import get_base_parser, update_parser # noqa: E402

logger = getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion anomaly_detection/spade-pytorch/spade-pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from image_utils import normalize_image # noqa: E402
from detector_utils import load_image # noqa: E402
Expand Down
2 changes: 1 addition & 1 deletion audio_processing/auto_speech/auto_speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser # noqa: E402
from arg_utils import get_base_parser, update_parser # noqa: E402
from model_utils import check_and_download_models # noqa: E402

# logger
Expand Down
2 changes: 1 addition & 1 deletion audio_processing/clap/clap.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import ailia # noqa: E402
sys.path.append('../../util')
from utils import get_base_parser, update_parser # noqa: E402
from arg_utils import get_base_parser, update_parser # noqa: E402
from model_utils import check_and_download_models # noqa: E402

# logger
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser # noqa: E402
from arg_utils import get_base_parser, update_parser # noqa: E402
from model_utils import check_and_download_models # noqa: E402


Expand Down
2 changes: 1 addition & 1 deletion audio_processing/deepspeech2/deepspeech2.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import ailia
# import original moduls
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402

# logger
Expand Down
2 changes: 1 addition & 1 deletion audio_processing/pytorch-dc-tts/pytorch-dc-tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402

# logger
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser # noqa: E402
from arg_utils import get_base_parser, update_parser # noqa: E402
from model_utils import check_and_download_models # noqa: E402

# logger
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402

# logger
Expand Down
2 changes: 1 addition & 1 deletion audio_processing/voicefilter/voicefilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402
# logger
from logging import getLogger # noqa: E402
Expand Down
2 changes: 1 addition & 1 deletion audio_processing/whisper/whisper.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from microphone_utils import start_microphone_input # noqa
from model_utils import check_and_download_models # noqa
from languages import LANGUAGES, TO_LANGUAGE_CODE
from utils import get_base_parser, get_savepath, update_parser # noqa
from arg_utils import get_base_parser, get_savepath, update_parser # noqa

logger = getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from detector_utils import load_image # noqa: E402
import webcamera_utils # noqa: E402
Expand Down
2 changes: 1 addition & 1 deletion background_removal/cascade_psp/cascade_psp.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa
from arg_utils import get_base_parser, update_parser, get_savepath # noqa
from model_utils import check_and_download_models # noqa
from detector_utils import load_image # noqa
from image_utils import normalize_image # noqa
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import webcamera_utils # noqa: E402
from image_utils import imread # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from utils import get_base_parser, get_savepath, update_parser # noqa: E402
from arg_utils import get_base_parser, get_savepath, update_parser # noqa: E402

logger = getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion background_removal/dis_seg/dis_seg.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import webcamera_utils # noqa: E402
from image_utils import imread, load_image # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from utils import get_base_parser, get_savepath, update_parser # noqa: E402
from arg_utils import get_base_parser, get_savepath, update_parser # noqa: E402

logger = getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion background_removal/gfm/gfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa
from arg_utils import get_base_parser, update_parser, get_savepath # noqa
from model_utils import check_and_download_models # noqa
from image_utils import normalize_image # noqa
from detector_utils import load_image # noqa
Expand Down
2 changes: 1 addition & 1 deletion background_removal/indexnet/indexnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import webcamera_utils # noqa: E402
from image_utils import imread # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from utils import get_base_parser, get_savepath, update_parser # noqa: E402
from arg_utils import get_base_parser, get_savepath, update_parser # noqa: E402

logger = getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion background_removal/modnet/modnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import webcamera_utils
from image_utils import imread # noqa: E402
from model_utils import check_and_download_models
from utils import get_base_parser, get_savepath, update_parser
from arg_utils import get_base_parser, get_savepath, update_parser

logger = getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion background_removal/rembg/rembg.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa
from arg_utils import get_base_parser, update_parser, get_savepath # noqa
from model_utils import check_and_download_models # noqa
from detector_utils import load_image # noqa
from image_utils import normalize_image # noqa
Expand Down
2 changes: 1 addition & 1 deletion background_removal/u2net-human-seg/u2net-human-seg.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import ailia

sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from detector_utils import load_image # noqa: E402C
import webcamera_utils # noqa: E402
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from detector_utils import load_image # noqa: E402
from image_utils import imread # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from utils import get_base_parser, get_savepath, update_parser # noqa: E402
from arg_utils import get_base_parser, get_savepath, update_parser # noqa: E402

logger = getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion background_removal/u2net/u2net.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import webcamera_utils # noqa: E402
from image_utils import imread # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from utils import get_base_parser, get_savepath, update_parser # noqa: E402
from arg_utils import get_base_parser, get_savepath, update_parser # noqa: E402

from u2net_utils import load_image, norm, save_result, transform # noqa: E402

Expand Down
2 changes: 1 addition & 1 deletion commercial_model/acculus-pose/acculus-hand.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser # noqa: E402
from arg_utils import get_base_parser, update_parser # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from webcamera_utils import get_capture, get_writer, \
calc_adjust_fsize # noqa: E402
Expand Down
2 changes: 1 addition & 1 deletion commercial_model/acculus-pose/acculus-pose.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from image_utils import imread, load_image # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from utils import get_base_parser, get_savepath, update_parser # noqa: E402
from arg_utils import get_base_parser, get_savepath, update_parser # noqa: E402
from webcamera_utils import adjust_frame_size, get_capture # noqa: E402

logger = getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion commercial_model/acculus-pose/acculus-up-pose.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from image_utils import imread, load_image # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from utils import get_base_parser, get_savepath, update_parser # noqa: E402
from arg_utils import get_base_parser, get_savepath, update_parser # noqa: E402
from webcamera_utils import adjust_frame_size, get_capture # noqa: E402

logger = getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion crowd_counting/c-3-framework/c-3-framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from detector_utils import load_image # noqa: E402C
from webcamera_utils import get_capture, get_writer # noqa: E402
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import ailia
# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from image_utils import load_image # noqa: E402
import webcamera_utils # noqa: E402
Expand Down
2 changes: 1 addition & 1 deletion deep_fashion/clothing-detection/clothing-detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from detector_utils import plot_results, load_image # noqa: E402
from webcamera_utils import get_capture, get_writer,\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# import original modules
from fashionai_key_points_detection_utils import decode_np, draw_keypoints
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from detector_utils import load_image # noqa: E402
from webcamera_utils import get_capture # noqa: E402
Expand Down
2 changes: 1 addition & 1 deletion deep_fashion/mmfashion/mmfashion.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from detector_utils import plot_results, load_image # noqa: E402
from image_utils import normalize_image # noqa: E402
Expand Down
2 changes: 1 addition & 1 deletion deep_fashion/mmfashion_retrieval/mmfashion_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from detector_utils import load_image # noqa: E402
import webcamera_utils # noqa: E402
Expand Down
2 changes: 1 addition & 1 deletion deep_fashion/mmfashion_tryon/mmfashion_tryon.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from detector_utils import load_image # noqa: E402
import webcamera_utils # noqa: E402
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import webcamera_utils # noqa: E402
from image_utils import imread, load_image # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402

logger = getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion depth_estimation/crestereo/crestereo.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import webcamera_utils # noqa: E402
from image_utils import imread # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from utils import get_base_parser, get_savepath, update_parser # noqa: E402
from arg_utils import get_base_parser, get_savepath, update_parser # noqa: E402

logger = getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion depth_estimation/fast-depth/fast-depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# Import original modules.
sys.path.append("../../util")
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # NOQA: E402
from webcamera_utils import get_capture, cut_max_square # NOQA: E402

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# import original modules
sys.path.append('../../util')
from utils import get_base_parser, update_parser, get_savepath # noqa: E402
from arg_utils import get_base_parser, update_parser, get_savepath # noqa: E402
from model_utils import check_and_download_models # noqa: E402
from webcamera_utils import get_capture, get_writer, \
calc_adjust_fsize ,preprocess_frame # noqa: E402
Expand Down
Loading

0 comments on commit 44e193b

Please sign in to comment.