Skip to main content

An assistant for training and analyzing deep learning models in PyTorch.

Project description

README.md

DLCopilot 🚀

DLCopilot is your assistant for training and analyzing deep learning models in PyTorch. It provides a simple and extensible interface for visualizing model structure, input-output dimensions, training progress, and performance metrics — making your development process faster and more intuitive.


📦 Features

  • 🔍 Inspect model layer-wise shapes and input-output dimensions
  • 📊 Visualize class distribution in datasets
  • 📈 Track and plot training and validation loss
  • 🧪 Easy integration with your PyTorch training loop
  • ✅ Lightweight and modular design

🛠️ Installation

Clone the repository and install the dependencies:

git clone https://github.com/KIREN2612/dlcopilot.git
cd dlcopilot
pip install -r requirements.txt

You can also install as a package (for development):

pip install -e .

🧪 Example Usage

from dlcopilot import DLCopilot
from your_model import MyModel  # Replace with your model
from torch.utils.data import DataLoader

# Initialize model, optimizer, loss, data loaders
model = MyModel()
optimizer = torch.optim.Adam(model.parameters())
criterion = torch.nn.CrossEntropyLoss()
train_loader = DataLoader(...)
val_loader = DataLoader(...)

# Create DLCopilot instance
copilot = DLCopilot(model, optimizer, criterion, train_loader, val_loader)

# Inspect architecture
copilot.inspect_input_output_shapes()
copilot.inspect_layer_shapes()

# Analyze data
copilot.class_distribution()

# Train and visualize
copilot.train_and_analyze(epochs=5)

See docs/usage.md for full examples.


🧪 Testing

Run tests with:

pytest tests/

Make sure to set the PYTHONPATH to the root of the project if needed:

export PYTHONPATH=$(pwd)  # On Linux/macOS
$env:PYTHONPATH = (Get-Location)  # On Windows PowerShell

📄 Documentation


🧑‍💻 Author

Kiren 📧 kiren2612@gmail.com 🔗 github.com/KIREN2612


📜 License

This project is licensed under the terms of the MIT License. See LICENSE for more details.

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

dlcopilot-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

dlcopilot-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file dlcopilot-0.1.0.tar.gz.

File metadata

  • Download URL: dlcopilot-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for dlcopilot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b9bb9eddf683d11232aada6111c3f2d84f355c46fc5bbba3ed193c1949ca4dd6
MD5 fc7daea39057c24ae9d13bde7b9ba9de
BLAKE2b-256 d5b6089f5a2c194911798a1515016e6c6c4ef29d02ed6dd126691e185808a38b

See more details on using hashes here.

File details

Details for the file dlcopilot-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dlcopilot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for dlcopilot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7c44792c3407c79d08f5c59b9ea4a77fb6806fb2e34b0bd30c6b7991c3b638a
MD5 63c6c7fe19092eb3e11cc066f019fed4
BLAKE2b-256 3bcaa11bd848146429e20b740a34fa1ece8160770248124ce9dcb2bb4ed0194e

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