deep-utils 1.5.7__tar.gz → 1.5.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {deep_utils-1.5.7 → deep_utils-1.5.9}/PKG-INFO +2 -2
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/__init__.py +1 -1
- deep_utils-1.5.9/deep_utils/medical/main_utils.py +123 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/dir_utils/dir_utils.py +46 -40
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/numpy_utils/numpy_utils.py +14 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/str_utils/str_utils.py +3 -3
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/youtube_download/download_youtube.py +3 -3
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils.egg-info/PKG-INFO +2 -2
- {deep_utils-1.5.7 → deep_utils-1.5.9}/setup.py +1 -1
- deep_utils-1.5.7/deep_utils/medical/main_utils.py +0 -87
- {deep_utils-1.5.7 → deep_utils-1.5.9}/LICENSE +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/asr/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/asr/wav2vec2/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/asr/wav2vec2/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/asr/wav2vec2/torch/main.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/audio_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/audio_utils/librosa_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/audio_utils/soundfile_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/audio_utils/torchaudio_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/audio_utils/vox_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/classification/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/classification/wav2vec2/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/classification/wav2vec2/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/classification/wav2vec2/torch/audio_classification_wav2vec2.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/diarization/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/diarization/pyannote/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/diarization/pyannote/pyannote_audio_diarization.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/vad/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/vad/pyannote/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/vad/pyannote/pyannote_audio_vad.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/augmentation/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/augmentation/cutmix/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/augmentation/cutmix/cutmix_tf.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/augmentation/cutmix/cutmix_torch.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/augmentation/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/augmentation/torch/augmentation_torch.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/blocks/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/blocks/tf/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/blocks/tf/blocks_tf.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/blocks/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/blocks/torch/blocks_torch.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/callbacks/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/callbacks/tf_keras/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/callbacks/tf_keras/lr.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/callbacks/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/callbacks/torch/torch_csv_logger.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/callbacks/torch/torch_model_checkpoint.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/callbacks/torch/torch_tensorboard.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/design_patterns/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/design_patterns/chain_of_responsibility/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/design_patterns/chain_of_responsibility/chain_of_responsibilities_handlers.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/dummy_objects/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/dummy_objects/dummies.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/dummy_objects/dummy_framework.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/elasticsearch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/elasticsearch/search_engine/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/elasticsearch/search_engine/abs_elasticsearch_search_engine.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/elasticsearch/search_engine/async_elasticsearch_search_engine.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/elasticsearch/search_engine/elasticsearch_search_engine.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/gis/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/gis/projection/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/gis/projection/main.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/llm/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/llm/utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/main_abs/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/main_abs/cv2/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/main_abs/cv2/cv2_caffe.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/main_abs/cv2/cv2_config.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/main_abs/cv2/cv2_main.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/main_abs/main.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/main_abs/main_config.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/medical/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/medical/dicom2nifti_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/medical/dicom2nifti_utils/dicom2nifti_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/medical/metrics/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/medical/metrics/metrics.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/medical/nib_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/medical/nib_utils/nib_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/medical/nnunet_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/medical/nnunet_utils/nnunet_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/medical/sitk_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/medical/sitk_utils/sitk_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/multi_modals/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/multi_modals/_models/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/multi_modals/_models/blip/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/multi_modals/_models/blip/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/multi_modals/_models/blip/torch/models/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/multi_modals/_models/blip/torch/models/blip.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/multi_modals/_models/blip/torch/models/med.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/multi_modals/_models/blip/torch/models/med_configs.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/multi_modals/_models/blip/torch/models/vit.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/nlp/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/nlp/ner/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/nlp/ner/augmentation.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/nlp/ner/base_operations.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/nlp/ner/preprocessing.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/nlp/ner/taggers.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/nlp/ner/utils_.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/nlp/utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/nlp/utils/multi_lang_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/nlp/utils/multi_lang_utils/multi_lang_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/nlp/utils/persian/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/nlp/utils/persian/utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/preprocessing/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/preprocessing/monai/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/preprocessing/monai/monai_segmentation.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/algorithm_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/algorithm_utils/main.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/boto3_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/boto3_utils/boto3_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/box_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/box_utils/box_dataclasses.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/box_utils/boxes.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/coco_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/coco_utils/main.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/color_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/color_utils/color_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/compress_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/compress_utils/zip_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/constants.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/ctc_decoder/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/ctc_decoder/ctc_decoder.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/dataclass_parser/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/dataclass_parser/dataclass_argparser.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/dataclass_parser/example.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/datetime_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/datetime_utils/datetime_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/decorators/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/decorators/main.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/decord_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/decord_utils/decord_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/dict_named_tuple_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/dict_named_tuple_utils/dictnamedtuple_37.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/dict_named_tuple_utils/dictnamedtuple_38.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/dict_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/dict_utils/dict_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/dir_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/download_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/download_utils/async_download_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/download_utils/download_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/encodes/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/encodes/b64.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/encodes/web_inputs.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/fa_nlp_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/fa_nlp_utils/fa_nlp_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/ff_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/ff_utils/ffprobe_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/gif_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/gif_utils/gif_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/hash_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/hash_utils/hash_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/image_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/image_utils/image_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/json_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/json_utils/json_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/kafka_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/kafka_utils/kafka_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/lib_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/lib_utils/download_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/lib_utils/integeration_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/lib_utils/lib_decorators.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/lib_utils/main_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/list_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/list_utils/list_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/logging_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/logging_utils/logging_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/lr_scheduler_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/lr_scheduler_utils/warmup.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/matplotlib_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/matplotlib_utils/bar_plots.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/matplotlib_utils/main.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/memory_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/memory_utils/torch_memory_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/minio_lib/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/minio_lib/main.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/multi_label_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/multi_label_utils/stratify/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/multi_label_utils/stratify/stratify_train_test_split.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/np_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/np_utils/main_np.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/numpy_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/object_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/object_utils/object_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/opencv_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/opencv_utils/opencv_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/optimizers/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/optimizers/tf.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/os_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/os_utils/os_path.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/pickle_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/pickle_utils/pickle_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/postgresql_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/postgresql_utils/postgresql_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/prompt_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/prompt_utils/prompt_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/py_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/py_utils/py_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/qdrant_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/qdrant_utils/qdrant_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/random_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/random_utils/random_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/re_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/re_utils/re_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/requests_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/requests_utils/requests_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/resize_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/resize_utils/main_resize.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/shutil_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/shutil_utils/shutil_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/sqlalchemy/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/sqlalchemy/checks.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/sqlalchemy/insert.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/sqlalchemy/sqlalchemy_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/str_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/tensorboard_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/tensorboard_utils/tesnsorboard_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/tf_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/tf_utils/logging.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/tf_utils/main.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/tiktoken_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/tiktoken_utils/tiktoken_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/torch_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/torch_utils/torch_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/utils/arg_parser.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/utils/hyper_parameters.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/utils/shuffle_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/utils/yaml_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/variable_naming_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/variable_naming_utils/variable_naming_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/utils/youtube_download/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/color_recognition/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/color_recognition/cnn_color/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/color_recognition/cnn_color/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/color_recognition/cnn_color/torch/color_cnn_torch.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/color_recognition/cnn_color/torch/color_cnn_torch_pred.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/haarcascade/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/haarcascade/cv2_/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/haarcascade/cv2_/config.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/haarcascade/cv2_/haarcascade_cv2_face_detection.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/main/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/main/main_face_detection.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/tf/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/tf/config.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/tf/mtcnn_tf_face_detection.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/tf/src/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/tf/src/box_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/tf/src/first_stage.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/tf/src/get_nets.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/torch/config.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/torch/mtcnn_torch_face_detection.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/torch/src/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/torch/src/box_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/torch/src/first_stage.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/mtcnn/torch/src/get_nets.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/config.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/retinaface_torch_face_detection.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/src/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/src/layers/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/src/layers/functions/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/src/layers/functions/prior_box.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/src/layers/modules/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/src/layers/modules/multibox_loss.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/src/load_model.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/src/net.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/src/retinaface.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/src/utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/src/utils/box_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/src/utils/nms/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/src/utils/nms/py_cpu_nms.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/retinaface/torch/src/utils/timer.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ssd/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ssd/cv2/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ssd/cv2/caffe/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ssd/cv2/caffe/config.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ssd/cv2/caffe/ssd_cv2_caffe_face_detection.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/tf/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/tf/config.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/tf/ultralight_tf_face_detection.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/tf/utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/tf/utils/op.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/tf/utils/rfb_320.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/tf/utils/slim_320.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/tf/utils/utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/config.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/ultralight_torch_face_detection.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/utils/box_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/utils/data_preprocessing.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/utils/fd_config.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/utils/mb_tiny.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/utils/mb_tiny_RFB.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/utils/mb_tiny_RFB_fd.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/utils/mb_tiny_fd.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/utils/misc.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/utils/predictor.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/utils/ssd.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_detection/ultralight/torch/utils/transforms.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_recognition/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_recognition/main/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_recognition/main/main_face_recognition.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_recognition/vggface2/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_recognition/vggface2/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_recognition/vggface2/torch/config.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_recognition/vggface2/torch/src/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_recognition/vggface2/torch/src/inception_resnet_v1.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_recognition/vggface2/torch/src/senet_model.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/face_recognition/vggface2/torch/vggface2_torch.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/image_caption/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/image_caption/blip/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/image_caption/blip/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/image_caption/blip/torch/blip_torch_image_caption.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/image_caption/image_caption.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/image_editing/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/image_editing/glide/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/image_editing/glide/glide_image_editing.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/main/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/main/main_object_detection.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/config.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/models/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/models/common.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/models/experimental.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/models/tf.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/models/yolo.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolo_v5_torch_object_detection.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/activations.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/augmentations.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/autoanchor.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/autobatch.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/callbacks.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/dataloaders.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/datasets.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/downloads.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/general.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/google_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/loss.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/metrics.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/plots.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/segment/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/segment/augmentations.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/segment/dataloaders.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/segment/general.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/segment/loss.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/segment/metrics.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/segment/plots.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/torch_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/triton.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/config.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/models/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/models/common.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/models/experimental.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/models/yolo.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/yolo_v7_torch_object_detection.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/activations.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/add_nms.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/autoanchor.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/datasets.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/general.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/google_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/loss.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/metrics.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/plots.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/torch_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_detection/yolo/yolo_detector.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/deep/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/deep_sort.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/sort/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/sort/detection.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/sort/iou_matching.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/sort/kalman_filter.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/sort/linear_assignment.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/sort/nn_matching.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/sort/preprocessing.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/sort/track.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/sort/tracker.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/utils/asserts.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/utils/draw.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/utils/evaluation.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/utils/io.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/utils/json_logger.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/utils/log.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/utils/parser.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/object_tracker/deep_sort/torch/utils/tools.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/ocr/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/ocr/crnn/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/ocr/crnn/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/ocr/crnn/torch/crnn_inference.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/ocr/crnn/torch/crnn_model.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/text2box_visual_grounding/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/text2box_visual_grounding/dino/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/text2box_visual_grounding/dino/visual_grounding_dino_torch.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/torch_vision/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/torch_vision/torch_vision_inference/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/torch_vision/torch_vision_inference/torch_vision_inference.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/torch_vision/torch_vision_models/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/torch_vision/torch_vision_models/torch_vision_models.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/vision_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/vision_utils/torch_vision_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/vision/vision_utils/torch_vision_utils/torch_vision_utils.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils.egg-info/SOURCES.txt +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils.egg-info/dependency_links.txt +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils.egg-info/requires.txt +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils.egg-info/top_level.txt +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/setup.cfg +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/utils/encoding_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/utils/encoding_utils/encoding_utils_test.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/utils/np_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/utils/np_utils/np_utils_test.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/utils/resize_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/utils/resize_utils/resize_utils_test.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/utils/utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/face_detection/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/face_detection/mtcnn/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/face_detection/mtcnn/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/face_detection/mtcnn/torch/mtcnn_torch_test.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/face_detection/ultralight/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/face_detection/ultralight/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/face_detection/ultralight/torch/ultralight_torch_test.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/object_detection/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/object_detection/yolo/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/object_detection/yolo/v5/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/object_detection/yolo/v5/torch/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/object_detection/yolo/v5/torch/yolov5_detection_test.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/vision_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/vision_utils/torch_vision_utils/__init__.py +0 -0
- {deep_utils-1.5.7 → deep_utils-1.5.9}/tests/vision/vision_utils/torch_vision_utils/torch_vision_utils_test.py +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: deep_utils
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.9
|
|
4
4
|
Summary: Deep Utils
|
|
5
5
|
Home-page: https://github.com/pooya-mohammadi/deep_utils
|
|
6
6
|
Author: Pooya Mohammadi Kazaj
|
|
7
7
|
Author-email: pooyamohammadikazaj@gmial.com
|
|
8
8
|
License: UNKNOWN
|
|
9
|
-
Download-URL: https://github.com/pooya-mohammadi/deep_utils/archive/refs/tags/1.5.
|
|
9
|
+
Download-URL: https://github.com/pooya-mohammadi/deep_utils/archive/refs/tags/1.5.9.tar.gz
|
|
10
10
|
Description: [](https://pepy.tech/project/deep_utils) [](https://pypi.python.org/pypi/deep_utils)
|
|
11
11
|
|
|
12
12
|
<div id="top"></div>
|
|
@@ -4,7 +4,7 @@ from deep_utils.dummy_objects.dummy_framework import LazyModule
|
|
|
4
4
|
from .utils.lib_utils.integeration_utils import import_lazy_module
|
|
5
5
|
|
|
6
6
|
# Deep Utils version number
|
|
7
|
-
__version__ = "1.5.
|
|
7
|
+
__version__ = "1.5.9"
|
|
8
8
|
|
|
9
9
|
from .utils.constants import DUMMY_PATH, Backends
|
|
10
10
|
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import random
|
|
2
|
+
import numpy as np
|
|
3
|
+
from typing import List, Tuple, Union
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class MainMedUtils:
|
|
7
|
+
@staticmethod
|
|
8
|
+
def crop_pad(crop, image, seg=None):
|
|
9
|
+
if seg is not None:
|
|
10
|
+
assert seg.shape == image.shape
|
|
11
|
+
|
|
12
|
+
if len(image.shape) == 3:
|
|
13
|
+
i_z, i_y, i_x = image.shape
|
|
14
|
+
c_z, c_y, c_x = crop
|
|
15
|
+
start_crop_z = random.randint(0, i_z - c_z)
|
|
16
|
+
start_crop_y = random.randint(0, i_y - c_y)
|
|
17
|
+
start_crop_x = random.randint(0, i_x - c_x)
|
|
18
|
+
|
|
19
|
+
end_crop_z = start_crop_z + c_z
|
|
20
|
+
end_crop_y = start_crop_y + c_y
|
|
21
|
+
end_crop_x = start_crop_x + c_x
|
|
22
|
+
|
|
23
|
+
image = image[start_crop_z: end_crop_z, start_crop_y: end_crop_y, start_crop_x: end_crop_x]
|
|
24
|
+
if seg is not None:
|
|
25
|
+
seg = seg[start_crop_z: end_crop_z, start_crop_y: end_crop_y, start_crop_x: end_crop_x]
|
|
26
|
+
return image, seg
|
|
27
|
+
return image
|
|
28
|
+
|
|
29
|
+
@staticmethod
|
|
30
|
+
def get_largets_box(array: np.ndarray, get_info: bool = False):
|
|
31
|
+
dimensions = np.where(array)
|
|
32
|
+
mins = []
|
|
33
|
+
maxs = []
|
|
34
|
+
for dim in dimensions:
|
|
35
|
+
if len(dim):
|
|
36
|
+
mins.append(int(np.min(dim)))
|
|
37
|
+
maxs.append(int(np.max(dim)))
|
|
38
|
+
else:
|
|
39
|
+
mins.append(None)
|
|
40
|
+
maxs.append(None)
|
|
41
|
+
if get_info:
|
|
42
|
+
info = {i: (mi, ma) for i, (mi, ma) in enumerate(zip(mins, maxs))}
|
|
43
|
+
return info
|
|
44
|
+
return mins, maxs
|
|
45
|
+
|
|
46
|
+
@staticmethod
|
|
47
|
+
def compute_new_shape(old_shape: Union[Tuple[int, ...], List[int], np.ndarray],
|
|
48
|
+
old_spacing: Union[Tuple[float, ...], List[float], np.ndarray],
|
|
49
|
+
new_spacing: Union[Tuple[float, ...], List[float], np.ndarray]) -> np.ndarray:
|
|
50
|
+
assert len(old_spacing) == len(old_shape), "Shapes are not equal"
|
|
51
|
+
assert len(old_shape) == len(new_spacing), "Shapes are not equal"
|
|
52
|
+
|
|
53
|
+
new_shape = np.array(
|
|
54
|
+
[int(round(old_spacing_ / new_spacing_ * old_shape_)) for old_spacing_, new_spacing_, old_shape_ in
|
|
55
|
+
zip(old_spacing, new_spacing, old_shape)])
|
|
56
|
+
|
|
57
|
+
return new_shape
|
|
58
|
+
|
|
59
|
+
@staticmethod
|
|
60
|
+
def get_largest_box_and_crop(array: np.ndarray, expand: int = 0, get_info: bool = False):
|
|
61
|
+
mins, maxs = MainMedUtils.get_largets_box(array)
|
|
62
|
+
shape = array.shape
|
|
63
|
+
expands = np.array([int(d * expand / 100) if expand else 0 for d in shape])
|
|
64
|
+
mins = np.maximum(np.array(mins) - expands, 0)
|
|
65
|
+
maxs = np.minimum(np.array(maxs) + expands, shape)
|
|
66
|
+
if len(mins) == 3:
|
|
67
|
+
cropped_array = array[
|
|
68
|
+
mins[0]: maxs[0],
|
|
69
|
+
mins[1]: maxs[1],
|
|
70
|
+
mins[2]: maxs[2]
|
|
71
|
+
]
|
|
72
|
+
|
|
73
|
+
elif len(mins) == 2:
|
|
74
|
+
cropped_array = array[
|
|
75
|
+
mins[0]: maxs[0],
|
|
76
|
+
mins[1]: maxs[1]
|
|
77
|
+
]
|
|
78
|
+
elif len(mins) == 4:
|
|
79
|
+
cropped_array = array[
|
|
80
|
+
mins[0]: maxs[0],
|
|
81
|
+
mins[1]: maxs[1],
|
|
82
|
+
mins[2]: maxs[2],
|
|
83
|
+
mins[3]: maxs[3],
|
|
84
|
+
]
|
|
85
|
+
else:
|
|
86
|
+
raise ValueError(f"Something wrong with mins: {mins} and maxs: {maxs}")
|
|
87
|
+
|
|
88
|
+
if get_info:
|
|
89
|
+
info = {i: (int(mi), int(ma)) for i, (mi, ma) in enumerate(zip(mins, maxs))}
|
|
90
|
+
return cropped_array, info
|
|
91
|
+
else:
|
|
92
|
+
return cropped_array
|
|
93
|
+
|
|
94
|
+
@staticmethod
|
|
95
|
+
def crop_with_info(array: np.ndarray, info: dict):
|
|
96
|
+
mins, maxs = [], []
|
|
97
|
+
# expand = info.pop('expand')
|
|
98
|
+
for k, v in sorted([(k, v) for k, v in info.items() if isinstance(k, int) or k.isdigit()], key=lambda x: x[0]):
|
|
99
|
+
mins.append(v[0])
|
|
100
|
+
maxs.append(v[1])
|
|
101
|
+
|
|
102
|
+
if len(mins) == 3:
|
|
103
|
+
cropped_array = array[
|
|
104
|
+
mins[0]: maxs[0],
|
|
105
|
+
mins[1]: maxs[1],
|
|
106
|
+
mins[2]: maxs[2]
|
|
107
|
+
]
|
|
108
|
+
|
|
109
|
+
elif len(mins) == 2:
|
|
110
|
+
cropped_array = array[
|
|
111
|
+
mins[0]: maxs[0],
|
|
112
|
+
mins[1]: maxs[1]
|
|
113
|
+
]
|
|
114
|
+
elif len(mins) == 4:
|
|
115
|
+
cropped_array = array[
|
|
116
|
+
mins[0]: maxs[0],
|
|
117
|
+
mins[1]: maxs[1],
|
|
118
|
+
mins[2]: maxs[2],
|
|
119
|
+
mins[3]: maxs[3],
|
|
120
|
+
]
|
|
121
|
+
else:
|
|
122
|
+
raise ValueError(f"Something wrong with mins: {mins} and maxs: {maxs}")
|
|
123
|
+
return cropped_array
|
|
@@ -468,9 +468,10 @@ class DirUtils:
|
|
|
468
468
|
return re.sub(r'[\\/*?:"<>|]', "", filename).replace(' ', '_')
|
|
469
469
|
|
|
470
470
|
@staticmethod
|
|
471
|
-
def symbolic_link_move(org_data_list:
|
|
471
|
+
def symbolic_link_move(org_data_list: List[str], des: Union[str, List[str]], remove: bool = False,
|
|
472
472
|
suffix: str = None,
|
|
473
|
-
replace:
|
|
473
|
+
replace: Union[str, Tuple[str, ...]] = None,
|
|
474
|
+
replace_with: Union[str, Tuple[str, ...]] = None,
|
|
474
475
|
current_extension=".nii.gz"):
|
|
475
476
|
|
|
476
477
|
if isinstance(des, str) and suffix:
|
|
@@ -568,13 +569,13 @@ class DirUtils:
|
|
|
568
569
|
shutil.rmtree(in_dir)
|
|
569
570
|
|
|
570
571
|
@staticmethod
|
|
571
|
-
def write_txt(path: str
|
|
572
|
+
def write_txt(path: Union[str, Path], list_content: list, mode="w"):
|
|
572
573
|
with open(path, mode=mode) as f:
|
|
573
574
|
for item in list_content:
|
|
574
575
|
f.write(f"{item}\n")
|
|
575
576
|
|
|
576
577
|
@staticmethod
|
|
577
|
-
def read_txt(path: str
|
|
578
|
+
def read_txt(path: Union[str, Path], mode="r"):
|
|
578
579
|
list_content = [item.strip() for item in open(path, mode=mode).readlines()]
|
|
579
580
|
return list_content
|
|
580
581
|
|
|
@@ -646,12 +647,12 @@ class DirUtils:
|
|
|
646
647
|
|
|
647
648
|
@staticmethod
|
|
648
649
|
def split_extension(path,
|
|
649
|
-
extension:
|
|
650
|
-
suffix:
|
|
651
|
-
prefix:
|
|
650
|
+
extension: Optional[str] = None,
|
|
651
|
+
suffix: Optional[str] = None,
|
|
652
|
+
prefix: Optional[str] = None,
|
|
652
653
|
artifact_type: Union[str, None] = None,
|
|
653
654
|
artifact_value: Union[str, int, None] = None,
|
|
654
|
-
extra_punctuation:
|
|
655
|
+
extra_punctuation: Optional[str] = None,
|
|
655
656
|
current_extension: Optional[str] = None
|
|
656
657
|
):
|
|
657
658
|
"""
|
|
@@ -694,7 +695,7 @@ class DirUtils:
|
|
|
694
695
|
@staticmethod
|
|
695
696
|
def list_dir_full_path(directory: str,
|
|
696
697
|
filter_directories: bool = True,
|
|
697
|
-
interest_extensions:
|
|
698
|
+
interest_extensions: Union[Union[str, List[str]]] = None,
|
|
698
699
|
only_directories: bool = False,
|
|
699
700
|
get_full_path: bool = True,
|
|
700
701
|
sort: bool = True,
|
|
@@ -702,7 +703,7 @@ class DirUtils:
|
|
|
702
703
|
dir_depth: int = -1,
|
|
703
704
|
exact_depth: bool = False,
|
|
704
705
|
return_dict: bool = False,
|
|
705
|
-
ends_with:
|
|
706
|
+
ends_with: Union[Union[str, List[str]]] = None,
|
|
706
707
|
) -> Union[List[str], Dict[str, str]]:
|
|
707
708
|
"""
|
|
708
709
|
Returns the full path objects in a directory
|
|
@@ -774,7 +775,7 @@ class DirUtils:
|
|
|
774
775
|
return output
|
|
775
776
|
|
|
776
777
|
@staticmethod
|
|
777
|
-
def remove_extension_with_replace(filename: str, extensions:
|
|
778
|
+
def remove_extension_with_replace(filename: str, extensions: List[str]) -> str:
|
|
778
779
|
"""
|
|
779
780
|
Removes extensions from the input filename
|
|
780
781
|
:param filename:
|
|
@@ -812,7 +813,7 @@ class DirUtils:
|
|
|
812
813
|
@staticmethod
|
|
813
814
|
def crawl_directory_dataset(
|
|
814
815
|
dir_: str,
|
|
815
|
-
ext_filter: list
|
|
816
|
+
ext_filter: Union[list, str] = None,
|
|
816
817
|
map_labels=False,
|
|
817
818
|
label_map_dict: dict = None,
|
|
818
819
|
logger=None,
|
|
@@ -927,7 +928,7 @@ class DirUtils:
|
|
|
927
928
|
)
|
|
928
929
|
|
|
929
930
|
@staticmethod
|
|
930
|
-
def endswith(filepath: str, ext:
|
|
931
|
+
def endswith(filepath: str, ext: Union[List[str], str]):
|
|
931
932
|
"""
|
|
932
933
|
Checks whether a file ends with a list of strings! If ext is None it will return True!
|
|
933
934
|
:param filepath:
|
|
@@ -947,8 +948,8 @@ class DirUtils:
|
|
|
947
948
|
raise ValueError(f"ext: {ext} is not supported!")
|
|
948
949
|
|
|
949
950
|
@staticmethod
|
|
950
|
-
def file_incremental(file_path: str
|
|
951
|
-
add_artifact_value=False, dir_items:
|
|
951
|
+
def file_incremental(file_path: Optional[str], artifact_type="prefix", artifact_value=0, extra_punctuation="_",
|
|
952
|
+
add_artifact_value=False, dir_items: Optional[List[str]] = None):
|
|
952
953
|
"""
|
|
953
954
|
This function is used to increment a file's address with prefix or suffix values until it becomes unique
|
|
954
955
|
:param file_path:
|
|
@@ -985,7 +986,7 @@ class DirUtils:
|
|
|
985
986
|
return file_path
|
|
986
987
|
|
|
987
988
|
@staticmethod
|
|
988
|
-
def mkdir_incremental(dir_path: str
|
|
989
|
+
def mkdir_incremental(dir_path: Union[str, List[str]], base_name="exp", fix_name=None, overwrite=False) -> Path:
|
|
989
990
|
"""
|
|
990
991
|
makes new directories, if it exists increment it and makes another one. Good for hyperparameter tuning!
|
|
991
992
|
Args:
|
|
@@ -1166,9 +1167,11 @@ class DirUtils:
|
|
|
1166
1167
|
@staticmethod
|
|
1167
1168
|
def safe_item_move(base_directory: str, target_directory: str, remove_if_sizes_are_the_same: bool = True,
|
|
1168
1169
|
keep_the_largest_if_sizes_are_not_the_same: bool = True,
|
|
1169
|
-
remove_base_empty_dir: bool = True,
|
|
1170
|
-
|
|
1171
|
-
|
|
1170
|
+
remove_base_empty_dir: bool = True,
|
|
1171
|
+
verbose: bool = True,
|
|
1172
|
+
copy: bool = False,
|
|
1173
|
+
endswith: Union[str, Tuple[str]] = None,
|
|
1174
|
+
not_endswith: Union[str, Tuple[str]] = None,
|
|
1172
1175
|
min_size: int = None):
|
|
1173
1176
|
"""
|
|
1174
1177
|
This only works for items not directories
|
|
@@ -1231,7 +1234,7 @@ class DirUtils:
|
|
|
1231
1234
|
|
|
1232
1235
|
@staticmethod
|
|
1233
1236
|
def move_dir_of_dirs(base_dir: str, target_dir: str, remove_empty_base_dirs: bool = True, verbose: bool = True,
|
|
1234
|
-
endswith: str
|
|
1237
|
+
endswith: Union[str, Tuple[str]] = None, move_n_samples: int = None, n_jobs: int = 1):
|
|
1235
1238
|
"""
|
|
1236
1239
|
|
|
1237
1240
|
:param base_dir:
|
|
@@ -1298,7 +1301,7 @@ class DirUtils:
|
|
|
1298
1301
|
print(f"Directory: {base_dir} and {target_dir} contain same data")
|
|
1299
1302
|
|
|
1300
1303
|
@staticmethod
|
|
1301
|
-
def list_items_walk(directory_path: str, endswith: Union[str,
|
|
1304
|
+
def list_items_walk(directory_path: str, endswith: Union[str, Tuple[str, ...]] = None):
|
|
1302
1305
|
output = []
|
|
1303
1306
|
for root, _, filenames in os.walk(directory_path):
|
|
1304
1307
|
for filename in filenames:
|
|
@@ -1306,8 +1309,8 @@ class DirUtils:
|
|
|
1306
1309
|
output.append(join(root, filename))
|
|
1307
1310
|
|
|
1308
1311
|
@staticmethod
|
|
1309
|
-
def list_items_scandir(directory_path: str, endswith: Union[str,
|
|
1310
|
-
not_endswith: Union[str,
|
|
1312
|
+
def list_items_scandir(directory_path: str, endswith: Union[str, Tuple[str, ...]] = None,
|
|
1313
|
+
not_endswith: Union[str, Tuple[str, ...]] = None, only_directories: bool = False,
|
|
1311
1314
|
dir_start_depth: int = 0, dir_end_depth: int = -1, current_dir_path: int = 0):
|
|
1312
1315
|
"""
|
|
1313
1316
|
|
|
@@ -1322,26 +1325,29 @@ class DirUtils:
|
|
|
1322
1325
|
"""
|
|
1323
1326
|
|
|
1324
1327
|
if only_directories:
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
if entry.
|
|
1328
|
-
if
|
|
1329
|
-
if
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
current_dir_path=current_dir_path + 1,
|
|
1333
|
-
dir_end_depth=dir_end_depth,
|
|
1334
|
-
dir_start_depth=dir_start_depth
|
|
1335
|
-
)
|
|
1336
|
-
else:
|
|
1337
|
-
if dir_start_depth <= current_dir_path < dir_end_depth:
|
|
1338
|
-
yield entry.path
|
|
1339
|
-
if current_dir_path + 1 < dir_end_depth:
|
|
1328
|
+
try:
|
|
1329
|
+
for entry in os.scandir(directory_path):
|
|
1330
|
+
if not entry.name.startswith('.'):
|
|
1331
|
+
if entry.is_dir():
|
|
1332
|
+
if dir_end_depth <= 0:
|
|
1333
|
+
if dir_start_depth <= current_dir_path:
|
|
1334
|
+
yield entry.path
|
|
1340
1335
|
yield from DirUtils.list_items_scandir(entry.path, only_directories=True,
|
|
1341
|
-
|
|
1336
|
+
current_dir_path=current_dir_path + 1,
|
|
1342
1337
|
dir_end_depth=dir_end_depth,
|
|
1343
1338
|
dir_start_depth=dir_start_depth
|
|
1344
|
-
|
|
1339
|
+
)
|
|
1340
|
+
else:
|
|
1341
|
+
if dir_start_depth <= current_dir_path < dir_end_depth:
|
|
1342
|
+
yield entry.path
|
|
1343
|
+
if current_dir_path + 1 < dir_end_depth:
|
|
1344
|
+
yield from DirUtils.list_items_scandir(entry.path, only_directories=True,
|
|
1345
|
+
current_dir_path=current_dir_path + 1,
|
|
1346
|
+
dir_end_depth=dir_end_depth,
|
|
1347
|
+
dir_start_depth=dir_start_depth
|
|
1348
|
+
)
|
|
1349
|
+
except PermissionError:
|
|
1350
|
+
print(f"Warning: Permission Error in: {directory_path}")
|
|
1345
1351
|
|
|
1346
1352
|
else:
|
|
1347
1353
|
if endswith is not None and not_endswith is None:
|
|
@@ -34,3 +34,17 @@ class NumpyUtils:
|
|
|
34
34
|
raise ValueError(f"merge_type: {merge_type} is not supported!")
|
|
35
35
|
|
|
36
36
|
return output_array
|
|
37
|
+
@staticmethod
|
|
38
|
+
def one_hot(array, ncols: int = None):
|
|
39
|
+
|
|
40
|
+
def all_idx(idx, axis):
|
|
41
|
+
grid = np.ogrid[tuple(map(slice, idx.shape))]
|
|
42
|
+
grid.insert(axis, idx)
|
|
43
|
+
return tuple(grid)
|
|
44
|
+
|
|
45
|
+
ncols = ncols or array.max() + 1
|
|
46
|
+
|
|
47
|
+
label = np.zeros((ncols,) + array.shape , dtype=int)
|
|
48
|
+
label[all_idx(array, axis=0)] = 1
|
|
49
|
+
|
|
50
|
+
return label
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Union, List, Optional
|
|
1
|
+
from typing import Union, List, Optional, Tuple
|
|
2
2
|
|
|
3
3
|
class StringUtils:
|
|
4
4
|
@staticmethod
|
|
@@ -24,7 +24,7 @@ class StringUtils:
|
|
|
24
24
|
input_str = inner_list
|
|
25
25
|
return input_str
|
|
26
26
|
@staticmethod
|
|
27
|
-
def replace(input_str: str, replace: str
|
|
27
|
+
def replace(input_str: str, replace: Union[str, Tuple[str, ...]], replace_with: Union[str , Tuple[str]] = None) -> str:
|
|
28
28
|
|
|
29
29
|
replaces = (replace, ) if isinstance(replace, str) else replace
|
|
30
30
|
replace_withs = [""] * len(replace) if replace_with is None else replace_with
|
|
@@ -35,7 +35,7 @@ class StringUtils:
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
@staticmethod
|
|
38
|
-
def right_replace(input_str: str, replace: Union[str,
|
|
38
|
+
def right_replace(input_str: str, replace: Union[str, List[str]], replace_with: str, count: int = 1):
|
|
39
39
|
replace_list = [replace] if isinstance(replace, str) else replace
|
|
40
40
|
reverse_input_str = input_str[::-1]
|
|
41
41
|
reverse_replace_with = replace_with[::-1]
|
|
@@ -173,8 +173,8 @@ class DownloadYoutube:
|
|
|
173
173
|
|
|
174
174
|
|
|
175
175
|
if __name__ == '__main__':
|
|
176
|
-
DownloadYoutube.download_video(video_id="
|
|
176
|
+
DownloadYoutube.download_video(video_id="https://youtu.be/KqoYWTHY_js?si=0gXHu-TTWIqgl70H",
|
|
177
177
|
output_dir="/home/aicvi/Downloads",
|
|
178
178
|
channel_name="yasir_qadhi",
|
|
179
|
-
video_title="
|
|
180
|
-
resolution="
|
|
179
|
+
video_title="Akhlagh_04",
|
|
180
|
+
resolution="worst")
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: deep-utils
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.9
|
|
4
4
|
Summary: Deep Utils
|
|
5
5
|
Home-page: https://github.com/pooya-mohammadi/deep_utils
|
|
6
6
|
Author: Pooya Mohammadi Kazaj
|
|
7
7
|
Author-email: pooyamohammadikazaj@gmial.com
|
|
8
8
|
License: UNKNOWN
|
|
9
|
-
Download-URL: https://github.com/pooya-mohammadi/deep_utils/archive/refs/tags/1.5.
|
|
9
|
+
Download-URL: https://github.com/pooya-mohammadi/deep_utils/archive/refs/tags/1.5.9.tar.gz
|
|
10
10
|
Description: [](https://pepy.tech/project/deep_utils) [](https://pypi.python.org/pypi/deep_utils)
|
|
11
11
|
|
|
12
12
|
<div id="top"></div>
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import numpy as np
|
|
2
|
-
from typing import List, Tuple
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class MainMedUtils:
|
|
6
|
-
@staticmethod
|
|
7
|
-
def get_largets_box(array: np.ndarray, get_info: bool = False):
|
|
8
|
-
dimensions = np.where(array)
|
|
9
|
-
mins = []
|
|
10
|
-
maxs = []
|
|
11
|
-
for dim in dimensions:
|
|
12
|
-
if len(dim):
|
|
13
|
-
mins.append(int(np.min(dim)))
|
|
14
|
-
maxs.append(int(np.max(dim)))
|
|
15
|
-
else:
|
|
16
|
-
mins.append(None)
|
|
17
|
-
maxs.append(None)
|
|
18
|
-
if get_info:
|
|
19
|
-
info = {i: (mi, ma) for i, (mi, ma) in enumerate(zip(mins, maxs))}
|
|
20
|
-
return info
|
|
21
|
-
return mins, maxs
|
|
22
|
-
|
|
23
|
-
@staticmethod
|
|
24
|
-
def get_largest_box_and_crop(array: np.ndarray, expand: int = 0, get_info: bool = False):
|
|
25
|
-
mins, maxs = MainMedUtils.get_largets_box(array)
|
|
26
|
-
shape = array.shape
|
|
27
|
-
expands = np.array([int(d * expand / 100) if expand else 0 for d in shape])
|
|
28
|
-
mins = np.maximum(np.array(mins) - expands, 0)
|
|
29
|
-
maxs = np.minimum(np.array(maxs) + expands, shape)
|
|
30
|
-
if len(mins) == 3:
|
|
31
|
-
cropped_array = array[
|
|
32
|
-
mins[0]: maxs[0],
|
|
33
|
-
mins[1]: maxs[1],
|
|
34
|
-
mins[2]: maxs[2]
|
|
35
|
-
]
|
|
36
|
-
|
|
37
|
-
elif len(mins) == 2:
|
|
38
|
-
cropped_array = array[
|
|
39
|
-
mins[0]: maxs[0],
|
|
40
|
-
mins[1]: maxs[1]
|
|
41
|
-
]
|
|
42
|
-
elif len(mins) == 4:
|
|
43
|
-
cropped_array = array[
|
|
44
|
-
mins[0]: maxs[0],
|
|
45
|
-
mins[1]: maxs[1],
|
|
46
|
-
mins[2]: maxs[2],
|
|
47
|
-
mins[3]: maxs[3],
|
|
48
|
-
]
|
|
49
|
-
else:
|
|
50
|
-
raise ValueError(f"Something wrong with mins: {mins} and maxs: {maxs}")
|
|
51
|
-
|
|
52
|
-
if get_info:
|
|
53
|
-
info = {i: (int(mi), int(ma)) for i, (mi, ma) in enumerate(zip(mins, maxs))}
|
|
54
|
-
return cropped_array, info
|
|
55
|
-
else:
|
|
56
|
-
return cropped_array
|
|
57
|
-
|
|
58
|
-
@staticmethod
|
|
59
|
-
def crop_with_info(array: np.ndarray, info: dict):
|
|
60
|
-
mins, maxs = [], []
|
|
61
|
-
# expand = info.pop('expand')
|
|
62
|
-
for k, v in sorted([(k, v) for k, v in info.items() if isinstance(k, int) or k.isdigit()], key=lambda x: x[0]):
|
|
63
|
-
mins.append(v[0])
|
|
64
|
-
maxs.append(v[1])
|
|
65
|
-
|
|
66
|
-
if len(mins) == 3:
|
|
67
|
-
cropped_array = array[
|
|
68
|
-
mins[0]: maxs[0],
|
|
69
|
-
mins[1]: maxs[1],
|
|
70
|
-
mins[2]: maxs[2]
|
|
71
|
-
]
|
|
72
|
-
|
|
73
|
-
elif len(mins) == 2:
|
|
74
|
-
cropped_array = array[
|
|
75
|
-
mins[0]: maxs[0],
|
|
76
|
-
mins[1]: maxs[1]
|
|
77
|
-
]
|
|
78
|
-
elif len(mins) == 4:
|
|
79
|
-
cropped_array = array[
|
|
80
|
-
mins[0]: maxs[0],
|
|
81
|
-
mins[1]: maxs[1],
|
|
82
|
-
mins[2]: maxs[2],
|
|
83
|
-
mins[3]: maxs[3],
|
|
84
|
-
]
|
|
85
|
-
else:
|
|
86
|
-
raise ValueError(f"Something wrong with mins: {mins} and maxs: {maxs}")
|
|
87
|
-
return cropped_array
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/audio/classification/wav2vec2/torch/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deep_utils-1.5.7 → deep_utils-1.5.9}/deep_utils/design_patterns/chain_of_responsibility/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|