deep-utils 1.4.4__tar.gz → 1.4.6__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.4.4 → deep_utils-1.4.6}/PKG-INFO +2 -2
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/__init__.py +3 -1
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/medical/nib_utils/nib_utils.py +1 -1
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/dir_utils/dir_utils.py +3 -1
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/download_utils/async_download_utils.py +37 -13
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/download_utils/download_utils.py +8 -2
- deep_utils-1.4.6/deep_utils/utils/prompt_utils/prompt_utils.py +308 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/re_utils/re_utils.py +18 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/str_utils/str_utils.py +9 -4
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils.egg-info/PKG-INFO +2 -2
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils.egg-info/SOURCES.txt +2 -1
- {deep_utils-1.4.4 → deep_utils-1.4.6}/setup.py +1 -1
- {deep_utils-1.4.4 → deep_utils-1.4.6}/LICENSE +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/asr/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/asr/wav2vec2/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/asr/wav2vec2/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/asr/wav2vec2/torch/main.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/audio_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/audio_utils/librosa_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/audio_utils/soundfile_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/audio_utils/torchaudio_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/audio_utils/vox_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/classification/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/classification/wav2vec2/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/classification/wav2vec2/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/classification/wav2vec2/torch/audio_classification_wav2vec2.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/diarization/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/diarization/pyannote/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/diarization/pyannote/pyannote_audio_diarization.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/vad/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/vad/pyannote/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/audio/vad/pyannote/pyannote_audio_vad.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/augmentation/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/augmentation/cutmix/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/augmentation/cutmix/cutmix_tf.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/augmentation/cutmix/cutmix_torch.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/augmentation/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/augmentation/torch/augmentation_torch.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/blocks/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/blocks/tf/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/blocks/tf/blocks_tf.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/blocks/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/blocks/torch/blocks_torch.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/callbacks/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/callbacks/tf_keras/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/callbacks/tf_keras/lr.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/callbacks/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/callbacks/torch/torch_csv_logger.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/callbacks/torch/torch_model_checkpoint.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/callbacks/torch/torch_tensorboard.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/design_patterns/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/design_patterns/chain_of_responsibility/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/design_patterns/chain_of_responsibility/chain_of_responsibilities_handlers.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/dummy_objects/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/dummy_objects/dummies.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/dummy_objects/dummy_framework.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/elasticsearch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/elasticsearch/search_engine/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/elasticsearch/search_engine/abs_elasticsearch_search_engine.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/elasticsearch/search_engine/async_elasticsearch_search_engine.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/elasticsearch/search_engine/elasticsearch_search_engine.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/gis/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/gis/projection/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/gis/projection/main.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/llm/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/llm/utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/main_abs/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/main_abs/cv2/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/main_abs/cv2/cv2_caffe.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/main_abs/cv2/cv2_config.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/main_abs/cv2/cv2_main.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/main_abs/main.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/main_abs/main_config.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/medical/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/medical/main_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/medical/metrics/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/medical/metrics/metrics.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/medical/nib_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/medical/nnunet_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/medical/nnunet_utils/nnunet_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/medical/sitk_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/medical/sitk_utils/sitk_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/multi_modals/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/multi_modals/_models/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/multi_modals/_models/blip/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/multi_modals/_models/blip/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/multi_modals/_models/blip/torch/models/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/multi_modals/_models/blip/torch/models/blip.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/multi_modals/_models/blip/torch/models/med.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/multi_modals/_models/blip/torch/models/med_configs.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/multi_modals/_models/blip/torch/models/vit.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/nlp/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/nlp/ner/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/nlp/ner/augmentation.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/nlp/ner/base_operations.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/nlp/ner/preprocessing.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/nlp/ner/taggers.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/nlp/ner/utils_.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/nlp/utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/nlp/utils/multi_lang_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/nlp/utils/multi_lang_utils/multi_lang_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/nlp/utils/persian/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/nlp/utils/persian/utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/preprocessing/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/preprocessing/monai/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/preprocessing/monai/monai_segmentation.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/algorithm_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/algorithm_utils/main.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/boto3_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/boto3_utils/boto3_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/box_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/box_utils/box_dataclasses.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/box_utils/boxes.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/coco_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/coco_utils/main.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/color_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/color_utils/color_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/compress_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/compress_utils/zip_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/constants.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/ctc_decoder/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/ctc_decoder/ctc_decoder.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/dataclass_parser/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/dataclass_parser/dataclass_argparser.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/dataclass_parser/example.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/decorators/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/decorators/main.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/decord_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/decord_utils/decord_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/dict_named_tuple_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/dict_named_tuple_utils/dictnamedtuple_37.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/dict_named_tuple_utils/dictnamedtuple_38.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/dict_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/dict_utils/dict_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/dir_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/download_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/encodes/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/encodes/b64.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/encodes/web_inputs.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/fa_nlp_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/fa_nlp_utils/fa_nlp_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/gif_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/gif_utils/gif_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/hash_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/hash_utils/hash_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/image_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/image_utils/image_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/json_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/json_utils/json_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/kafka_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/kafka_utils/kafka_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/lib_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/lib_utils/download_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/lib_utils/integeration_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/lib_utils/lib_decorators.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/lib_utils/main_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/list_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/list_utils/list_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/logging_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/logging_utils/logging_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/lr_scheduler_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/lr_scheduler_utils/warmup.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/matplotlib_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/matplotlib_utils/bar_plots.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/matplotlib_utils/main.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/memory_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/memory_utils/torch_memory_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/minio_lib/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/minio_lib/main.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/multi_label_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/multi_label_utils/stratify/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/multi_label_utils/stratify/stratify_train_test_split.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/np_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/np_utils/main_np.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/numpy_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/numpy_utils/numpy_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/object_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/object_utils/object_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/opencv_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/opencv_utils/opencv_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/optimizers/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/optimizers/tf.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/os_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/os_utils/os_path.py +0 -0
- {deep_utils-1.4.4/deep_utils/utils/openai_utils → deep_utils-1.4.6/deep_utils/utils/pickle_utils}/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/pickle_utils/pickle_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/postgresql_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/postgresql_utils/postgresql_utils.py +0 -0
- {deep_utils-1.4.4/deep_utils/utils/pickle_utils → deep_utils-1.4.6/deep_utils/utils/prompt_utils}/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/py_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/py_utils/py_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/qdrant_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/qdrant_utils/qdrant_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/random_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/random_utils/random_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/re_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/requests_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/requests_utils/requests_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/resize_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/resize_utils/main_resize.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/shutil_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/shutil_utils/shutil_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/sqlalchemy/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/sqlalchemy/checks.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/sqlalchemy/insert.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/sqlalchemy/sqlalchemy_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/str_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/tensorboard_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/tensorboard_utils/tesnsorboard_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/tf_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/tf_utils/logging.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/tf_utils/main.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/tiktoken_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/tiktoken_utils/tiktoken_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/torch_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/torch_utils/torch_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/utils/arg_parser.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/utils/hyper_parameters.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/utils/shuffle_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/utils/yaml_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/variable_naming_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/variable_naming_utils/variable_naming_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/color_recognition/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/color_recognition/cnn_color/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/color_recognition/cnn_color/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/color_recognition/cnn_color/torch/color_cnn_torch.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/color_recognition/cnn_color/torch/color_cnn_torch_pred.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/haarcascade/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/haarcascade/cv2_/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/haarcascade/cv2_/config.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/haarcascade/cv2_/haarcascade_cv2_face_detection.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/main/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/main/main_face_detection.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/tf/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/tf/config.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/tf/mtcnn_tf_face_detection.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/tf/src/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/tf/src/box_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/tf/src/first_stage.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/tf/src/get_nets.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/torch/config.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/torch/mtcnn_torch_face_detection.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/torch/src/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/torch/src/box_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/torch/src/first_stage.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/mtcnn/torch/src/get_nets.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/config.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/retinaface_torch_face_detection.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/src/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/src/layers/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/src/layers/functions/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/src/layers/functions/prior_box.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/src/layers/modules/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/src/layers/modules/multibox_loss.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/src/load_model.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/src/net.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/src/retinaface.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/src/utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/src/utils/box_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/src/utils/nms/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/src/utils/nms/py_cpu_nms.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/retinaface/torch/src/utils/timer.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ssd/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ssd/cv2/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ssd/cv2/caffe/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ssd/cv2/caffe/config.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ssd/cv2/caffe/ssd_cv2_caffe_face_detection.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/tf/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/tf/config.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/tf/ultralight_tf_face_detection.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/tf/utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/tf/utils/op.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/tf/utils/rfb_320.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/tf/utils/slim_320.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/tf/utils/utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/config.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/ultralight_torch_face_detection.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/utils/box_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/utils/data_preprocessing.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/utils/fd_config.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/utils/mb_tiny.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/utils/mb_tiny_RFB.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/utils/mb_tiny_RFB_fd.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/utils/mb_tiny_fd.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/utils/misc.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/utils/predictor.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/utils/ssd.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_detection/ultralight/torch/utils/transforms.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_recognition/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_recognition/main/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_recognition/main/main_face_recognition.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_recognition/vggface2/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_recognition/vggface2/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_recognition/vggface2/torch/config.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_recognition/vggface2/torch/src/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_recognition/vggface2/torch/src/inception_resnet_v1.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_recognition/vggface2/torch/src/senet_model.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/face_recognition/vggface2/torch/vggface2_torch.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/image_caption/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/image_caption/blip/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/image_caption/blip/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/image_caption/blip/torch/blip_torch_image_caption.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/image_caption/image_caption.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/image_editing/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/image_editing/glide/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/image_editing/glide/glide_image_editing.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/main/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/main/main_object_detection.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/config.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/models/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/models/common.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/models/experimental.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/models/tf.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/models/yolo.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolo_v5_torch_object_detection.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/activations.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/augmentations.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/autoanchor.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/autobatch.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/callbacks.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/dataloaders.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/datasets.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/downloads.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/general.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/google_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/loss.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/metrics.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/plots.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/segment/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/segment/augmentations.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/segment/dataloaders.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/segment/general.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/segment/loss.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/segment/metrics.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/segment/plots.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/torch_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v5/torch/yolov5_utils/triton.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/config.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/models/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/models/common.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/models/experimental.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/models/yolo.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/yolo_v7_torch_object_detection.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/activations.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/add_nms.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/autoanchor.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/datasets.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/general.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/google_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/loss.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/metrics.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/plots.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/v7/torch/yolov7_utils/torch_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_detection/yolo/yolo_detector.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/deep/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/deep_sort.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/sort/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/sort/detection.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/sort/iou_matching.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/sort/kalman_filter.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/sort/linear_assignment.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/sort/nn_matching.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/sort/preprocessing.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/sort/track.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/sort/tracker.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/utils/asserts.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/utils/draw.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/utils/evaluation.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/utils/io.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/utils/json_logger.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/utils/log.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/utils/parser.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/object_tracker/deep_sort/torch/utils/tools.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/ocr/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/ocr/crnn/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/ocr/crnn/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/ocr/crnn/torch/crnn_inference.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/ocr/crnn/torch/crnn_model.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/text2box_visual_grounding/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/text2box_visual_grounding/dino/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/text2box_visual_grounding/dino/visual_grounding_dino_torch.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/torch_vision/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/torch_vision/torch_vision_inference/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/torch_vision/torch_vision_inference/torch_vision_inference.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/torch_vision/torch_vision_models/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/torch_vision/torch_vision_models/torch_vision_models.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/vision_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/vision_utils/torch_vision_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/vision/vision_utils/torch_vision_utils/torch_vision_utils.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils.egg-info/dependency_links.txt +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils.egg-info/requires.txt +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils.egg-info/top_level.txt +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/setup.cfg +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/utils/encoding_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/utils/encoding_utils/encoding_utils_test.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/utils/np_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/utils/np_utils/np_utils_test.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/utils/resize_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/utils/resize_utils/resize_utils_test.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/utils/utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/face_detection/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/face_detection/mtcnn/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/face_detection/mtcnn/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/face_detection/mtcnn/torch/mtcnn_torch_test.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/face_detection/ultralight/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/face_detection/ultralight/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/face_detection/ultralight/torch/ultralight_torch_test.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/object_detection/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/object_detection/yolo/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/object_detection/yolo/v5/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/object_detection/yolo/v5/torch/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/object_detection/yolo/v5/torch/yolov5_detection_test.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/vision_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/tests/vision/vision_utils/torch_vision_utils/__init__.py +0 -0
- {deep_utils-1.4.4 → deep_utils-1.4.6}/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.4.
|
|
3
|
+
Version: 1.4.6
|
|
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.4.
|
|
9
|
+
Download-URL: https://github.com/pooya-mohammadi/deep_utils/archive/refs/tags/1.4.6.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.4.
|
|
7
|
+
__version__ = "1.4.6"
|
|
8
8
|
|
|
9
9
|
from .utils.constants import DUMMY_PATH, Backends
|
|
10
10
|
|
|
@@ -38,6 +38,7 @@ _import_structure = {
|
|
|
38
38
|
"utils.encodes.b64": ["BinaryUtils"],
|
|
39
39
|
"nlp.utils.persian.utils": ["PersianUtils"],
|
|
40
40
|
"utils.dataclass_parser.dataclass_argparser": ["DataClassArgParser"],
|
|
41
|
+
"utils.prompt_utils.prompt_utils": ["PromptUtils"],
|
|
41
42
|
|
|
42
43
|
DUMMY_PATH: [], # this is required for dummy check!
|
|
43
44
|
}
|
|
@@ -151,6 +152,7 @@ if TYPE_CHECKING:
|
|
|
151
152
|
from .utils.decord_utils.decord_utils import DecordUtils
|
|
152
153
|
from .utils.dataclass_parser.dataclass_argparser import DataClassArgParser
|
|
153
154
|
from .utils.coco_utils.main import COCOUtils
|
|
155
|
+
from .utils.prompt_utils.prompt_utils import PromptUtils
|
|
154
156
|
else:
|
|
155
157
|
import sys
|
|
156
158
|
|
|
@@ -49,7 +49,7 @@ class NIBUtils(MainMedUtils):
|
|
|
49
49
|
if img:
|
|
50
50
|
affine = img.affine
|
|
51
51
|
header = img.header
|
|
52
|
-
clipped_img = nib.Nifti1Image(
|
|
52
|
+
clipped_img = nib.Nifti1Image(input_array, affine, header)
|
|
53
53
|
nib.save(clipped_img, filepath)
|
|
54
54
|
@staticmethod
|
|
55
55
|
def update_origin_of_cropped_image(origin, spacing, min_coordinates):
|
|
@@ -1032,7 +1032,9 @@ class DirUtils:
|
|
|
1032
1032
|
output = os.path.join(*outputs)
|
|
1033
1033
|
return output
|
|
1034
1034
|
|
|
1035
|
-
|
|
1035
|
+
@staticmethod
|
|
1036
|
+
def get_dir_time(directory: str):
|
|
1037
|
+
return {item.split(" ")[-1]: " ".join( item.split(" ")[-4: -1]) for item in DirUtils.execute_command(f"ls -l {directory}").split("\n") if item}
|
|
1036
1038
|
mkdir_incremental = DirUtils.mkdir_incremental
|
|
1037
1039
|
|
|
1038
1040
|
if __name__ == '__main__':
|
{deep_utils-1.4.4 → deep_utils-1.4.6}/deep_utils/utils/download_utils/async_download_utils.py
RENAMED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import os
|
|
2
|
+
os.environ['CURL_CA_BUNDLE'] = ''
|
|
2
3
|
import aiohttp
|
|
3
4
|
import asyncio
|
|
5
|
+
from os.path import join, split
|
|
4
6
|
|
|
5
7
|
class AsyncDownloadUtils:
|
|
6
8
|
|
|
7
9
|
@staticmethod
|
|
8
|
-
async def download(url: str, local_filepath: str, chunk_size: int = 69 * 1024, exists_ok=True) -> str:
|
|
10
|
+
async def download(url: str, local_filepath: str =None, chunk_size: int = 69 * 1024, exists_ok=True, session = None, directory_path: str=None) -> str:
|
|
9
11
|
"""
|
|
10
12
|
Download a file from a URL in an asynchronous manner into the input local filepath.
|
|
11
13
|
If url is a local file, return url.
|
|
@@ -15,25 +17,39 @@ class AsyncDownloadUtils:
|
|
|
15
17
|
:param exists_ok: if True, do not download if the file already exists.
|
|
16
18
|
:return:
|
|
17
19
|
"""
|
|
20
|
+
async def _write(local_filepath):
|
|
21
|
+
response.raise_for_status()
|
|
22
|
+
with open(local_filepath, 'wb') as file:
|
|
23
|
+
while True:
|
|
24
|
+
chunk = await response.content.read(chunk_size)
|
|
25
|
+
if not chunk:
|
|
26
|
+
break
|
|
27
|
+
file.write(chunk)
|
|
28
|
+
|
|
18
29
|
if os.path.exists(url):
|
|
19
30
|
return url
|
|
20
|
-
|
|
31
|
+
|
|
32
|
+
if local_filepath is None and directory_path is not None:
|
|
33
|
+
os.makedirs(directory_path, exist_ok=True)
|
|
34
|
+
local_filepath = join(directory_path, split(url)[-1])
|
|
35
|
+
|
|
36
|
+
if local_filepath is not None and os.path.exists(local_filepath) and exists_ok:
|
|
21
37
|
return local_filepath
|
|
22
|
-
elif os.path.exists(local_filepath) and not exists_ok:
|
|
38
|
+
elif local_filepath is not None and os.path.exists(local_filepath) and not exists_ok:
|
|
23
39
|
raise ValueError("file exists!")
|
|
24
|
-
|
|
40
|
+
|
|
41
|
+
if session is None:
|
|
42
|
+
async with aiohttp.ClientSession() as session:
|
|
43
|
+
async with session.get(url) as response:
|
|
44
|
+
await _write(local_filepath)
|
|
45
|
+
else:
|
|
25
46
|
async with session.get(url) as response:
|
|
26
|
-
|
|
27
|
-
with open(local_filepath, 'wb') as file:
|
|
28
|
-
while True:
|
|
29
|
-
chunk = await response.content.read(chunk_size)
|
|
30
|
-
if not chunk:
|
|
31
|
-
break
|
|
32
|
-
file.write(chunk)
|
|
47
|
+
await _write(local_filepath)
|
|
33
48
|
return local_filepath
|
|
34
49
|
|
|
35
50
|
@staticmethod
|
|
36
|
-
async def download_urls(urls: list[str], local_dir: str, remove_to_get_local_file_path: str = None
|
|
51
|
+
async def download_urls(urls: list[str], local_dir: str, remove_to_get_local_file_path: str = None,
|
|
52
|
+
async_tasks: int = None):
|
|
37
53
|
os.makedirs(local_dir, exist_ok=True)
|
|
38
54
|
tasks = []
|
|
39
55
|
for url in urls:
|
|
@@ -42,7 +58,15 @@ class AsyncDownloadUtils:
|
|
|
42
58
|
os.makedirs(os.path.dirname(local_filepath), exist_ok=True)
|
|
43
59
|
task = asyncio.create_task(AsyncDownloadUtils.download(url, local_filepath))
|
|
44
60
|
tasks.append(task)
|
|
45
|
-
|
|
61
|
+
if async_tasks is not None:
|
|
62
|
+
local_files = []
|
|
63
|
+
for i in range(0, len(tasks) // async_tasks):
|
|
64
|
+
_tasks = tasks[i * async_tasks: (i + 1) * async_tasks]
|
|
65
|
+
print(f"working on {len(_tasks)}")
|
|
66
|
+
files = await asyncio.gather(*_tasks)
|
|
67
|
+
local_files.extend(files)
|
|
68
|
+
else:
|
|
69
|
+
local_files = await asyncio.gather(*tasks)
|
|
46
70
|
return local_files
|
|
47
71
|
|
|
48
72
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import shutil
|
|
3
3
|
import sys
|
|
4
|
-
|
|
4
|
+
from os.path import join, split
|
|
5
5
|
import requests
|
|
6
6
|
|
|
7
7
|
|
|
@@ -90,7 +90,13 @@ class DownloadUtils:
|
|
|
90
90
|
os.remove(temp_download_des)
|
|
91
91
|
raise Exception(error_msg.format(url))
|
|
92
92
|
return download_des
|
|
93
|
-
|
|
93
|
+
def download_urls(dl_urls: list[str], download_path: str, remove_to_get_local_file_path: str = None):
|
|
94
|
+
for url in dl_urls:
|
|
95
|
+
if remove_to_get_local_file_path:
|
|
96
|
+
filename = url.replace(remove_to_get_local_file_path, "").strip("/")
|
|
97
|
+
local_filepath = os.path.join(download_path, filename)
|
|
98
|
+
os.makedirs(os.path.dirname(local_filepath), exist_ok=True)
|
|
99
|
+
DownloadUtils.download_file(url, os.path.dirname(local_filepath), filename=split(filename)[-1].replace('"', "").replace(";", ""), exists_skip=True)
|
|
94
100
|
|
|
95
101
|
if __name__ == '__main__':
|
|
96
102
|
image_download_path = "https://github.com/pooya-mohammadi/deep_utils/releases/download/1.0.2/golsa_in_garden.jpg"
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import math
|
|
3
|
+
import os
|
|
4
|
+
import re
|
|
5
|
+
from ast import literal_eval
|
|
6
|
+
from typing import Union, List
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class PromptUtils:
|
|
10
|
+
def __init__(self):
|
|
11
|
+
"""
|
|
12
|
+
Creates a prompt generator
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
@staticmethod
|
|
16
|
+
def get_segments(strings: str, segment_limit) -> list:
|
|
17
|
+
"""
|
|
18
|
+
Remove me if I'm not used anywhere!
|
|
19
|
+
:param strings:
|
|
20
|
+
:param segment_limit:
|
|
21
|
+
:return:
|
|
22
|
+
"""
|
|
23
|
+
# encoding = tiktoken.encoding_for_model("text-davinci-003")
|
|
24
|
+
# num_segments = len(encoding.encode(strings))
|
|
25
|
+
# Adjust as per your needs
|
|
26
|
+
print(f"Generating video script for {len(strings)} characters of text")
|
|
27
|
+
print(segment_limit)
|
|
28
|
+
|
|
29
|
+
num_segments = math.ceil(len(strings) / segment_limit)
|
|
30
|
+
print(num_segments)
|
|
31
|
+
segments = [strings[i * segment_limit:(i + 1) * segment_limit] for i in range(0, num_segments)]
|
|
32
|
+
print('len', len(segments))
|
|
33
|
+
return segments
|
|
34
|
+
|
|
35
|
+
@staticmethod
|
|
36
|
+
def load_txt_prompt(path: str, replace_new_line=False) -> str:
|
|
37
|
+
"""
|
|
38
|
+
Loads the txt prompt from the given path.
|
|
39
|
+
the new lines that are in txt file are skipped and only those with [new-line] are considered as new line.
|
|
40
|
+
:param path: path to prompt txt file
|
|
41
|
+
:param replace_new_line: if True, replaces [new-line] with \n
|
|
42
|
+
:return:
|
|
43
|
+
"""
|
|
44
|
+
if os.path.isfile(path):
|
|
45
|
+
txt = open(path, mode="r", encoding="utf-8").read()
|
|
46
|
+
else:
|
|
47
|
+
txt = path
|
|
48
|
+
if replace_new_line:
|
|
49
|
+
txt = txt.replace("\n", "").replace("[new-line]", "\n")
|
|
50
|
+
return txt
|
|
51
|
+
|
|
52
|
+
@staticmethod
|
|
53
|
+
def replace_comments(txt: str) -> str:
|
|
54
|
+
pattern = r"#.*?#"
|
|
55
|
+
flag = re.DOTALL
|
|
56
|
+
txt = re.sub(pattern, "", txt, flags=flag)
|
|
57
|
+
return txt
|
|
58
|
+
|
|
59
|
+
@staticmethod
|
|
60
|
+
def fill_comments(text: str, **variables) -> str:
|
|
61
|
+
"""
|
|
62
|
+
I believe this is not used anywhere anymore!
|
|
63
|
+
:param text:
|
|
64
|
+
:param variables:
|
|
65
|
+
:return:
|
|
66
|
+
"""
|
|
67
|
+
pattern_values = r'#(.*?)#'
|
|
68
|
+
pattern_names = r'{(.*?)}'
|
|
69
|
+
|
|
70
|
+
commented_texts = re.findall(pattern_values, text)
|
|
71
|
+
for commented_text in commented_texts:
|
|
72
|
+
variable_names = re.findall(pattern_names, commented_text)
|
|
73
|
+
processed_text = commented_text
|
|
74
|
+
flag = True if len(variable_names) else False
|
|
75
|
+
for variable_name in variable_names:
|
|
76
|
+
variable_value = variables.get(variable_name, None)
|
|
77
|
+
if not variable_value:
|
|
78
|
+
flag = False
|
|
79
|
+
break
|
|
80
|
+
processed_text = processed_text.replace("{" + f"{variable_name}" + "}", str(variable_value))
|
|
81
|
+
if flag:
|
|
82
|
+
# replace comment with data if all the variables are provided by user!
|
|
83
|
+
text = text.replace("#" + f"{commented_text}" + "#", processed_text)
|
|
84
|
+
|
|
85
|
+
return text
|
|
86
|
+
|
|
87
|
+
@staticmethod
|
|
88
|
+
def fill_variables(txt, **variables) -> str:
|
|
89
|
+
"""
|
|
90
|
+
fills the curly brackets in the prompts!
|
|
91
|
+
:param txt:
|
|
92
|
+
:param variables:
|
|
93
|
+
:return:
|
|
94
|
+
"""
|
|
95
|
+
pattern = r"{(\w+):-([^'}\s]*)}"
|
|
96
|
+
matches = re.findall(pattern, txt)
|
|
97
|
+
processed_text = txt
|
|
98
|
+
for variable_name, default_value in matches:
|
|
99
|
+
value = variables.pop(variable_name) if variable_name in variables else default_value
|
|
100
|
+
# replace the variable with the value for the default variables and non defaults
|
|
101
|
+
processed_text = processed_text.replace("{" + variable_name + ":-" + default_value + "}", value)
|
|
102
|
+
# non defaults
|
|
103
|
+
processed_text = processed_text.replace("{" + f"{variable_name}" + "}", str(value))
|
|
104
|
+
# match parameters without default values
|
|
105
|
+
pattern = r"{(\w+)}"
|
|
106
|
+
matches = set(re.findall(pattern, txt))
|
|
107
|
+
for variable_name in matches:
|
|
108
|
+
if variable_name not in variables:
|
|
109
|
+
raise ValueError(f"variable {variable_name} is not provided!")
|
|
110
|
+
value = variables.pop(variable_name)
|
|
111
|
+
processed_text = processed_text.replace("{" + f"{variable_name}" + "}", str(value))
|
|
112
|
+
if len(variables):
|
|
113
|
+
raise ValueError(f"variables {variables} are not used!")
|
|
114
|
+
return processed_text
|
|
115
|
+
|
|
116
|
+
@staticmethod
|
|
117
|
+
def get_bulleted_list(video_description_list):
|
|
118
|
+
video_description_list = [f"• {video_description}" for video_description in video_description_list]
|
|
119
|
+
video_description_list = "\n".join(video_description_list)
|
|
120
|
+
return video_description_list
|
|
121
|
+
|
|
122
|
+
@staticmethod
|
|
123
|
+
def parse_markdown(input_string: str, keyword="json", load_mechanism="json", leading_str="```",
|
|
124
|
+
trailing_str="```", get_list_inner_eval=False,
|
|
125
|
+
remove_patterns: Union[str, List[str], None] = None) -> Union[dict, list, str]:
|
|
126
|
+
"""
|
|
127
|
+
Parse a JSON string from a Markdown string.
|
|
128
|
+
|
|
129
|
+
Args:
|
|
130
|
+
input_string: The Markdown string.
|
|
131
|
+
keyword: The keyword to look for in the Markdown string.
|
|
132
|
+
load_mechanism: The mechanism to use to load the string. Can be either "json" or None.
|
|
133
|
+
leading_str: The leading string to look for in the Markdown string.
|
|
134
|
+
trailing_str: The trailing string to look for in the Markdown string.
|
|
135
|
+
get_list_inner_eval: Whether to evaluate the inner items of a list. For example, if there is an item with
|
|
136
|
+
value "['1', '2', '3']", this will be converted to a list of integers.
|
|
137
|
+
remove_patterns: A list of patterns to remove from the input string.
|
|
138
|
+
Returns:
|
|
139
|
+
The parsed JSON object as a Python dictionary.
|
|
140
|
+
"""
|
|
141
|
+
# Try to find JSON string within triple backticks
|
|
142
|
+
match = re.search(rf"{leading_str}({keyword})?(.*?){trailing_str}", input_string, re.DOTALL)
|
|
143
|
+
|
|
144
|
+
if leading_str and trailing_str and keyword and match is None:
|
|
145
|
+
# if match is None but trailing_str is provided, I add the trailing str.
|
|
146
|
+
# Sometimes the final trailing str is missing!
|
|
147
|
+
if not input_string.endswith(trailing_str):
|
|
148
|
+
input_string = input_string + trailing_str
|
|
149
|
+
match = re.search(rf"{leading_str}({keyword})?(.*?){trailing_str}", input_string, re.DOTALL)
|
|
150
|
+
# if match is still None add the leading str with keyword
|
|
151
|
+
if match is None and not input_string.startswith(leading_str + keyword):
|
|
152
|
+
if input_string.startswith(keyword):
|
|
153
|
+
input_string = leading_str + input_string
|
|
154
|
+
else:
|
|
155
|
+
input_string = leading_str + keyword + input_string
|
|
156
|
+
match = re.search(rf"{leading_str}({keyword})?(.*?){trailing_str}", input_string, re.DOTALL)
|
|
157
|
+
|
|
158
|
+
# If no match found, assume the entire string is a JSON string
|
|
159
|
+
if match is None:
|
|
160
|
+
input_str = input_string
|
|
161
|
+
else:
|
|
162
|
+
# If match found, use the content within the backticks
|
|
163
|
+
input_str = match.group(2)
|
|
164
|
+
|
|
165
|
+
# Strip whitespace and newlines from the start and end
|
|
166
|
+
input_str = input_str.strip()
|
|
167
|
+
|
|
168
|
+
# Remove patterns
|
|
169
|
+
if remove_patterns is not None:
|
|
170
|
+
if isinstance(remove_patterns, str):
|
|
171
|
+
remove_patterns = [remove_patterns]
|
|
172
|
+
for pattern in remove_patterns:
|
|
173
|
+
input_str = re.sub(pattern, "", input_str)
|
|
174
|
+
|
|
175
|
+
# Parse the JSON string into a Python dictionary
|
|
176
|
+
if load_mechanism == "json":
|
|
177
|
+
parsed = PromptUtils.replace_and_parse_json(input_str)
|
|
178
|
+
elif load_mechanism == "list":
|
|
179
|
+
input_str = PromptUtils.extract_text_between_first_and_last_brackets(input_str)
|
|
180
|
+
parsed = PromptUtils.replace_and_parse_list(input_str)
|
|
181
|
+
# sometimes it only returns a string instead of a list then convert it to list manually
|
|
182
|
+
parsed = [parsed] if isinstance(parsed, str) else parsed
|
|
183
|
+
if get_list_inner_eval:
|
|
184
|
+
parsed = [literal_eval(item) for item in parsed]
|
|
185
|
+
# remove ellipsis
|
|
186
|
+
parsed = [item for item in parsed if not isinstance(item, type(Ellipsis))]
|
|
187
|
+
elif load_mechanism in [None, ""]:
|
|
188
|
+
parsed = input_str
|
|
189
|
+
else:
|
|
190
|
+
raise ValueError(f"Invalid load_mechanism: {load_mechanism}")
|
|
191
|
+
|
|
192
|
+
return parsed
|
|
193
|
+
|
|
194
|
+
@staticmethod
|
|
195
|
+
def extract_text_between_first_and_last_brackets(text: str):
|
|
196
|
+
"""
|
|
197
|
+
Extract based on brackets
|
|
198
|
+
:param text:
|
|
199
|
+
:return:
|
|
200
|
+
"""
|
|
201
|
+
start_index = text.find('[')
|
|
202
|
+
if start_index == -1:
|
|
203
|
+
start_index = 0
|
|
204
|
+
text = "[" + text
|
|
205
|
+
end_index = text.rfind(']')
|
|
206
|
+
if end_index == -1:
|
|
207
|
+
end_index = len(text)
|
|
208
|
+
text = text + "]"
|
|
209
|
+
return text[start_index:end_index + 1]
|
|
210
|
+
|
|
211
|
+
@staticmethod
|
|
212
|
+
def replace_double_quotation_with_triple_quotation(text: str):
|
|
213
|
+
"""
|
|
214
|
+
"This is "pooya" who is playing!" This cannot be parsed with string
|
|
215
|
+
Converting the first and the last " to triple "
|
|
216
|
+
:param text:
|
|
217
|
+
:return:
|
|
218
|
+
"""
|
|
219
|
+
start_index = text.find('"')
|
|
220
|
+
if start_index == -1:
|
|
221
|
+
start_index = 0
|
|
222
|
+
text = '"' + text
|
|
223
|
+
end_index = text.rfind('"')
|
|
224
|
+
if end_index == -1:
|
|
225
|
+
end_index = len(text)
|
|
226
|
+
text = text + '"'
|
|
227
|
+
|
|
228
|
+
text = text[:start_index] + '"""' + text[start_index + 1: end_index] + '"""' + text[end_index + 1:]
|
|
229
|
+
return text
|
|
230
|
+
|
|
231
|
+
@staticmethod
|
|
232
|
+
def replace_double_quotation_with_triple_quotation_all(input_str: str):
|
|
233
|
+
lines = input_str.split("\n")
|
|
234
|
+
output = []
|
|
235
|
+
for line in lines:
|
|
236
|
+
if '"' in line:
|
|
237
|
+
line = PromptUtils.replace_double_quotation_with_triple_quotation(line)
|
|
238
|
+
output.append(line)
|
|
239
|
+
return "\n".join(output)
|
|
240
|
+
|
|
241
|
+
@staticmethod
|
|
242
|
+
def replace_and_parse_list(input_str: str) -> Union[str, list[str]]:
|
|
243
|
+
try:
|
|
244
|
+
# simple parse
|
|
245
|
+
parsed = literal_eval(input_str)
|
|
246
|
+
return parsed
|
|
247
|
+
except:
|
|
248
|
+
pass
|
|
249
|
+
|
|
250
|
+
try:
|
|
251
|
+
# Convert last "]] to ."]
|
|
252
|
+
parsed = literal_eval(input_str.replace("\n", "").replace('] ]', ']'))
|
|
253
|
+
return parsed
|
|
254
|
+
except:
|
|
255
|
+
pass
|
|
256
|
+
|
|
257
|
+
try:
|
|
258
|
+
# Convert last "]] to ."]
|
|
259
|
+
parsed = literal_eval(input_str.replace("\n", "").replace(']]', ']'))
|
|
260
|
+
return parsed
|
|
261
|
+
except:
|
|
262
|
+
pass
|
|
263
|
+
|
|
264
|
+
try:
|
|
265
|
+
# Convert last ".] to ."]
|
|
266
|
+
parsed = literal_eval(input_str.replace('".]', '."]'))
|
|
267
|
+
return parsed
|
|
268
|
+
except:
|
|
269
|
+
pass
|
|
270
|
+
|
|
271
|
+
try:
|
|
272
|
+
# maybe we have ... without comma!
|
|
273
|
+
parsed = literal_eval(input_str.replace("...,", "").replace("...", ""))
|
|
274
|
+
return parsed
|
|
275
|
+
except:
|
|
276
|
+
pass
|
|
277
|
+
|
|
278
|
+
# maybe we have double quotation error!
|
|
279
|
+
try:
|
|
280
|
+
parsed = literal_eval(PromptUtils.replace_double_quotation_with_triple_quotation_all(input_str))
|
|
281
|
+
return parsed
|
|
282
|
+
except:
|
|
283
|
+
pass
|
|
284
|
+
|
|
285
|
+
return input_str
|
|
286
|
+
# raise ValueError("Couldn't parse!")
|
|
287
|
+
|
|
288
|
+
@staticmethod
|
|
289
|
+
def replace_and_parse_json(input_str: str) -> Union[str, list]:
|
|
290
|
+
try:
|
|
291
|
+
parsed = json.loads(input_str)
|
|
292
|
+
return parsed
|
|
293
|
+
except:
|
|
294
|
+
pass
|
|
295
|
+
|
|
296
|
+
# seems that literal_eval is working quite nice!
|
|
297
|
+
try:
|
|
298
|
+
parsed = literal_eval(input_str)
|
|
299
|
+
return parsed
|
|
300
|
+
except:
|
|
301
|
+
pass
|
|
302
|
+
try:
|
|
303
|
+
# let's remove new lines :D
|
|
304
|
+
parsed = literal_eval(input_str.replace("\n", ""))
|
|
305
|
+
return parsed
|
|
306
|
+
except:
|
|
307
|
+
pass
|
|
308
|
+
raise ValueError(f"Couldn't parse: {input_str}")
|
|
@@ -131,7 +131,25 @@ class REUtils:
|
|
|
131
131
|
return re.sub(pattern, lambda m: chars_to_map[m.group()], str(text))
|
|
132
132
|
|
|
133
133
|
|
|
134
|
+
@staticmethod
|
|
135
|
+
def find_digit_pattern(patten:str="string_{d}", string: str=""):
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
:param string:
|
|
139
|
+
:param patten:
|
|
140
|
+
:return:
|
|
141
|
+
>>> REUtils.find_digit_pattern("Season_\d", " 001_Emily_in_Paris _Season_4_Episode_7_Juliens_Printed_Tulle_Blazer_right.jpg")
|
|
142
|
+
'Season_4'
|
|
143
|
+
"""
|
|
144
|
+
|
|
145
|
+
find = re.search(patten, string)
|
|
146
|
+
if find:
|
|
147
|
+
return find.group()
|
|
148
|
+
|
|
149
|
+
|
|
134
150
|
if __name__ == "__main__":
|
|
135
151
|
str_ = "s12"
|
|
136
152
|
output = REUtils.split_char_number(str_)
|
|
137
153
|
print(output)
|
|
154
|
+
print()
|
|
155
|
+
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
from typing import Union
|
|
1
|
+
from typing import Union
|
|
2
|
+
from typing import List
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
class StringUtils:
|
|
@@ -26,9 +27,13 @@ class StringUtils:
|
|
|
26
27
|
return input_str
|
|
27
28
|
|
|
28
29
|
@staticmethod
|
|
29
|
-
def right_replace(input_str: str, replace: str, replace_with: str,count:int =
|
|
30
|
+
def right_replace(input_str: str, replace: Union[str, list[str]], replace_with: str, count: int = 1):
|
|
31
|
+
replace_list = [replace] if isinstance(replace, str) else replace
|
|
30
32
|
reverse_input_str = input_str[::-1]
|
|
31
|
-
reverse_replace = replace[::-1]
|
|
32
33
|
reverse_replace_with = replace_with[::-1]
|
|
33
|
-
|
|
34
|
+
for replace in replace_list:
|
|
35
|
+
reverse_replace = replace[::-1]
|
|
36
|
+
reverse_input_str = reverse_input_str.replace(reverse_replace,
|
|
37
|
+
reverse_replace_with,
|
|
38
|
+
count)
|
|
34
39
|
return reverse_input_str[::-1]
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: deep-utils
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.6
|
|
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.4.
|
|
9
|
+
Download-URL: https://github.com/pooya-mohammadi/deep_utils/archive/refs/tags/1.4.6.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>
|
|
@@ -178,7 +178,6 @@ deep_utils/utils/numpy_utils/__init__.py
|
|
|
178
178
|
deep_utils/utils/numpy_utils/numpy_utils.py
|
|
179
179
|
deep_utils/utils/object_utils/__init__.py
|
|
180
180
|
deep_utils/utils/object_utils/object_utils.py
|
|
181
|
-
deep_utils/utils/openai_utils/__init__.py
|
|
182
181
|
deep_utils/utils/opencv_utils/__init__.py
|
|
183
182
|
deep_utils/utils/opencv_utils/opencv_utils.py
|
|
184
183
|
deep_utils/utils/optimizers/__init__.py
|
|
@@ -189,6 +188,8 @@ deep_utils/utils/pickle_utils/__init__.py
|
|
|
189
188
|
deep_utils/utils/pickle_utils/pickle_utils.py
|
|
190
189
|
deep_utils/utils/postgresql_utils/__init__.py
|
|
191
190
|
deep_utils/utils/postgresql_utils/postgresql_utils.py
|
|
191
|
+
deep_utils/utils/prompt_utils/__init__.py
|
|
192
|
+
deep_utils/utils/prompt_utils/prompt_utils.py
|
|
192
193
|
deep_utils/utils/py_utils/__init__.py
|
|
193
194
|
deep_utils/utils/py_utils/py_utils.py
|
|
194
195
|
deep_utils/utils/qdrant_utils/__init__.py
|
|
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.4.4 → deep_utils-1.4.6}/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
|