gai-lab-ese
Generative-AI lab experiments (GAI Lab ESE) as a pip package: the exact code of every notebook as a .txt/.py file, a full theory + code walkthrough + viva questions for each experiment, the original notebooks, and music.wav.
Install
pip install --upgrade gai-lab-ese # code + theory
pip install --upgrade "gai-lab-ese[all]" # + everything needed to run all experiments
pip install --upgrade "gai-lab-ese[tf]" # Exp 1, 2, 5, 9
pip install --upgrade "gai-lab-ese[hf]" # Exp 3, Prac
pip install --upgrade "gai-lab-ese[audio]" # Exp 6
pip install --upgrade "gai-lab-ese[cyclegan]" # Exp 7
Colab / Jupyter: put ! in front, e.g. !pip install --upgrade gai-lab-ese and !gai-lab-ese --list.
Command line
gai-lab-ese --list # list experiments
gai-lab-ese --show vae # title + theory + full source
gai-lab-ese --theory vae # only theory / viva explanation
gai-lab-ese --code vae # only code
gai-lab-ese --save vae --out vae.py
gai-lab-ese --save-all --out gai_code # all: .py, .txt, theory and original notebooks
gai-lab-ese --data --out gai_data # datasets
gai-lab-ese --all --out gai_all # code + theory + datasets in one folder
gai-lab-ese --run vae # run an experiment
Python
from gai_lab_ese import list_experiments, show_experiment, get_source, get_theory, save_experiment, save_all, run_experiment, download_all
list_experiments()
show_experiment("vae") # title, theory, then the full Python source
print(get_theory("vae")) # viva explanation only
code = get_source("vae")
save_experiment("vae", "vae.py")
download_all("gai_all")
Experiments
| # | Name (aliases) | Experiment |
|---|---|---|
| 1 | vae (exp1, autoencoder, ae) |
Autoencoder + Variational Autoencoder on MNIST (TensorFlow/Keras) |
| 2 | gan (exp2) |
GAN on MNIST (TensorFlow) |
| 3 | gpt2_finetune (exp3, gpt2, text_generation, finetune) |
Fine-tuning DistilGPT2 on AI text + sampling strategies (Hugging Face) |
| 5 | deepfake (exp5, faceswap, deepfake_ae) |
Autoencoder DeepFake: shared encoder + two decoders (MNIST 6 <-> 8) |
| 6 | music (exp6, jukebox, audio) |
Generated music analysis: WAV check, waveform, spectrogram |
| 7 | cyclegan (exp7, style_transfer, horse2zebra) |
CycleGAN Horse2Zebra style transfer (TensorFlow) |
| 9 | diffusion (exp9, ddpm) |
Simple DDPM diffusion model on 2-D data (TensorFlow) |
| P | prac (practice, gpt2_practice) |
Practice: DistilGPT2 fine-tuning (Hugging Face) |
| E1 | markov (markov_chain, text_markov, e1) |
Text generation with Markov chains (random only, offline) |
| E2 | genetic_image (genetic, ga, genetic_algorithm, e2) |
Image generation with a genetic algorithm (numpy + matplotlib, offline) |
| E3 | evolution_image (evolution, evolutionary, hill_climb, e3) |
Evolutionary vector image generator (numpy only, offline) |
Experiments E1-E3 (Markov chain text, genetic-algorithm image, evolutionary image) are 100% offline and need only random / numpy / matplotlib. Original notebooks: gai-lab-ese --notebook vae (saves Exp1.ipynb). In Colab, Colab already has TensorFlow, PyTorch and transformers, so pip install gai-lab-ese is enough.
See PUBLISHING.md for how to upload this package to PyPI.
License
MIT
Metadata
Release files for gai-lab-ese 1.1.0
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 |
|---|---|---|---|---|
| gai_lab_ese-1.1.0.tar.gz | 5.3 MB | Without provenance | Details for gai_lab_ese-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gai_lab_ese-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for gai_lab_ese-1.1.0-py3-none-any.whl |
Total release size: 10.6 MB
Release files / gai_lab_ese-1.1.0.tar.gz
| Download URL | gai_lab_ese-1.1.0.tar.gz |
|---|---|
| Size | 5.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a749511368ffd8fc6d19dc55880ea1988dc1ab7f0d7ae13b8741c1448b94824b
|
|
BLAKE2b-256 checksum How to use checksums |
44d19b013c902db3bcb51a147ae95e97ddb2d94a9a1032d0713a0f9c92c3c379
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Release files / gai_lab_ese-1.1.0-py3-none-any.whl
| Download URL | gai_lab_ese-1.1.0-py3-none-any.whl |
|---|---|
| Size | 5.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d79e8f00232c2b89679cea21e4023b4df7118a05b872e800d7b07943d5e069b
|
|
BLAKE2b-256 checksum How to use checksums |
414681a8dcf8dc32e560aa4d9a5731dcf8b1d01727c94808743f1eecec53a77c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Security for gai-lab-ese 1.1.0
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.