lightning/pl_examples
Sahin Kureta 90bb7b1fbb
update examples (#4233)
* Removed image generation inside the training step.

It was overwriting the image grid generated in `on_epoch_end`. I also made `adversarial_loss` a static method.

* Incorporated Hyperparameter best practices

Using ArgumentParser and hparams as defined in the Hyperparameters section of
the documentation. This way we can set trainer flags (such as precision,
and gpus) from the command line.

* Incorporated Hyperparameter best practices

Using ArgumentParser and hparams as defined in the Hyperparameters section of
the documentation. This way we can set trainer flags (such as precision,
and gpus) from the command line.

* Split the data part into a LightningDataModule

* Update pl_examples/domain_templates/generative_adversarial_net.py

Co-authored-by: Jeff Yang <ydcjeff@outlook.com>
2020-10-21 18:07:18 +02:00
..
basic_examples ref: remove weight loading hack for ddp_cpu (#3808) 2020-10-02 19:28:50 -04:00
domain_templates update examples (#4233) 2020-10-21 18:07:18 +02:00
README.md Update README.md 2020-09-23 00:21:53 -04:00
__init__.py fix dp issues + update examples and test examples (#3618) 2020-09-23 00:19:46 -04:00
bug_report_model.py added bug report model (#3901) 2020-10-06 09:05:20 -04:00
test_examples.py test examples (#3643) 2020-09-24 17:33:11 +02:00

README.md

Examples

Our most robust examples showing all sorts of implementations can be found in our sister library PyTorch-Lightning-Bolts.


Basic examples

In this folder we add 3 simple examples:


Domain examples

This folder contains older examples. You should instead use the examples in PyTorch-Lightning-Bolts for advanced use cases.