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

Uploaded Python 3

File details

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

File metadata

  • Download URL: seetrain_ml-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c5c6bbef495aab42bc9035720db47ae1da425025baaf251b1fdb7cd791fe9ca3
MD5 949d40e77ad60955c5ef43fb0e11f66f
BLAKE2b-256 51ac6ac2bab1521aa174e35fab050a033e3a0fb11e3b0d79c44d8c429b2225e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seetrain_ml-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4190046865c57cafc80ce42e18e4ee435294c23658c1c9bdc49496f7ff8fa51c
MD5 b56bb34cfcf31ccb896503686e2ad6da
BLAKE2b-256 bd6a7d166c00c4c727d7e3894d4449c348aae6028802e6bc75230f78028d0a8f

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