Skip to main content

Some tools for AI model training and inference.

Project description

tools_zyVersion MIT License

此工具包旨在给AI工作者提供一把趁手的工具,尽量简化非核心的工作。
其中包含深度学习模型过程中可能会用到的一些工具,比如数据整理、格式转换、划分数据集等。

因此也要注意,其中某些函数可能并没有提供过多自由度,如果需要,请自行修改。

安装

$ pip install tools-zy

使用

含有的功能示例如下:

import tools_zy as tz

# 复制、移动文件夹中以.bmp结尾的文件。(还支持指定文件名,支持递归操作)
tz.copy_file("/home/org_folder", "/home/new_folder", format=".bmp")
tz.move_file("/home/org_folder", "/home/new_folder", format=".bmp")

# 获取(复制、移动)文件夹中以.bmp结尾的一些随机文件。
tz.copy_some_random_files("/home/org_folder", "/home/new_folder", 1000, format='.bmp')

# 划分分类数据集
img_folder = r"/home/classify/rawData"
out_folder = r"/home/classify/splitData"
tz.split_classifid_images(img_folder, out_folder, (0.8, 0.2, 0), format=".bmp")

License

MIT

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

tools_zy-0.1.6.12.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tools_zy-0.1.6.12-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file tools_zy-0.1.6.12.tar.gz.

File metadata

  • Download URL: tools_zy-0.1.6.12.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for tools_zy-0.1.6.12.tar.gz
Algorithm Hash digest
SHA256 e3b33962d39c980cf732329ba13cddd26c67a51522af790c8b375c9f262d096f
MD5 50b4c5b2d3f6715dbb9aab080adb4a49
BLAKE2b-256 3fbc067cafc9333f602c0adc51b2658bd7d80822e5f6e88eb88ce310a3bdced8

See more details on using hashes here.

File details

Details for the file tools_zy-0.1.6.12-py3-none-any.whl.

File metadata

  • Download URL: tools_zy-0.1.6.12-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for tools_zy-0.1.6.12-py3-none-any.whl
Algorithm Hash digest
SHA256 2dd6a34efe5005f5101dd1cd232d04ac546fe3fe30f5b381c997cf0663b6854e
MD5 5e287d668b4a10b9ce5da38eb810b971
BLAKE2b-256 68e5c37f7aa6716600e74f692ccc3afdb2c72be5ff5e0f21cca84ced3ef15b3a

See more details on using hashes here.

Supported by

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