From 18de9b23510285be05fc66fb640d70919334e0eb Mon Sep 17 00:00:00 2001 From: chaton Date: Tue, 2 Feb 2021 15:42:14 +0000 Subject: [PATCH 1/2] update (#51) * update * update changelog --- CHANGELOG.md | 8 +++++++- flash/__init__.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87b983c22e..33acb92708 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,16 +5,22 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). -## [0.1.0] - 01/02/2021 +## [0.1.0] - 02/02/2021 ### Added + - Added flash_notebook examples ([#9](https://github.com/PyTorchLightning/lightning-flash/pull/9)) - Added `strategy` to `trainer.finetune` with `NoFreeze`, `Freeze`, `FreezeUnfreeze`, `UnfreezeMilestones` Callbacks([#39](https://github.com/PyTorchLightning/lightning-flash/pull/39)) +- Added `SummarizationData`, `SummarizationTask` and `TranslationData`, `TranslationTask` ([#37](https://github.com/PyTorchLightning/lightning-flash/pull/37)) + + +- Added `ImageEmbedder` ([#36](https://github.com/PyTorchLightning/lightning-flash/pull/36)) + ### Changed diff --git a/flash/__init__.py b/flash/__init__.py index 29132c946c..48c4b44d40 100644 --- a/flash/__init__.py +++ b/flash/__init__.py @@ -14,7 +14,7 @@ """Root package info.""" import os -__version__ = "0.1.0rc2" +__version__ = "0.1.0" __author__ = "PyTorchLightning et al." __author_email__ = "name@pytorchlightning.ai" __license__ = 'Apache-2.0' From 58d3a847822975e08d2f0641f8f92e592cb45973 Mon Sep 17 00:00:00 2001 From: Jirka Borovec Date: Tue, 2 Feb 2021 17:35:16 +0100 Subject: [PATCH 2/2] CI: update docs (#52) * ci: update docs * mocks * p1 * add filelock * req * revert Thomas * . Co-authored-by: tchaton --- .github/workflows/docs-check.yml | 1 - docs/source/conf.py | 7 +++++-- flash/__init__.py | 2 +- requirements.txt | 5 +++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs-check.yml b/.github/workflows/docs-check.yml index 5224e53523..479fcdc063 100644 --- a/.github/workflows/docs-check.yml +++ b/.github/workflows/docs-check.yml @@ -45,7 +45,6 @@ jobs: - name: Install dependencies run: | - pip install . --upgrade-strategy only-if-needed --find-links https://download.pytorch.org/whl/cpu/torch_stable.html --quiet pip install --requirement requirements/docs.txt # install Texlive, see https://linuxconfig.org/how-to-install-latex-on-ubuntu-20-04-focal-fossa-linux sudo apt-get update && sudo apt-get install -y texlive-latex-extra dvipng texlive-pictures diff --git a/docs/source/conf.py b/docs/source/conf.py index 0d7213da72..17eb378b2e 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -16,12 +16,13 @@ import pt_lightning_sphinx_theme -SPHINX_MOCK_REQUIREMENTS = int(os.environ.get('SPHINX_MOCK_REQUIREMENTS', True)) _PATH_HERE = os.path.abspath(os.path.dirname(__file__)) _PATH_ROOT = os.path.join(_PATH_HERE, '..', '..') sys.path.insert(0, os.path.abspath(_PATH_ROOT)) -builtins.__LIGHTNING_FLASH_SETUP__ = True +SPHINX_MOCK_REQUIREMENTS = int(os.environ.get('SPHINX_MOCK_REQUIREMENTS', True)) +if SPHINX_MOCK_REQUIREMENTS: + builtins.__LIGHTNING_FLASH_SETUP__ = True import flash # noqa: E402 html_favicon = '_static/images/icon.svg' @@ -135,6 +136,8 @@ def _package_list_from_file(pfile): 'scikit-learn': 'sklearn', 'Pillow': 'PIL', 'PyYAML': 'yaml', + 'rouge-score': 'rouge_score', + 'pytorch-lightning-bolts': 'pl_bolts', } MOCK_PACKAGES = [] if SPHINX_MOCK_REQUIREMENTS: diff --git a/flash/__init__.py b/flash/__init__.py index 48c4b44d40..b892cc3230 100644 --- a/flash/__init__.py +++ b/flash/__init__.py @@ -14,7 +14,7 @@ """Root package info.""" import os -__version__ = "0.1.0" +__version__ = "0.1.0post1" __author__ = "PyTorchLightning et al." __author_email__ = "name@pytorchlightning.ai" __license__ = 'Apache-2.0' diff --git a/requirements.txt b/requirements.txt index 6450cb7a62..5ae4b13216 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,8 +7,9 @@ transformers==4.2.2 datasets==1.2.1 pandas==1.1.2 scikit-learn==0.24.0 -numpy -tqdm +numpy # comes with 3rd-party dependency +tqdm # comes with 3rd-party dependency rouge-score>=0.0.4 sentencepiece>=0.1.95 pytorch-lightning-bolts==0.3.0 +filelock # comes with 3rd-party dependency