Skip to main content

深度学习实验跟踪和框架集成工具

Project description

SeeTrain

SeeTrain 是一个强大的深度学习实验跟踪和框架集成工具,提供统一的接口来适配各种深度学习框架,实现无缝的实验管理和数据记录。

注意: 本包在 PyPI 上的名称为 seetrain-ml,请使用 pip install seetrain-ml 进行安装。

✨ 特性

  • 🔗 多框架集成 - 支持 PyTorch Lightning、TensorFlow/Keras、Hugging Face、MMEngine 等主流框架
  • 📊 统一实验跟踪 - 提供一致的 API 来记录指标、图像、音频、文本等多媒体数据
  • 🎯 多种适配模式 - Callback、Tracker、VisBackend、Autolog 四种集成模式
  • 🚀 自动日志记录 - 支持 OpenAI、智谱 AI 等 API 的自动拦截和记录
  • 📈 实时监控 - 硬件资源监控、性能指标跟踪
  • 🎨 丰富可视化 - 基于 Rich 库的美观终端输出

🚀 快速开始

安装

pip install seetrain-ml

验证安装

import seetrain
print(f"SeeTrain version: {seetrain.__version__}")
print("SeeTrain 安装成功!")

基本使用

from seetrain import init, log, log_scalar, log_image, finish

# 初始化实验
experiment = init(
    project="my_project",
    experiment_name="experiment_1",
    description="我的第一个实验"
)

# 记录标量指标
log_scalar('loss', 0.5, step=100)
log_scalar('accuracy', 0.95, step=100)

# 记录图像
import numpy as np
image = np.random.rand(224, 224, 3)
log_image('prediction', image, step=100)

# 记录字典数据
log({
    'train/loss': 0.3,
    'train/accuracy': 0.98,
    'val/loss': 0.4,
    'val/accuracy': 0.96
}, step=100)

# 完成实验
finish()

多媒体数据记录

# 记录音频
import numpy as np
audio_data = np.random.randn(16000)  # 1秒的音频
log_audio('speech', audio_data, sample_rate=16000, step=100)

# 记录文本
log_text('prediction', "这是一个预测结果", step=100)

# 记录视频
video_frames = np.random.rand(10, 224, 224, 3)  # 10帧视频
log_video('animation', video_frames, fps=30, step=100)

配置管理

from seetrain import update_config

# 记录超参数
update_config({
    'learning_rate': 0.001,
    'batch_size': 32,
    'model_architecture': 'ResNet50',
    'optimizer': 'Adam'
})

📦 安装选项

基础安装

pip install seetrain-ml

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

seetrain_ml-0.1.2.tar.gz (8.0 MB view details)

Uploaded Source

Built Distribution

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

seetrain_ml-0.1.2-py3-none-any.whl (112.2 kB view details)

Uploaded Python 3

File details

Details for the file seetrain_ml-0.1.2.tar.gz.

File metadata

  • Download URL: seetrain_ml-0.1.2.tar.gz
  • Upload date:
  • Size: 8.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for seetrain_ml-0.1.2.tar.gz
Algorithm Hash digest
SHA256 53481115bb60eb08464d88e02a982b1120757b016609de2d085536ab7c688460
MD5 d2acd298137aee25a947a8a586ab10aa
BLAKE2b-256 fbf8872488b6629a38972e0546336d8770ac54fc0dc8eaa66b87845ada9cb2f6

See more details on using hashes here.

File details

Details for the file seetrain_ml-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: seetrain_ml-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 112.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for seetrain_ml-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0262292027671c688461fc0ec582260313902b93c62c9175d642970cf68a05d
MD5 cd4655c1960759d4036960b1cfa856ba
BLAKE2b-256 6ab0d94efa0baf63ac3b2ae2271407716b355461760e86d127c0c1346bab9ed9

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