tau-fibrils-yolo 0.0.5__tar.gz → 0.0.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. tau_fibrils_yolo-0.0.6/.github/workflows/release.yml +126 -0
  2. tau_fibrils_yolo-0.0.5/.github/workflows/release.yml → tau_fibrils_yolo-0.0.6/.github/workflows/release_multiplatform.yml +48 -6
  3. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/PKG-INFO +9 -5
  4. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/README.md +7 -3
  5. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/pyproject.toml +1 -1
  6. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/_version.py +2 -2
  7. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo.egg-info/PKG-INFO +9 -5
  8. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo.egg-info/SOURCES.txt +1 -0
  9. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/.gitignore +0 -0
  10. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/LICENSE +0 -0
  11. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/MANIFEST.in +0 -0
  12. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/assets/icon.png +0 -0
  13. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/assets/screenshot.png +0 -0
  14. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/scripts/00_annotate.py +0 -0
  15. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/scripts/01_shapes_to_labels.py +0 -0
  16. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/scripts/02_split_train_valid.py +0 -0
  17. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/scripts/03_train_yolo.py +0 -0
  18. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/scripts/instructions.md +0 -0
  19. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/setup.cfg +0 -0
  20. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/__init__.py +0 -0
  21. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/__main__.py +0 -0
  22. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/_widget.py +0 -0
  23. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/cli.py +0 -0
  24. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/measure.py +0 -0
  25. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/napari.yaml +0 -0
  26. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/postprocess.py +0 -0
  27. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/predict.py +0 -0
  28. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo.egg-info/dependency_links.txt +0 -0
  29. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo.egg-info/entry_points.txt +0 -0
  30. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo.egg-info/requires.txt +0 -0
  31. {tau_fibrils_yolo-0.0.5 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo.egg-info/top_level.txt +0 -0
@@ -0,0 +1,126 @@
1
+ # name: Publish, Build and Release
2
+
3
+ # on:
4
+ # push:
5
+ # branches:
6
+ # - main
7
+ # tags:
8
+ # - "v*"
9
+ # pull_request:
10
+ # branches:
11
+ # - main
12
+ # workflow_dispatch:
13
+
14
+ # permissions:
15
+ # contents: write
16
+
17
+ # jobs:
18
+ # deploy:
19
+ # runs-on: ubuntu-latest
20
+ # if: contains(github.ref, 'tags')
21
+ # steps:
22
+ # - uses: actions/checkout@v4
23
+ # - name: Set up Python
24
+ # uses: actions/setup-python@v4
25
+ # with:
26
+ # python-version: "3.9"
27
+ # - name: Install dependencies
28
+ # run: |
29
+ # python -m pip install --upgrade pip
30
+ # pip install -U setuptools setuptools_scm wheel twine build
31
+ # - name: Build and publish
32
+ # env:
33
+ # TWINE_USERNAME: __token__
34
+ # TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
35
+ # run: |
36
+ # git tag
37
+ # python -m build .
38
+ # twine upload dist/*
39
+
40
+ # build:
41
+ # needs: deploy
42
+ # runs-on: ${{ matrix.os }}
43
+ # strategy:
44
+ # matrix:
45
+ # os: [windows-latest]
46
+
47
+ # env:
48
+ # PYAPP_PROJECT_NAME: 'tau_fibrils_yolo'
49
+
50
+ # steps:
51
+ # - name: Checkout code
52
+ # uses: actions/checkout@v2
53
+
54
+ # - name: Install Rust
55
+ # uses: actions-rs/toolchain@v1
56
+ # with:
57
+ # toolchain: stable
58
+ # override: true
59
+
60
+ # - name: Extract PyPi package version
61
+ # shell: bash
62
+ # run: |
63
+ # VERSION=${{ github.ref_name }}
64
+ # VERSION=${VERSION#v}
65
+ # echo "VERSION=$VERSION" >> $GITHUB_ENV
66
+
67
+ # - name: Download PyApp
68
+ # shell: bash
69
+ # run: |
70
+ # curl https://github.com/ofek/pyapp/releases/latest/download/source.tar.gz -Lo pyapp-source.tar.gz
71
+ # tar -xzf pyapp-source.tar.gz
72
+ # mv pyapp-v* pyapp-latest
73
+
74
+ # - name: Build executable for Windows
75
+ # env:
76
+ # PYAPP_PROJECT_VERSION: ${{ env.VERSION }}
77
+ # PYAPP_PYTHON_VERSION: '3.9'
78
+ # run: cargo build --release --manifest-path pyapp-latest/Cargo.toml
79
+
80
+ # - name: Archive Windows executable
81
+ # shell: bash
82
+ # working-directory: pyapp-latest/target/release
83
+ # run: |
84
+ # EXECUTABLE_NAME=${{ env.PYAPP_PROJECT_NAME }}_${{ runner.os }}_${{ env.VERSION }}.exe
85
+ # mv pyapp.exe $EXECUTABLE_NAME
86
+ # tar -czvf ../../../executable-windows.tar.gz $EXECUTABLE_NAME
87
+
88
+ # - name: Upload artifact
89
+ # uses: actions/upload-artifact@v2
90
+ # with:
91
+ # name: executable-${{ runner.os }}
92
+ # path: executable-*.tar.gz
93
+
94
+ # release:
95
+ # needs: build
96
+ # runs-on: ubuntu-latest
97
+ # steps:
98
+ # - name: Checkout code
99
+ # uses: actions/checkout@v2
100
+
101
+ # - name: Download Windows artifact
102
+ # uses: actions/download-artifact@v2
103
+ # with:
104
+ # name: executable-Windows
105
+ # path: .
106
+
107
+ # - name: Create Release
108
+ # id: create_release
109
+ # uses: actions/create-release@v1
110
+ # env:
111
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112
+ # with:
113
+ # tag_name: ${{ github.ref_name }}
114
+ # release_name: Release ${{ github.ref_name }}
115
+ # draft: false
116
+ # prerelease: false
117
+
118
+ # - name: Upload Windows executable to release
119
+ # uses: actions/upload-release-asset@v1
120
+ # env:
121
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122
+ # with:
123
+ # upload_url: ${{ steps.create_release.outputs.upload_url }}
124
+ # asset_path: ./executable-windows.tar.gz
125
+ # asset_name: executable-windows.tar.gz
126
+ # asset_content_type: application/gzip
@@ -42,7 +42,7 @@ jobs:
42
42
  runs-on: ${{ matrix.os }}
43
43
  strategy:
44
44
  matrix:
45
- os: [windows-latest]
45
+ os: [windows-latest, ubuntu-latest, macos-latest]
46
46
 
47
47
  env:
48
48
  PYAPP_PROJECT_NAME: 'tau_fibrils_yolo'
@@ -71,19 +71,29 @@ jobs:
71
71
  tar -xzf pyapp-source.tar.gz
72
72
  mv pyapp-v* pyapp-latest
73
73
 
74
- - name: Build executable for Windows
74
+ - name: Build executable
75
75
  env:
76
76
  PYAPP_PROJECT_VERSION: ${{ env.VERSION }}
77
77
  PYAPP_PYTHON_VERSION: '3.9'
78
78
  run: cargo build --release --manifest-path pyapp-latest/Cargo.toml
79
79
 
80
- - name: Archive Windows executable
80
+ - name: Archive executable
81
81
  shell: bash
82
82
  working-directory: pyapp-latest/target/release
83
83
  run: |
84
- EXECUTABLE_NAME=${{ env.PYAPP_PROJECT_NAME }}_${{ runner.os }}_${{ env.VERSION }}.exe
85
- mv pyapp.exe $EXECUTABLE_NAME
86
- tar -czvf ../../../executable-windows.tar.gz $EXECUTABLE_NAME
84
+ if [ "${{ matrix.os }}" == "windows-latest" ]; then
85
+ EXECUTABLE_NAME=${{ env.PYAPP_PROJECT_NAME }}_${{ runner.os }}_${{ env.VERSION }}.exe
86
+ mv pyapp.exe $EXECUTABLE_NAME
87
+ tar -czvf ../../../executable-windows.tar.gz $EXECUTABLE_NAME
88
+ elif [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
89
+ EXECUTABLE_NAME=${{ env.PYAPP_PROJECT_NAME }}_${{ runner.os }}_${{ env.VERSION }}
90
+ mv pyapp $EXECUTABLE_NAME
91
+ tar -czvf ../../../executable-linux.tar.gz $EXECUTABLE_NAME
92
+ elif [ "${{ matrix.os }}" == "macos-latest" ]; then
93
+ EXECUTABLE_NAME=${{ env.PYAPP_PROJECT_NAME }}_${{ runner.os }}_${{ env.VERSION }}
94
+ mv pyapp $EXECUTABLE_NAME
95
+ tar -czvf ../../../executable-macos.tar.gz $EXECUTABLE_NAME
96
+ fi
87
97
 
88
98
  - name: Upload artifact
89
99
  uses: actions/upload-artifact@v2
@@ -104,6 +114,18 @@ jobs:
104
114
  name: executable-Windows
105
115
  path: .
106
116
 
117
+ - name: Download Linux artifact
118
+ uses: actions/download-artifact@v2
119
+ with:
120
+ name: executable-Linux
121
+ path: .
122
+
123
+ - name: Download MacOS artifact
124
+ uses: actions/download-artifact@v2
125
+ with:
126
+ name: executable-macOS
127
+ path: .
128
+
107
129
  - name: Create Release
108
130
  id: create_release
109
131
  uses: actions/create-release@v1
@@ -124,3 +146,23 @@ jobs:
124
146
  asset_path: ./executable-windows.tar.gz
125
147
  asset_name: executable-windows.tar.gz
126
148
  asset_content_type: application/gzip
149
+
150
+ - name: Upload Linux executable to release
151
+ uses: actions/upload-release-asset@v1
152
+ env:
153
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
154
+ with:
155
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
156
+ asset_path: ./executable-linux.tar.gz
157
+ asset_name: executable-linux.tar.gz
158
+ asset_content_type: application/gzip
159
+
160
+ - name: Upload MacOS executable to release
161
+ uses: actions/upload-release-asset@v1
162
+ env:
163
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
164
+ with:
165
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
166
+ asset_path: ./executable-macos.tar.gz
167
+ asset_name: executable-macos.tar.gz
168
+ asset_content_type: application/gzip
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tau-fibrils-yolo
3
- Version: 0.0.5
4
- Summary: YoloV8 model for the detection of Tau fibrils in Cryo-EM images.
3
+ Version: 0.0.6
4
+ Summary: YoloV8 model for the detection of Tau fibrils in EM images.
5
5
  Author-email: Mallory Wittwer <mallory.wittwer@epfl.ch>
6
6
  License: GNU AFFERO GENERAL PUBLIC LICENSE
7
7
  Version 3, 19 November 2007
@@ -690,13 +690,13 @@ Requires-Dist: ultralytics
690
690
  Requires-Dist: opencv-contrib-python-headless
691
691
 
692
692
  ![EPFL Center for Imaging logo](https://imaging.epfl.ch/resources/logo-for-gitlab.svg)
693
- # 🧬 Tau Fibrils Yolo - Object detection in Cryo-EM images
693
+ # 🧬 Tau Fibrils Yolo - Object detection in EM images
694
694
 
695
695
  ![screenshot](assets/screenshot.png)
696
696
 
697
- We provide a [YoloV8](https://docs.ultralytics.com/) model for the detection of oriented bounding boxes (OBBs) of Tau fibrils in Cryo-EM images.
697
+ We provide a [YoloV8](https://docs.ultralytics.com/) model for the detection of oriented bounding boxes (OBBs) of Tau fibrils in EM images.
698
698
 
699
- [[`Installation`](#installation)] [[`Model`](#model)] [[`Usage`](#usage)]
699
+ [[`Installation`](#installation)] [[`Model`](#model)] [[`Usage`](#usage)] [[`Training`](#training)]
700
700
 
701
701
  This project is part of a collaboration between the [EPFL Center for Imaging](https://imaging.epfl.ch/) and the [Laboratory of Biological Electron Microscopy](https://www.lbem.ch/).
702
702
 
@@ -795,6 +795,10 @@ folder/
795
795
  ├── image_002_results.csv
796
796
  ```
797
797
 
798
+ ## Training
799
+
800
+ The instructions for training the model can be found [here](./scripts/instructions.md).
801
+
798
802
  ## Issues
799
803
 
800
804
  If you encounter any problems, please file an issue along with a detailed description.
@@ -1,11 +1,11 @@
1
1
  ![EPFL Center for Imaging logo](https://imaging.epfl.ch/resources/logo-for-gitlab.svg)
2
- # 🧬 Tau Fibrils Yolo - Object detection in Cryo-EM images
2
+ # 🧬 Tau Fibrils Yolo - Object detection in EM images
3
3
 
4
4
  ![screenshot](assets/screenshot.png)
5
5
 
6
- We provide a [YoloV8](https://docs.ultralytics.com/) model for the detection of oriented bounding boxes (OBBs) of Tau fibrils in Cryo-EM images.
6
+ We provide a [YoloV8](https://docs.ultralytics.com/) model for the detection of oriented bounding boxes (OBBs) of Tau fibrils in EM images.
7
7
 
8
- [[`Installation`](#installation)] [[`Model`](#model)] [[`Usage`](#usage)]
8
+ [[`Installation`](#installation)] [[`Model`](#model)] [[`Usage`](#usage)] [[`Training`](#training)]
9
9
 
10
10
  This project is part of a collaboration between the [EPFL Center for Imaging](https://imaging.epfl.ch/) and the [Laboratory of Biological Electron Microscopy](https://www.lbem.ch/).
11
11
 
@@ -104,6 +104,10 @@ folder/
104
104
  ├── image_002_results.csv
105
105
  ```
106
106
 
107
+ ## Training
108
+
109
+ The instructions for training the model can be found [here](./scripts/instructions.md).
110
+
107
111
  ## Issues
108
112
 
109
113
  If you encounter any problems, please file an issue along with a detailed description.
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "tau-fibrils-yolo"
3
3
  dynamic = ["version"]
4
- description = "YoloV8 model for the detection of Tau fibrils in Cryo-EM images."
4
+ description = "YoloV8 model for the detection of Tau fibrils in EM images."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"
7
7
  license = {file = "LICENSE"}
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.0.5'
16
- __version_tuple__ = version_tuple = (0, 0, 5)
15
+ __version__ = version = '0.0.6'
16
+ __version_tuple__ = version_tuple = (0, 0, 6)
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tau-fibrils-yolo
3
- Version: 0.0.5
4
- Summary: YoloV8 model for the detection of Tau fibrils in Cryo-EM images.
3
+ Version: 0.0.6
4
+ Summary: YoloV8 model for the detection of Tau fibrils in EM images.
5
5
  Author-email: Mallory Wittwer <mallory.wittwer@epfl.ch>
6
6
  License: GNU AFFERO GENERAL PUBLIC LICENSE
7
7
  Version 3, 19 November 2007
@@ -690,13 +690,13 @@ Requires-Dist: ultralytics
690
690
  Requires-Dist: opencv-contrib-python-headless
691
691
 
692
692
  ![EPFL Center for Imaging logo](https://imaging.epfl.ch/resources/logo-for-gitlab.svg)
693
- # 🧬 Tau Fibrils Yolo - Object detection in Cryo-EM images
693
+ # 🧬 Tau Fibrils Yolo - Object detection in EM images
694
694
 
695
695
  ![screenshot](assets/screenshot.png)
696
696
 
697
- We provide a [YoloV8](https://docs.ultralytics.com/) model for the detection of oriented bounding boxes (OBBs) of Tau fibrils in Cryo-EM images.
697
+ We provide a [YoloV8](https://docs.ultralytics.com/) model for the detection of oriented bounding boxes (OBBs) of Tau fibrils in EM images.
698
698
 
699
- [[`Installation`](#installation)] [[`Model`](#model)] [[`Usage`](#usage)]
699
+ [[`Installation`](#installation)] [[`Model`](#model)] [[`Usage`](#usage)] [[`Training`](#training)]
700
700
 
701
701
  This project is part of a collaboration between the [EPFL Center for Imaging](https://imaging.epfl.ch/) and the [Laboratory of Biological Electron Microscopy](https://www.lbem.ch/).
702
702
 
@@ -795,6 +795,10 @@ folder/
795
795
  ├── image_002_results.csv
796
796
  ```
797
797
 
798
+ ## Training
799
+
800
+ The instructions for training the model can be found [here](./scripts/instructions.md).
801
+
798
802
  ## Issues
799
803
 
800
804
  If you encounter any problems, please file an issue along with a detailed description.
@@ -4,6 +4,7 @@ MANIFEST.in
4
4
  README.md
5
5
  pyproject.toml
6
6
  .github/workflows/release.yml
7
+ .github/workflows/release_multiplatform.yml
7
8
  assets/icon.png
8
9
  assets/screenshot.png
9
10
  scripts/00_annotate.py