A PyTorch library for multi-modal image translation with diffusion bridges, GANs, and transformer backbones.
Project description
pytorch-image-translation-models
A PyTorch library for multi-modal image translation with diffusion bridges, GANs, and transformer backbones.
Installation
Install from PyPI
pip install pytorch-image-translation-models
Install from source
pip install -e .
With optional dependencies:
# With training extras (accelerate, peft, datasets, tensorboard)
pip install -e ".[training]"
# With metrics extras (torchmetrics, lpips, torch-fidelity, scipy)
pip install -e ".[metrics]"
# Everything
pip install -e ".[all]"
Note: PyTorch is listed as a dependency but you may want to install a specific CUDA build first. See PyTorch — Get Started for details.
Quick Start
import src
gen = src.UNetGenerator(in_channels=3, out_channels=3)
disc = src.PatchGANDiscriminator(in_channels=6)
from src.training import Pix2PixTrainer, TrainingConfig
config = TrainingConfig(epochs=100, device="cuda")
trainer = Pix2PixTrainer(gen, disc, config)
trainer.fit(dataloader) # expects {"source": tensor, "target": tensor}
translator = src.ImageTranslator(gen, device="cuda")
result = translator.predict(pil_image)
Documentation
| Doc | Description |
|---|---|
| Features | Models, schedulers, pipelines, data, losses, training, metrics |
| Examples | Extended usage for I2SB, DDBM, UNSB, Local Diffusion, etc. |
| Package structure | Source layout and module overview |
| Credits | Reference papers and citations |
License
MIT
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
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 pytorch_image_translation_models-0.2.4.tar.gz.
File metadata
- Download URL: pytorch_image_translation_models-0.2.4.tar.gz
- Upload date:
- Size: 152.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f69e8fcdaab7e182853c44c69b5141fac292f60a7d554cac7a9c42b506013e9
|
|
| MD5 |
8bf3fc765b5e04e6ae90e1412cfaf40e
|
|
| BLAKE2b-256 |
5f9a2bacb376d56ba67ae7c992a95f44f588e93770c98c25a38318046efff1c7
|
Provenance
The following attestation bundles were made for pytorch_image_translation_models-0.2.4.tar.gz:
Publisher:
publish.yml on Bili-Sakura/pytorch-image-translation-models
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytorch_image_translation_models-0.2.4.tar.gz -
Subject digest:
8f69e8fcdaab7e182853c44c69b5141fac292f60a7d554cac7a9c42b506013e9 - Sigstore transparency entry: 1058940509
- Sigstore integration time:
-
Permalink:
Bili-Sakura/pytorch-image-translation-models@05e0aab24c1df4d5429cdb608faeeda0d976e756 -
Branch / Tag:
refs/tags/0.2.4 - Owner: https://github.com/Bili-Sakura
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@05e0aab24c1df4d5429cdb608faeeda0d976e756 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pytorch_image_translation_models-0.2.4-py3-none-any.whl.
File metadata
- Download URL: pytorch_image_translation_models-0.2.4-py3-none-any.whl
- Upload date:
- Size: 183.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32c7b0353820f7520a70c68bee02b0a3f213f7f75a1ca5bc8489448e8462257b
|
|
| MD5 |
683eda3d97b039cd18cf384c569da60f
|
|
| BLAKE2b-256 |
9f26f31f49c91eebd9c2a2f5aaa4ae640906030281e8d161193063039732dd28
|
Provenance
The following attestation bundles were made for pytorch_image_translation_models-0.2.4-py3-none-any.whl:
Publisher:
publish.yml on Bili-Sakura/pytorch-image-translation-models
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytorch_image_translation_models-0.2.4-py3-none-any.whl -
Subject digest:
32c7b0353820f7520a70c68bee02b0a3f213f7f75a1ca5bc8489448e8462257b - Sigstore transparency entry: 1058940511
- Sigstore integration time:
-
Permalink:
Bili-Sakura/pytorch-image-translation-models@05e0aab24c1df4d5429cdb608faeeda0d976e756 -
Branch / Tag:
refs/tags/0.2.4 - Owner: https://github.com/Bili-Sakura
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@05e0aab24c1df4d5429cdb608faeeda0d976e756 -
Trigger Event:
release
-
Statement type: