Merge pull request #4 from SDAIA-KAUST-AI/remove_lfs
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +0 -3
- .gitignore +2 -0
- README.md +2 -3
- app.py +5 -0
- demo_data/demo/0/11573_left.jpeg +0 -3
- demo_data/demo/0/23654_left.jpeg +0 -3
- demo_data/demo/0/24009_left.jpeg +0 -3
- demo_data/demo/0/24879_left.jpeg +0 -3
- demo_data/demo/0/25149_right.jpeg +0 -3
- demo_data/demo/0/28148_left.jpeg +0 -3
- demo_data/demo/0/2961_right.jpeg +0 -3
- demo_data/demo/0/30682_right.jpeg +0 -3
- demo_data/demo/0/6420_left.jpeg +0 -3
- demo_data/demo/0/8594_right.jpeg +0 -3
- demo_data/demo/1/17629_left.jpeg +0 -3
- demo_data/demo/1/25154_right.jpeg +0 -3
- demo_data/demo/1/25680_right.jpeg +0 -3
- demo_data/demo/1/30124_right.jpeg +0 -3
- demo_data/demo/1/31010_right.jpeg +0 -3
- demo_data/demo/1/3782_left.jpeg +0 -3
- demo_data/demo/1/38114_right.jpeg +0 -3
- demo_data/demo/1/40316_right.jpeg +0 -3
- demo_data/demo/1/41813_right.jpeg +0 -3
- demo_data/demo/1/42690_left.jpeg +0 -3
- demo_data/demo/2/12003_right.jpeg +0 -3
- demo_data/demo/2/1407_right.jpeg +0 -3
- demo_data/demo/2/21188_right.jpeg +0 -3
- demo_data/demo/2/25945_left.jpeg +0 -3
- demo_data/demo/2/27297_left.jpeg +0 -3
- demo_data/demo/2/31160_left.jpeg +0 -3
- demo_data/demo/2/43789_right.jpeg +0 -3
- demo_data/demo/2/5728_left.jpeg +0 -3
- demo_data/demo/2/7805_right.jpeg +0 -3
- demo_data/demo/2/7906_right.jpeg +0 -3
- demo_data/demo/3/11031_right.jpeg +0 -3
- demo_data/demo/3/11219_left.jpeg +0 -3
- demo_data/demo/3/12881_left.jpeg +0 -3
- demo_data/demo/3/14481_right.jpeg +0 -3
- demo_data/demo/3/15930_right.jpeg +0 -3
- demo_data/demo/3/2577_left.jpeg +0 -3
- demo_data/demo/3/26254_right.jpeg +0 -3
- demo_data/demo/3/30226_left.jpeg +0 -3
- demo_data/demo/3/34918_right.jpeg +0 -3
- demo_data/demo/3/6433_left.jpeg +0 -3
- demo_data/demo/4/13669_left.jpeg +0 -3
- demo_data/demo/4/14436_right.jpeg +0 -3
- demo_data/demo/4/19471_left.jpeg +0 -3
- demo_data/demo/4/33906_right.jpeg +0 -3
- demo_data/demo/4/37958_left.jpeg +0 -3
- demo_data/demo/4/38186_left.jpeg +0 -3
.gitattributes
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
media/* filter=lfs diff=lfs merge=lfs -text
|
2 |
-
release_ckpts/** filter=lfs diff=lfs merge=lfs -text
|
3 |
-
demo_data/** filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
.gitignore
CHANGED
@@ -4,6 +4,8 @@
|
|
4 |
/slurm_logs
|
5 |
|
6 |
/lightning_logs/
|
|
|
|
|
7 |
|
8 |
__pycache__
|
9 |
|
|
|
4 |
/slurm_logs
|
5 |
|
6 |
/lightning_logs/
|
7 |
+
/demo_data/
|
8 |
+
/release_ckpts/
|
9 |
|
10 |
__pycache__
|
11 |
|
README.md
CHANGED
@@ -4,11 +4,8 @@
|
|
4 |
|
5 |
### Cloning the repo
|
6 |
|
7 |
-
Install git LFS via [this instruction](https://docs.github.com/en/repositories/working-with-files/managing-large-files/installing-git-large-file-storage).
|
8 |
```bash
|
9 |
git clone https://github.com/SDAIA-KAUST-AI/diabetic-retinopathy-detection.git
|
10 |
-
git lfs install # to make sure LFS is enabled
|
11 |
-
git lfs pull # to bring in demo images and pretrained models
|
12 |
```
|
13 |
|
14 |
### Gradio app environment
|
@@ -22,6 +19,8 @@ pip install -r requirements.txt
|
|
22 |
python app.py
|
23 |
```
|
24 |
|
|
|
|
|
25 |
Install manually:
|
26 |
|
27 |
```bash
|
|
|
4 |
|
5 |
### Cloning the repo
|
6 |
|
|
|
7 |
```bash
|
8 |
git clone https://github.com/SDAIA-KAUST-AI/diabetic-retinopathy-detection.git
|
|
|
|
|
9 |
```
|
10 |
|
11 |
### Gradio app environment
|
|
|
19 |
python app.py
|
20 |
```
|
21 |
|
22 |
+
The app will download 280 MB of files from S3 and launch.
|
23 |
+
|
24 |
Install manually:
|
25 |
|
26 |
```bash
|
app.py
CHANGED
@@ -10,6 +10,7 @@ from transformers import (AutoImageProcessor,
|
|
10 |
ResNetForImageClassification)
|
11 |
|
12 |
from src.labelmap import DR_LABELMAP
|
|
|
13 |
|
14 |
|
15 |
class App:
|
@@ -22,6 +23,9 @@ class App:
|
|
22 |
|
23 |
path = f"release_ckpts/{ckpt_name}/inference/"
|
24 |
|
|
|
|
|
|
|
25 |
self.image_processor = AutoImageProcessor.from_pretrained(path)
|
26 |
|
27 |
self.model = ResNetForImageClassification.from_pretrained(path)
|
@@ -147,6 +151,7 @@ class App:
|
|
147 |
|
148 |
def main():
|
149 |
""" App entry point. """
|
|
|
150 |
app = App()
|
151 |
app.launch()
|
152 |
|
|
|
10 |
ResNetForImageClassification)
|
11 |
|
12 |
from src.labelmap import DR_LABELMAP
|
13 |
+
from src.fetch_files import fetch_files
|
14 |
|
15 |
|
16 |
class App:
|
|
|
23 |
|
24 |
path = f"release_ckpts/{ckpt_name}/inference/"
|
25 |
|
26 |
+
if not os.path.exists(path):
|
27 |
+
raise Exception(f"Checkpoint not found at {path}")
|
28 |
+
|
29 |
self.image_processor = AutoImageProcessor.from_pretrained(path)
|
30 |
|
31 |
self.model = ResNetForImageClassification.from_pretrained(path)
|
|
|
151 |
|
152 |
def main():
|
153 |
""" App entry point. """
|
154 |
+
fetch_files()
|
155 |
app = App()
|
156 |
app.launch()
|
157 |
|
demo_data/demo/0/11573_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/0/23654_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/0/24009_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/0/24879_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/0/25149_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/0/28148_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/0/2961_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/0/30682_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/0/6420_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/0/8594_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/1/17629_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/1/25154_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/1/25680_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/1/30124_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/1/31010_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/1/3782_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/1/38114_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/1/40316_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/1/41813_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/1/42690_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/2/12003_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/2/1407_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/2/21188_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/2/25945_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/2/27297_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/2/31160_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/2/43789_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/2/5728_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/2/7805_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/2/7906_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/3/11031_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/3/11219_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/3/12881_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/3/14481_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/3/15930_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/3/2577_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/3/26254_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/3/30226_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/3/34918_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/3/6433_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/4/13669_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/4/14436_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/4/19471_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/4/33906_right.jpeg
DELETED
Git LFS Details
|
demo_data/demo/4/37958_left.jpeg
DELETED
Git LFS Details
|
demo_data/demo/4/38186_left.jpeg
DELETED
Git LFS Details
|