Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .actions/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def update_env_details(folder: str, base_path: str = DIR_NOTEBOOKS) -> str:
req += meta.get("requirements", [])
req = [r.strip() for r in req]

def _parse_package_name(pkg: str, keys: str = " <=>[]@", egg_name: str = "#egg=") -> str:
def _parse_package_name(pkg: str, keys: str = " !<=>[]@", egg_name: str = "#egg=") -> str:
"""Parsing just the package name."""
if egg_name in pkg:
pkg = pkg[pkg.index(egg_name) + len(egg_name) :]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci_code-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.8"

- name: set PY
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

# %% [markdown]
# In this tutorial, we'll go over the basics of lightning Flash by finetuning/predictin with an ImageClassifier on [Hymenoptera Dataset](https://www.kaggle.com/ajayrana/hymenoptera-data) containing ants and bees images.
#
Expand Down Expand Up @@ -69,7 +67,7 @@
# In this demo, we will limit the fine-tuning to run just one epoch using max_epochs=2.

# %%
trainer = flash.Trainer(max_epochs=3)
trainer = flash.Trainer(max_epochs=1)


# %% [markdown]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

# %% [markdown]
# In this notebook, we'll go over the basics of lightning Flash by training a TabularClassifier on [Titanic Dataset](https://www.kaggle.com/c/titanic).

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

# %% [markdown]
# In this notebook, we'll go over the basics of lightning Flash by finetunig a TextClassifier on [IMDB Dataset](https://www.imdb.com/interfaces/).
#
Expand Down Expand Up @@ -46,7 +44,7 @@
train_file="data/imdb/train.csv",
val_file="data/imdb/valid.csv",
test_file="data/imdb/test.csv",
batch_size=4,
batch_size=512, # just increased for the example to run fast
)


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 @@ -12,6 +12,7 @@ description: |
mode without additional effort.
requirements:
- kornia
- pytorch-lightning !=1.8.0, !=1.8.0.post1 # skip for PermissionError: [Errno 13] Permission denied: 'command'
- torchmetrics
- torchvision
- matplotlib
Expand Down
2 changes: 1 addition & 1 deletion lightning_examples/augmentation_kornia/augmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# %% [markdown]
# ## Define Data Augmentations module
#
# [Kornia](https://kornia.github.io/) is low level Computer Vision library that provides a dedicated module
# [Kornia](https://github.com/kornia/kornia) is low level Computer Vision library that provides a dedicated module
# [`kornia.augmentation`](https://kornia.readthedocs.io/en/latest/augmentation.html) module implementing
# en extensive set of data augmentation techniques for image and video.
#
Expand Down
2 changes: 1 addition & 1 deletion requirements/devel.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
virtualenv>=20.10
jupytext>=1.10 # converting
pytest>=6.0
nbval>=0.9.6 # testing
https://github.com/Borda/nbval/archive/refs/heads/master.zip # testing with own fork with extended cell timeout
papermill>=2.3.4 # render