Skip to content

Commit

Permalink
change back to actual notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
rwood-97 committed Nov 13, 2024
1 parent fe6a4a8 commit 458b9c1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 54 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/check_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,27 @@
- name: Install dependencies
run: |
pip install papermill ipython jupyter
# python -m pip install wheel
# python -m pip install numpy==1.26.4 torch==2.2.2 torchvision==0.17.2 -f https://download.pytorch.org/whl/torch_stable.html
# python -m pip install -r requirements.txt
#
# - name: Clone DPText-DETR
# run: |
# git clone https://github.com/maps-as-data/DPText-DETR.git
#
# - name: Clone DeepSolo
# run: |
# git clone https://github.com/maps-as-data/DeepSolo.git
#
# - name: Hugging Face CLI
# run: |
# pip install -U "huggingface_hub[cli]"
# huggingface-cli download rwood-97/DPText_DETR_ArT_R_50_poly art_final.pth --local-dir .
# huggingface-cli download rwood-97/DeepSolo_ic15_res50 ic15_res50_finetune_synth-tt-mlt-13-15-textocr.pth --local-dir .
python -m pip install wheel
python -m pip install numpy==1.26.4 torch==2.2.2 torchvision==0.17.2 -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install -r requirements.txt
pip install papermill
- name: Clone DPText-DETR
run: |
git clone https://github.com/maps-as-data/DPText-DETR.git
- name: Clone DeepSolo
run: |
git clone https://github.com/maps-as-data/DeepSolo.git
- name: Hugging Face CLI
run: |
pip install -U "huggingface_hub[cli]"
huggingface-cli download rwood-97/DPText_DETR_ArT_R_50_poly art_final.pth --local-dir .
huggingface-cli download rwood-97/DeepSolo_ic15_res50 ic15_res50_finetune_synth-tt-mlt-13-15-textocr.pth --local-dir .
- name: Run notebooks
run: |
find . -name "*.ipynb" -exec sed -Ei "s/num_epochs=.?.?/num_epochs=1/g" {} +
find . -name "*.ipynb" -exec sed -i "s/annotator.annotate/#annotator.annotate/g" {} +
find . -name "*test.ipynb" -print0 | xargs -0 -S 10000 -I {} -t bash -c 'papermill --cwd $(dirname {}) --log-output {} {} || exit 255'
find . -name "*.ipynb" -print0 | xargs -0 -S 10000 -I {} -t bash -c 'papermill --cwd $(dirname {}) --log-output {} {} || exit 255'
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ worked_examples/non-geospatial/classification_plant_phenotype/*
!worked_examples/non-geospatial/classification_plant_phenotype/Pipeline.ipynb
!worked_examples/non-geospatial/classification_plant_phenotype/annotations_phenotype_open_access/
!worked_examples/non-geospatial/classification_plant_phenotype/dataset/

!worked_examples/geospatial/*classification_one_inch_maps/test.ipynb
33 changes: 0 additions & 33 deletions worked_examples/geospatial/classification_one_inch_maps/test.ipynb

This file was deleted.

0 comments on commit 458b9c1

Please sign in to comment.