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.4.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.4-py3-none-any.whl (112.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: seetrain_ml-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 808296490ecb405b57c6dff30f404c006f483ab4cc7f922241893a7570f64e93
MD5 05344ba4299a6fd4f0dd5a47b7e76d7b
BLAKE2b-256 b43efcfd18c0141572bccafff60413187f7cf96e1bf5b57dab810e1f072b89f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seetrain_ml-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 112.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 67445fd19a109e3d866696918e96251fb67e71682812e9870a8948b09b536c0c
MD5 ac0b18639ec62649c19b1d8bcfa78a07
BLAKE2b-256 1e34a8a76354624f31a281018de864a772e565a27112eeebe6b8c340dcc9bb46

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