Back to Annotated Deep Learning Paper Implementations

Experiment

labml_nn/gan/original/experiment.ipynb

latest1.0 KB
Original Source

DCGAN

This is an experiment training DCGAN model.

Install the labml-nn package

python
!pip install labml-nn

Imports

python

from labml import experiment
from labml_nn.gan.original.experiment import Configs

Create an experiment

python
experiment.create(name="mnist_gan")

Initialize configurations

python
conf = Configs()

Set experiment configurations and assign a configurations dictionary to override configurations

python
experiment.configs(conf,
                   {'label_smoothing': 0.01})

Start the experiment and run the training loop.

python
with experiment.start():
    conf.run()