Skip to main content

AI-Tianlong的Tools打包,开箱即用

Project description

ATLtools 使用指南

1. 简介

ATL_Tools 是一个由AI-Tianlong开发的工具集合,包含一些便利的小工具,发布的目的是为了方便自己使用。

2. 使用方法

2.1. ATL_path

ATL_path 是一个用于获取文件夹内数据集绝对路径以及创建文件夹的小工具,可以获取当前文件内符合后缀名文件的绝对路径,以及替代os.path.exist()os.mkdir()创建文件夹。

有以下两个主要的功能:

  • 创建文件夹:
    mkdir_or_exist(xxxx) # 创建文件夹, 存在则不创建
    
  • 寻找所有符合后缀文件夹名称(绝对路径):
    find_data_list(img_root_path: str, suffix: str ='.jpg') # 返回所有后缀为.jpg的文件绝对路径
    

使用方法:

from ATL_Tools import mkdir_or_exist, find_data_list
#创建文件夹
mkdir_or_exist('新文件夹名称')
#获取文件夹内所有后缀为.jpg的文件绝对路径
img_lists = find_data_list(img_root_path='数据集文件夹路径', suffix ='.jpg')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ATL_Tools-1.0.2.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

ATL_Tools-1.0.2-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page