lightning/pl_examples
Indrayana Rustandi 6e5f232f5c
Add Dali MNIST example (#3721)
* add MNIST DALI example, update README.md

* Fix PEP8 warnings

* reformatted using black

* add mnist_dali to test_examples.py

* Add documentation as docstrings

* add nvidia-pyindex and nvidia-dali-cuda100

* replace nvidia-pyindex with --extra-index-url

* mark mnist_dali test as Linux and GPU only

* adjust CUDA docker and examples.txt, fix import error in test_examples.py

* adjust the GPU check

* Exit when DALI is not available

* remove requirements-examples.txt and DALI pip install

* Refactored example, moved to new logging api, added runtime check for test and dali script

* Patch to reflect the mnist example module

* add req.

* Apply suggestions from code review

* Removed requirement as it breaks CPU install, added note in README to install DALI

* add DALI to Drone

* test examples

* Apply suggestions from code review

* imports

* ABC

* cuda

* cuda

* pip DALI

* Move build into init function

Co-authored-by: SeanNaren <sean@grid.ai>
Co-authored-by: Jirka Borovec <jirka@pytorchlightning.ai>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Sean Naren <sean.narenthiran@gmail.com>
2020-11-06 14:53:46 +00:00
..
basic_examples Add Dali MNIST example (#3721) 2020-11-06 14:53:46 +00: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
bug_report_model.py feature/ Add note about Argparse. (#4321) 2020-11-03 23:40:51 +06:30
test_examples.py Add Dali MNIST example (#3721) 2020-11-06 14:53:46 +00: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.