SWAN is a library for training and deploying state-of-the-art deep learning models in PyTorch.
Project description
# SWAN: Switchable Activation Networks
Overview
Swan is fun
Requirements
- Python 3.8+
- PyTorch
- Torchvision
- NumPy
Installation
Clone the repository and install the required dependencies:
git clone <repository-url>
cd SWAN
python -m pip uninstall -y torch-swan torch_swan
python -m pip install -e .
Or install via pip:
pip install torch_swan
import torch_swan as swan
Examples
python main.py mnist --device mps --epochs 5
nohup python main.py vgg16 --epochs 50 --device npu --threshold 0.6 --resize 224 --batch_size 200 > train.log 2>&1 &
nohup python main.py vgg16 --epochs 50 --device gpu --threshold 0.6 --resize 224 --batch_size 256 --pretrained False > train.log 2>&1 &
```</file>
<file name=pyproject.toml>[tool.hatch.build.targets.wheel]
packages = ["src/torch_swan"]
include = ["logo.png"]
[tool.hatch.build.targets.sdist]
include = [
"src/torch_swan",
"README.md",
"LICENSE",
]
</file>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
torch_swan-0.0.11.tar.gz
(156.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file torch_swan-0.0.11.tar.gz.
File metadata
- Download URL: torch_swan-0.0.11.tar.gz
- Upload date:
- Size: 156.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
830c8e0b78f6a50fc431f30498fc7f3016da39c42c4225e6dfd3cf31346d2e2c
|
|
| MD5 |
3a7b1ebd4e544cf3abdf85b1663bced9
|
|
| BLAKE2b-256 |
1099055b82a104835e5f74381baa55262732be875aa3979732d19660f714d597
|
File details
Details for the file torch_swan-0.0.11-py3-none-any.whl.
File metadata
- Download URL: torch_swan-0.0.11-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b64f17c55b52e1a3ef3e08b472599656e9cec7d3ae5fe720e47cfc29330f246a
|
|
| MD5 |
b1f6c7ead175feb3b34da0381dd5ed66
|
|
| BLAKE2b-256 |
520c5c30bda90ac359e7263d3fcf6d10ae46e1f9d0a6beb70315736abe77b3e5
|