Python package to generate 2D and 3D images using Generative Adversarial Networks and PyTorch
Project description
voxgan
voxgan is a Python package to generate 2D and 3D images using Generative Adversarial Networks and PyTorch. It was developed to help along the project FluvGAN, with no specific development planned beyond this project.
Installation
You can directly install voxgan from pip:
pip install voxgan
Or from GitHub using pip:
pip install git+https://github.com/grongier/voxgan.git
To run the Jupyter notebook in examples you will also need pandas, matplotlib, and jupyter, which you can install from pip too:
pip install pandas matplotlib jupyter
Usage
Here's a basic example of voxgan's API:
from voxgan.models.dcgan import DCGAN3d
# Define a PyTorch dataset for training
training_dataset = # TO DEFINE
# Define a GAN based on DCGAN, which includes generator and discriminator
gan = DCGAN3d()
# Configure the GAN for training, including the optimizers
gan.configure()
# Train the GAN
gan.train(training_dataset)
# Generate 10 samples
samples = gan.predict(num_samples=10)
For a more complete example, see the Jupyter notebook using_voxgan.ipynb in examples. For more advanced uses of voxgan, see FluvGAN.
Citation
If you use voxgan in your research, please cite the original article(s) describing the method(s) you used (see the docstrings for the references). You can also cite voxgan itself:
Rongier, G. (2021) voxgan. v1. CSIRO. Software Collection. https://doi.org/10.25919/cdgf-cw44
Here is the corresponding BibTex entry if you use LaTex:
@misc{Rongier2021,
author = "Rongier, Guillaume",
title = "voxgan",
number = "v1",
institution = "CSIRO",
type = "Software Collection",
year = "2021",
doi = "10.25919/cdgf-cw44"
}
Credits
This software was written by:
| Guillaume Rongier |
|---|
License
Copyright notice: Technische Universiteit Delft hereby disclaims all copyright interest in the program voxgan written by the Author(s). Prof.dr.ir. S.G.J. Aarninkhof, Dean of the Faculty of Civil Engineering and Geosciences
© 2021-2025, Guillaume Rongier
© 2020-2021, Commonwealth Scientific and Industrial Research Organisation (CSIRO) ABN 41 687 119 230
This work is licensed under a MIT OSS licence, see LICENSE for more information.
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 voxgan-0.0.2.tar.gz.
File metadata
- Download URL: voxgan-0.0.2.tar.gz
- Upload date:
- Size: 52.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
605dac36d1bc5cf836ed4a3a68aecc9d86a9ca086f7a7b05aa954bf982941150
|
|
| MD5 |
486848cd01aaf39fb567ba9e082f6af7
|
|
| BLAKE2b-256 |
0fcd2804b5aac8622cc3a4a52eb1848ffd4fee2c1f46b902148b0a4929bf8c5e
|
Provenance
The following attestation bundles were made for voxgan-0.0.2.tar.gz:
Publisher:
publish.yml on grongier/voxgan
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
voxgan-0.0.2.tar.gz -
Subject digest:
605dac36d1bc5cf836ed4a3a68aecc9d86a9ca086f7a7b05aa954bf982941150 - Sigstore transparency entry: 394405032
- Sigstore integration time:
-
Permalink:
grongier/voxgan@7a4a73e7fddd81f700c9e43f65dd9d663a894070 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/grongier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7a4a73e7fddd81f700c9e43f65dd9d663a894070 -
Trigger Event:
push
-
Statement type:
File details
Details for the file voxgan-0.0.2-py3-none-any.whl.
File metadata
- Download URL: voxgan-0.0.2-py3-none-any.whl
- Upload date:
- Size: 68.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84c44b4d97def7a736e35b8240d8fcb88984d622a40912991ad7fafb5764663a
|
|
| MD5 |
07387ba98d407a1e972753247082e3e3
|
|
| BLAKE2b-256 |
c673bd8ac303c0aedf4596ccb58e54e193ec1018b2076accd556dd5fab090f17
|
Provenance
The following attestation bundles were made for voxgan-0.0.2-py3-none-any.whl:
Publisher:
publish.yml on grongier/voxgan
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
voxgan-0.0.2-py3-none-any.whl -
Subject digest:
84c44b4d97def7a736e35b8240d8fcb88984d622a40912991ad7fafb5764663a - Sigstore transparency entry: 394405039
- Sigstore integration time:
-
Permalink:
grongier/voxgan@7a4a73e7fddd81f700c9e43f65dd9d663a894070 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/grongier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7a4a73e7fddd81f700c9e43f65dd9d663a894070 -
Trigger Event:
push
-
Statement type: