deepfake-gitract
Generate deepfake-gitract images.
Installation
Use the package manager pip to install deepfake-gitract.
pip install deepfake-gitract
Usage
Run on CPU (default setting)
TBA - You have to have a NVIDIA GPU to run this package. We are working on CPU version.
Run on GPU - generation process
import deepfake_gitract
deepfake_gitract.generate(name, result_dir, checkpoint_dir, num_img_per_tile, num_of_outputs, trunc_psi=0.75):
""" Generate deepfake Gastrointestinal tract images.
Keyword arguments:
name -- Any name to keep trac of generations
result_dir -- A directory to save output
checkpoint_dir -- A directory to download pre-trained checkpoints
num_img_per_tile -- Number of images per dimenstion of the grid
num_of_outputs -- Number of outputs to generate
trunc_psi -- value between 0.5 and 1.0 (default 0.75)
"""
Run on GPU - to generate interpolations between random points
deepfake_gitract. generate_interpolation(name, result_dir, checkpoint_dir, num_img_per_tile, num_of_outputs, num_of_steps_to_interpolate, save_frames, trunc_psi=0.75):
""" Generate deepfake Gastrointestinal tract images.
Keyword arguments:
name -- Any name to keep trac of generations
result_dir -- A directory to save output
checkpoint_dir -- A directory to download pre-trained checkpoints
num_img_per_tile -- Number of images per dimenstion of the grid
num_of_outputs -- Number of outputs to generate
num_of_steps_to_interpolate -- Number of step between two random points
save_frames -- True if you want frame by frame, otherwise .gif will be generated
trunc_psi -- value between 0.5 and 1.0 (default 0.75)
"""
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
For more details:
Please contact: vajira@simula.no, michael@simula.no
License
Metadata
Release files for deepfake-gitract 1.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 | Provenance | Actions |
|---|---|---|---|---|
| deepfake-gitract-1.0.2.tar.gz | 4.2 kB | Without provenance | Details for deepfake-gitract-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deepfake_gitract-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for deepfake_gitract-1.0.2-py3-none-any.whl |
Total release size: 9.5 kB
Release files / deepfake-gitract-1.0.2.tar.gz
| Download URL | deepfake-gitract-1.0.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d55d7b4d1606dccceaf9f42be4fb3d20530e67daa6c8cc1c6d339ddb3b7b1fbc
|
|
BLAKE2b-256 checksum How to use checksums |
d755edf8b559df601a83c06613f4385c59a56be43a85caff5ff3e30f81d7f976
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Release files / deepfake_gitract-1.0.2-py3-none-any.whl
| Download URL | deepfake_gitract-1.0.2-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6bba7efca5c4d3befc6526a2fe8c8d34a4449c5ce47f4978b87f43839a2ee49
|
|
BLAKE2b-256 checksum How to use checksums |
017f93c809a936add747425223565a1a72de2e0bd15594d17d0d8f0e00530b9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Security for deepfake-gitract 1.0.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.