Skip to content

Commit 8168e8b

Browse files
Update CI to use pnpm v7 (#235)
* Bug Fix * Update CI to use pnpm v7 - Fixed pnpm version to 7 so that ci is not breaking * Fix Again
1 parent a2bee40 commit 8168e8b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
pip install wheel setuptools pip -Uqq
6969
pip install -r ./scripts/requirements.txt -f https://download.pytorch.org/whl/cpu/torch_stable.html -q
7070
pip uninstall -y tqdm
71-
npm i -g pnpm
71+
npm install pnpm@7 -g
7272
pnpm i --frozen-lockfile --color
7373
7474
- name: Download datasets
@@ -104,7 +104,7 @@ jobs:
104104
pnpm-and-pip-cache-
105105
106106
- run: pip install -Uq pip wheel && bash scripts/run_code_style.sh install
107-
- run: npm i -g pnpm
107+
- run: npm install pnpm@7 -g
108108
- run: pnpm i --frozen-lockfile --color
109109
- run: pnpm lint
110110
- run: python scripts/check_copies.py

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ To add a new template,
7878
7979
5. Once everything looks good, put the template name with respective filenames (in array format) in the `templates.json` in `src/templates` directory. This is required to tell Code-Generator to fetch the files from this template.
8080
81-
6. In the `README.md`, copy the training launch code from `src/template-common/README.md`.
81+
6. In the `README.md`, copy the training launch code from `src/templates/template-common/README.md`.
8282
83-
7. For the `requirements.txt`, copy from the `src/template-common/requirements.txt`.
83+
7. For the `requirements.txt`, copy from the `src/templates/template-common/requirements.txt`.
8484
85-
8. For the `utils.py`, copy the starter code from the `src/template-common/utils.py`.
85+
8. For the `utils.py`, copy the starter code from the `src/templates/template-common/utils.py`.
8686
8787
9. You can check if the copied codes needed are up-to-date with the base codes with: `python scripts/check_copies.py`
8888

src/templates/template-vision-segmentation/data.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ def setup_data(config: Namespace):
8585
download=False,
8686
)
8787
except RuntimeError as e:
88-
raise e(
88+
raise RuntimeError(
8989
"Dataset not found. You can use `download_datasets` from data.py function to download it."
90-
)
90+
) from e
9191

9292
dataset_eval = VOCSegmentationPIL(
9393
root=config.data_path, year="2012", image_set="val", download=False

src/templates/template-vision-segmentation/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ torch>=1.10.2
22
torchvision>=0.11.3
33
pytorch-ignite>=0.4.8
44
pyyaml
5-
albumentations
5+
albumentations>=1.3.0
66
image_dataset_viz
77

88
#::: if (['neptune', 'polyaxon'].includes(it.logger)) { :::#

0 commit comments

Comments
 (0)