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.
Release files for voxgan 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| voxgan-0.0.2.tar.gz | 52.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| voxgan-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 121.3 kB
Release files / voxgan-0.0.2.tar.gz
| Download URL | voxgan-0.0.2.tar.gz |
|---|---|
| Size | 52.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
605dac36d1bc5cf836ed4a3a68aecc9d86a9ca086f7a7b05aa954bf982941150
|
|
BLAKE2b-256 checksum How to use checksums |
0fcd2804b5aac8622cc3a4a52eb1848ffd4fee2c1f46b902148b0a4929bf8c5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2025.
Transparency logRelease files / voxgan-0.0.2-py3-none-any.whl
| Download URL | voxgan-0.0.2-py3-none-any.whl |
|---|---|
| Size | 68.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84c44b4d97def7a736e35b8240d8fcb88984d622a40912991ad7fafb5764663a
|
|
BLAKE2b-256 checksum How to use checksums |
c673bd8ac303c0aedf4596ccb58e54e193ec1018b2076accd556dd5fab090f17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2025.
Transparency log