Skip to content

Commit

Permalink
fix require in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jun 28, 2021
1 parent d613041 commit 3483600
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .actions/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def augment_script(fpath: str):

header = TEMPLATE_HEADER % meta
requires = set(default_requirements() + meta["requirements"])
setup = TEMPLATE_SETUP % dict(requirements=" ".join(requires))
setup = TEMPLATE_SETUP % dict(requirements=" ".join([f'"{req}"' for req in requires]))
py_file = [header + setup] + py_file + [TEMPLATE_FOOTER]

with open(fpath, "w") as fp:
Expand Down
1 change: 1 addition & 0 deletions lightning_examples/augmentation_kornia/.meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ author: PL/Kornia team
created: 2021-06-11
updated: 2021-06-16
license: CC BY-SA
build: 0
description: |
In this tutorial we will show how to combine both Kornia.org and PyTorch Lightning
to perform efficient data augmentation to train a simpple model using the GPU in batch
Expand Down
1 change: 1 addition & 0 deletions lightning_examples/basic-gan/.meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ author: PL team
created: 2020-12-21
updated: 2021-06-16
license: CC BY-SA
build: 0
description: |
How to train a GAN!
Expand Down
1 change: 1 addition & 0 deletions lightning_examples/cifar10-baseline/.meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ author: PL team
created: 2020-12-21
updated: 2021-06-16
license: CC BY-SA
build: 0
description: >
Train a Resnet to 94% accuracy on Cifar10!
requirements:
Expand Down
1 change: 1 addition & 0 deletions lightning_examples/datamodules/.meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ author: PL team
created: 2020-12-21
updated: 2021-06-07
license: CC BY-SA
build: 0
description: This notebook will walk you through how to start using Datamodules. With
the release of `pytorch-lightning` version 0.9.0, we have included a new class called
`LightningDataModule` to help you decouple data related hooks from your `LightningModule`.
Expand Down
1 change: 1 addition & 0 deletions lightning_examples/mnist-hello-world/.meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ author: PL team
created: 2020-12-21
updated: 2021-06-16
license: CC BY-SA
build: 0
description: In this notebook, we'll go over the basics of lightning by preparing
models to train on the [MNIST Handwritten Digits dataset](https://en.wikipedia.org/wiki/MNIST_database).
requirements:
Expand Down
1 change: 1 addition & 0 deletions lightning_examples/reinforce-learning-DQN/.meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ author: PL team
created: 2021-01-31
updated: 2021-06-17
license: CC BY-SA
build: 0
description: |
Main takeaways:
Expand Down
1 change: 1 addition & 0 deletions lightning_examples/text-transformers/.meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ author: PL team
created: 2021-01-31
updated: 2021-06-21
license: CC BY-SA
build: 0
description: |
This notebook will use HuggingFace's `datasets` library to get data, which will be wrapped in a `LightningDataModule`.
Then, we write a class to perform text classification on any dataset from the [GLUE Benchmark](https://gluebenchmark.com/).
Expand Down
2 changes: 1 addition & 1 deletion template/.meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ author: PL team
created: 2021-06-15
updated: 2021-06-17
license: CC
build: 0
description: |
This is a template to show how to contribute a tutorial.
requirements:
- pytorch-lightning
- matplotlib
accelerator:
- CPU
Expand Down

0 comments on commit 3483600

Please sign in to comment.