Dmitrii Khizbullin commited on
Commit
97fdae0
·
unverified ·
2 Parent(s): baca1f3 e2bd3a1

Merge pull request #4 from SDAIA-KAUST-AI/remove_lfs

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +0 -3
  2. .gitignore +2 -0
  3. README.md +2 -3
  4. app.py +5 -0
  5. demo_data/demo/0/11573_left.jpeg +0 -3
  6. demo_data/demo/0/23654_left.jpeg +0 -3
  7. demo_data/demo/0/24009_left.jpeg +0 -3
  8. demo_data/demo/0/24879_left.jpeg +0 -3
  9. demo_data/demo/0/25149_right.jpeg +0 -3
  10. demo_data/demo/0/28148_left.jpeg +0 -3
  11. demo_data/demo/0/2961_right.jpeg +0 -3
  12. demo_data/demo/0/30682_right.jpeg +0 -3
  13. demo_data/demo/0/6420_left.jpeg +0 -3
  14. demo_data/demo/0/8594_right.jpeg +0 -3
  15. demo_data/demo/1/17629_left.jpeg +0 -3
  16. demo_data/demo/1/25154_right.jpeg +0 -3
  17. demo_data/demo/1/25680_right.jpeg +0 -3
  18. demo_data/demo/1/30124_right.jpeg +0 -3
  19. demo_data/demo/1/31010_right.jpeg +0 -3
  20. demo_data/demo/1/3782_left.jpeg +0 -3
  21. demo_data/demo/1/38114_right.jpeg +0 -3
  22. demo_data/demo/1/40316_right.jpeg +0 -3
  23. demo_data/demo/1/41813_right.jpeg +0 -3
  24. demo_data/demo/1/42690_left.jpeg +0 -3
  25. demo_data/demo/2/12003_right.jpeg +0 -3
  26. demo_data/demo/2/1407_right.jpeg +0 -3
  27. demo_data/demo/2/21188_right.jpeg +0 -3
  28. demo_data/demo/2/25945_left.jpeg +0 -3
  29. demo_data/demo/2/27297_left.jpeg +0 -3
  30. demo_data/demo/2/31160_left.jpeg +0 -3
  31. demo_data/demo/2/43789_right.jpeg +0 -3
  32. demo_data/demo/2/5728_left.jpeg +0 -3
  33. demo_data/demo/2/7805_right.jpeg +0 -3
  34. demo_data/demo/2/7906_right.jpeg +0 -3
  35. demo_data/demo/3/11031_right.jpeg +0 -3
  36. demo_data/demo/3/11219_left.jpeg +0 -3
  37. demo_data/demo/3/12881_left.jpeg +0 -3
  38. demo_data/demo/3/14481_right.jpeg +0 -3
  39. demo_data/demo/3/15930_right.jpeg +0 -3
  40. demo_data/demo/3/2577_left.jpeg +0 -3
  41. demo_data/demo/3/26254_right.jpeg +0 -3
  42. demo_data/demo/3/30226_left.jpeg +0 -3
  43. demo_data/demo/3/34918_right.jpeg +0 -3
  44. demo_data/demo/3/6433_left.jpeg +0 -3
  45. demo_data/demo/4/13669_left.jpeg +0 -3
  46. demo_data/demo/4/14436_right.jpeg +0 -3
  47. demo_data/demo/4/19471_left.jpeg +0 -3
  48. demo_data/demo/4/33906_right.jpeg +0 -3
  49. demo_data/demo/4/37958_left.jpeg +0 -3
  50. 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

  • SHA256: 48b7621ce569f533e98cabf36e2069bebcac4a86c4131ffbd420f2188807ab3f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.12 MB
demo_data/demo/0/23654_left.jpeg DELETED

Git LFS Details

  • SHA256: c3f6533546dc5bdfe2fe462e10992589c0b9763513328cade4fd037df024af32
  • Pointer size: 131 Bytes
  • Size of remote file: 813 kB
demo_data/demo/0/24009_left.jpeg DELETED

Git LFS Details

  • SHA256: a4b184fbe25dd0119452ee986eaf49e0c5527de8c06d23ab1771f2d3f84074b9
  • Pointer size: 131 Bytes
  • Size of remote file: 800 kB
demo_data/demo/0/24879_left.jpeg DELETED

Git LFS Details

  • SHA256: 4b75227d5df635b6864f79495797ae99aafe792065119ab0137f3ff6c16eb97e
  • Pointer size: 132 Bytes
  • Size of remote file: 1.15 MB
demo_data/demo/0/25149_right.jpeg DELETED

Git LFS Details

  • SHA256: 7e2ba6acd5a0b273d98ad24698ca8bbf284223ac7508d4aa08d76aa2c0387f35
  • Pointer size: 131 Bytes
  • Size of remote file: 845 kB
demo_data/demo/0/28148_left.jpeg DELETED

Git LFS Details

  • SHA256: 9838dc6715f8d25fba66e3036ae42b31cf0c4d6bd3fc892883c0376ebcd6815c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.39 MB
demo_data/demo/0/2961_right.jpeg DELETED

Git LFS Details

  • SHA256: c69c579ef67318f62acea5cb2bdf8c5cbaed426c3b4e56f0af6cd960aab6393c
  • Pointer size: 131 Bytes
  • Size of remote file: 387 kB
demo_data/demo/0/30682_right.jpeg DELETED

Git LFS Details

  • SHA256: e13611c8200afd6c4deacea976800156bac54f5e3a2e4f88ad10b49761e22135
  • Pointer size: 132 Bytes
  • Size of remote file: 1.1 MB
demo_data/demo/0/6420_left.jpeg DELETED

Git LFS Details

  • SHA256: c358945ff30de7315758a6298c39af485711953ce6fc171f6054f4dc59b49517
  • Pointer size: 131 Bytes
  • Size of remote file: 488 kB
demo_data/demo/0/8594_right.jpeg DELETED

Git LFS Details

  • SHA256: 22fbd65ae18c0fe3c670c4000fdac50e3bc726f12bef8c15e247f4807d7ad38b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.25 MB
demo_data/demo/1/17629_left.jpeg DELETED

Git LFS Details

  • SHA256: 4f9642264ab8611beca4e485efb02cca25fd50b0526ddec410effc84cfdd81d2
  • Pointer size: 132 Bytes
  • Size of remote file: 1.56 MB
demo_data/demo/1/25154_right.jpeg DELETED

Git LFS Details

  • SHA256: 171875a578be77285513cdfda7f7299397b6128d1649b220403e2041eda6cf9f
  • Pointer size: 131 Bytes
  • Size of remote file: 753 kB
demo_data/demo/1/25680_right.jpeg DELETED

Git LFS Details

  • SHA256: 06120ebe885783fcee751a7cf9b18cbf44f6fae8bfe137d6a854aef0b2d451bb
  • Pointer size: 132 Bytes
  • Size of remote file: 2.14 MB
demo_data/demo/1/30124_right.jpeg DELETED

Git LFS Details

  • SHA256: 396cb87ebe0ccb47a1954117a529d34f5d98fb512db83aef13edfe101bfeb102
  • Pointer size: 132 Bytes
  • Size of remote file: 1.11 MB
demo_data/demo/1/31010_right.jpeg DELETED

Git LFS Details

  • SHA256: 71f93c124d547cacfd8bd1ddd846d81dcccea53bcd1b11d2060ccf2c38cefd1f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.55 MB
demo_data/demo/1/3782_left.jpeg DELETED

Git LFS Details

  • SHA256: 19a8e3fa32a8236f526aba525e8c7a3bd2a9699e994431a2b8a6a038d5726b22
  • Pointer size: 132 Bytes
  • Size of remote file: 1.36 MB
demo_data/demo/1/38114_right.jpeg DELETED

Git LFS Details

  • SHA256: eec30da28c2c635ab257a6950bd725004620003cde55288f823d6adbf68a32a3
  • Pointer size: 131 Bytes
  • Size of remote file: 392 kB
demo_data/demo/1/40316_right.jpeg DELETED

Git LFS Details

  • SHA256: a5d2c11a92b0fb662a123e04b8c04f33106a82d8504575cca5c09c4fc4d14599
  • Pointer size: 132 Bytes
  • Size of remote file: 1.26 MB
demo_data/demo/1/41813_right.jpeg DELETED

Git LFS Details

  • SHA256: f5e6d54812b1c14197f5c2a487db02cf3e348887b6ea2b6ed90c9d8045151760
  • Pointer size: 132 Bytes
  • Size of remote file: 1.73 MB
demo_data/demo/1/42690_left.jpeg DELETED

Git LFS Details

  • SHA256: ee92b82c3c04187b2ab29ef893573031b8626d66ec33ead21460510b27a64dea
  • Pointer size: 132 Bytes
  • Size of remote file: 1.56 MB
demo_data/demo/2/12003_right.jpeg DELETED

Git LFS Details

  • SHA256: 2ac1a2bbb6145d41b0b4b1be0954aecd502b0a064cf216a1f529da4baa660e65
  • Pointer size: 132 Bytes
  • Size of remote file: 1.34 MB
demo_data/demo/2/1407_right.jpeg DELETED

Git LFS Details

  • SHA256: 486683a104d1bf7b927703f9a7f17f8922f69ea6037e99e1dfffc6f7ae1314f8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.01 MB
demo_data/demo/2/21188_right.jpeg DELETED

Git LFS Details

  • SHA256: 1ba70afb9aff461a1f22c3a2c5640534216f82d44fe18ffdebe8a031edd10e89
  • Pointer size: 131 Bytes
  • Size of remote file: 252 kB
demo_data/demo/2/25945_left.jpeg DELETED

Git LFS Details

  • SHA256: b83f3091042b8c96a9feacdaa52c352a0be11126a69f003941f371cb301bb5c6
  • Pointer size: 131 Bytes
  • Size of remote file: 418 kB
demo_data/demo/2/27297_left.jpeg DELETED

Git LFS Details

  • SHA256: b572a4b0fed72c313777cb87866a4d8d5f468cd2e3655d0a84a07d8136ab2ff3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.46 MB
demo_data/demo/2/31160_left.jpeg DELETED

Git LFS Details

  • SHA256: 568d51d4d0f09b0ab7e62d5423dd9adc0a810886fd042248bcaaeb6156408d32
  • Pointer size: 131 Bytes
  • Size of remote file: 417 kB
demo_data/demo/2/43789_right.jpeg DELETED

Git LFS Details

  • SHA256: 26fa2309b1b3d64d1c616da4c1c0660112b4a8c1c1116e4036e1449c52ad9b12
  • Pointer size: 132 Bytes
  • Size of remote file: 1.41 MB
demo_data/demo/2/5728_left.jpeg DELETED

Git LFS Details

  • SHA256: e03d4abf99210908ca0a3eefb06a8a2c75bfd48101ed5ede507f658ae53901a4
  • Pointer size: 132 Bytes
  • Size of remote file: 1.27 MB
demo_data/demo/2/7805_right.jpeg DELETED

Git LFS Details

  • SHA256: a5e3e36676d8a6a10f7de9387ee0375775b76977bd2a58413881d5ff079f8e95
  • Pointer size: 132 Bytes
  • Size of remote file: 1.28 MB
demo_data/demo/2/7906_right.jpeg DELETED

Git LFS Details

  • SHA256: b6974c6ade635ad79207086f0a1aecaf0cb22aa3ce12ea3945ead69d1506fb8f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.23 MB
demo_data/demo/3/11031_right.jpeg DELETED

Git LFS Details

  • SHA256: 4a9bf30b0b633829e6bae52677c5b55b0d1bd19933c483cda1f501d250641cd6
  • Pointer size: 131 Bytes
  • Size of remote file: 850 kB
demo_data/demo/3/11219_left.jpeg DELETED

Git LFS Details

  • SHA256: 64ce07b2757d10374e18b92634405c1cb3b21230436ff664153a6260e1fc2d8c
  • Pointer size: 131 Bytes
  • Size of remote file: 716 kB
demo_data/demo/3/12881_left.jpeg DELETED

Git LFS Details

  • SHA256: 5365c9f77a43efbce99e0fd92a83ec33d946dde7b926cb4e31eb83ba0bf95c49
  • Pointer size: 132 Bytes
  • Size of remote file: 1.46 MB
demo_data/demo/3/14481_right.jpeg DELETED

Git LFS Details

  • SHA256: ac93fe2d026977ec06377df7ba3c979fcf582ae47ddcca4e5af58589f8a07d93
  • Pointer size: 132 Bytes
  • Size of remote file: 1.2 MB
demo_data/demo/3/15930_right.jpeg DELETED

Git LFS Details

  • SHA256: 9a99e106ebf8838d8fc484461f8ceb21bb738e77679dd60b3322edf2fc979510
  • Pointer size: 132 Bytes
  • Size of remote file: 1.14 MB
demo_data/demo/3/2577_left.jpeg DELETED

Git LFS Details

  • SHA256: aa3ada5f9cf1cc88b12c4611c775404e600a47ccb9d1b457a0be08be8f3889cc
  • Pointer size: 131 Bytes
  • Size of remote file: 267 kB
demo_data/demo/3/26254_right.jpeg DELETED

Git LFS Details

  • SHA256: 933d19139d4bcfefceb70913b418cec10d7e0617aa813901b0b44ee3864d2dec
  • Pointer size: 132 Bytes
  • Size of remote file: 1.36 MB
demo_data/demo/3/30226_left.jpeg DELETED

Git LFS Details

  • SHA256: 4e85f5bd7f0824a7dd47d0c7844fb79f2305223da69f5cf09068e9efe59b9c9e
  • Pointer size: 131 Bytes
  • Size of remote file: 982 kB
demo_data/demo/3/34918_right.jpeg DELETED

Git LFS Details

  • SHA256: 66eda1ce6fbe68520f88724bdc600824ea80f929834327c5ef6777d90e3b3519
  • Pointer size: 132 Bytes
  • Size of remote file: 1.25 MB
demo_data/demo/3/6433_left.jpeg DELETED

Git LFS Details

  • SHA256: a5127ab8a85ed527adca3c6455c04a0bbba5f95528623c9f6c023ad55ef9867f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.98 MB
demo_data/demo/4/13669_left.jpeg DELETED

Git LFS Details

  • SHA256: 2e10c1c85fea8db7a88f7fe2cd95e57c52676bf0be7a05376943706365d6b5d6
  • Pointer size: 132 Bytes
  • Size of remote file: 1.36 MB
demo_data/demo/4/14436_right.jpeg DELETED

Git LFS Details

  • SHA256: 77866b2e069c68f5d9f97ee91e8fa1364f7464f1cf3e72c408b692104bde15a2
  • Pointer size: 132 Bytes
  • Size of remote file: 1.33 MB
demo_data/demo/4/19471_left.jpeg DELETED

Git LFS Details

  • SHA256: dc902c763c8c5a4da845aaa8d7f8fe32b987a54090541dac565ad3c9503a6775
  • Pointer size: 132 Bytes
  • Size of remote file: 1.42 MB
demo_data/demo/4/33906_right.jpeg DELETED

Git LFS Details

  • SHA256: 24ac1f22a07d5fe7227eec6ef86438b408aa912738ed5f676b5240ae9f5fdaea
  • Pointer size: 132 Bytes
  • Size of remote file: 1.57 MB
demo_data/demo/4/37958_left.jpeg DELETED

Git LFS Details

  • SHA256: 7251e57244f4c12b984279ae87c0164e3789ed5d3915e92dc050158b03085888
  • Pointer size: 132 Bytes
  • Size of remote file: 1.44 MB
demo_data/demo/4/38186_left.jpeg DELETED

Git LFS Details

  • SHA256: 9fe439d8eb61ed79b98e8cfc21c37295c6a11c60e175c25b281b045bfbe277b5
  • Pointer size: 132 Bytes
  • Size of remote file: 1.19 MB