Skip to main content

Python package to generate 2D and 3D images using Generative Adversarial Networks and PyTorch

Project description

voxgan

DOI:10.25919/cdgf-cw44

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
ORCID Badge

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

voxgan-0.0.2.tar.gz (52.5 kB view details)

Uploaded Source

Built Distribution

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

voxgan-0.0.2-py3-none-any.whl (68.7 kB view details)

Uploaded Python 3

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

Hashes for voxgan-0.0.2.tar.gz
Algorithm Hash digest
SHA256 605dac36d1bc5cf836ed4a3a68aecc9d86a9ca086f7a7b05aa954bf982941150
MD5 486848cd01aaf39fb567ba9e082f6af7
BLAKE2b-256 0fcd2804b5aac8622cc3a4a52eb1848ffd4fee2c1f46b902148b0a4929bf8c5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for voxgan-0.0.2.tar.gz:

Publisher: publish.yml on grongier/voxgan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for voxgan-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 84c44b4d97def7a736e35b8240d8fcb88984d622a40912991ad7fafb5764663a
MD5 07387ba98d407a1e972753247082e3e3
BLAKE2b-256 c673bd8ac303c0aedf4596ccb58e54e193ec1018b2076accd556dd5fab090f17

See more details on using hashes here.

Provenance

The following attestation bundles were made for voxgan-0.0.2-py3-none-any.whl:

Publisher: publish.yml on grongier/voxgan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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