Morsecode commited on
Commit
3602056
Β·
1 Parent(s): a47f257

Added files

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 +1 -0
  2. README.md +10 -1
  3. app.py +27 -0
  4. data/altocumulus/0001.jpg +3 -0
  5. data/altocumulus/0002.jpg +3 -0
  6. data/altocumulus/0004.jpg +3 -0
  7. data/altocumulus/0005.jpg +3 -0
  8. data/altocumulus/0007.jpg +3 -0
  9. data/altocumulus/0008.jpg +3 -0
  10. data/altocumulus/0010.jpg +3 -0
  11. data/altocumulus/0011.jpg +3 -0
  12. data/altocumulus/0013.jpg +3 -0
  13. data/altocumulus/0014.jpg +3 -0
  14. data/altocumulus/0016.jpg +3 -0
  15. data/altocumulus/0017.jpg +3 -0
  16. data/altocumulus/0018.jpg +3 -0
  17. data/altocumulus/0019.jpg +3 -0
  18. data/altocumulus/0020.jpg +3 -0
  19. data/altocumulus/0022.jpg +3 -0
  20. data/altocumulus/0025.jpg +3 -0
  21. data/altocumulus/0026.jpg +3 -0
  22. data/altocumulus/0028.jpg +3 -0
  23. data/altocumulus/0029.jpg +3 -0
  24. data/altocumulus/0030.jpg +3 -0
  25. data/altocumulus/0031.jpg +3 -0
  26. data/altocumulus/0032.jpg +3 -0
  27. data/altocumulus/0033.jpg +3 -0
  28. data/altocumulus/0035.jpg +3 -0
  29. data/altocumulus/0036.jpg +3 -0
  30. data/altocumulus/0037.jpg +3 -0
  31. data/altocumulus/0038.jpg +3 -0
  32. data/altocumulus/0039.jpg +3 -0
  33. data/altocumulus/0040.jpg +3 -0
  34. data/altocumulus/0041.jpg +3 -0
  35. data/altocumulus/0042.jpg +3 -0
  36. data/altocumulus/0043.jpg +3 -0
  37. data/altocumulus/0045.jpg +3 -0
  38. data/altocumulus/0046.jpg +3 -0
  39. data/altocumulus/0047.jpg +3 -0
  40. data/altocumulus/0048.jpg +3 -0
  41. data/altocumulus/0049.jpg +3 -0
  42. data/altocumulus/0050.jpg +3 -0
  43. data/altocumulus/0051.jpg +3 -0
  44. data/altocumulus/0052.jpg +3 -0
  45. data/altocumulus/0065.jpg +3 -0
  46. data/altocumulus/0066.jpg +3 -0
  47. data/altocumulus/0067.jpg +3 -0
  48. data/altocumulus/0068.jpg +3 -0
  49. data/altocumulus/0069.jpg +3 -0
  50. data/altocumulus/0070.jpg +3 -0
.gitattributes CHANGED
@@ -32,3 +32,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ *.jpg filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -10,4 +10,13 @@ pinned: false
10
  license: gpl
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
10
  license: gpl
11
  ---
12
 
13
+ Einfache App fΓΌr Woken-Klassifizierung. Mach ein Foto einer Woke und lasse dir sagen, was fΓΌr eine Wolke das ist.
14
+ Simple app for cloud classification. Take a picture of a cloud and let it tell you what kind of cloud it is.
15
+
16
+ Created using fastai and gradio.
17
+
18
+ First use the imageLoader.py to get you some images (search phrase and folder can be configured in the source).
19
+ Then train the model using train.py
20
+ Afterwards you can run the app.py and point your browser to the shown location.
21
+
22
+ The model is not very precise as I am no expert. So I'm not really able to sort out wrong classified training data.
app.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastai.vision.all import *
2
+ import gradio as gr
3
+
4
+ path = Path()
5
+ path.ls(file_exts='.pkl')
6
+ learn = load_learner(path/'model.pkl')
7
+
8
+ labels = {
9
+ "cirrus": "Cirrus (Federwolke)",
10
+ "cirrocumulus": "Cirrocumulus (kleine SchΓ€fchenwolke)",
11
+ "cirrostratus": "Cirrostratus (hohe Schleierwolke)",
12
+ "altocumulus": "Altocumulus (große SchÀfchenwolke)",
13
+ "altostratus": "Altostratus (mittelhohe Schichtwolke)",
14
+ "stratocumulus": "Stratocumulus (Haufenschichtwolke)",
15
+ "stratus": "Stratus (tiefe Schichtwolke)",
16
+ "cumulus": "Cumulus (Haufenwolke)",
17
+ "nimbostratus": "Nimbostratus (Regenwolke)",
18
+ "cumulonimbus": "Cumulonimbus (Gewitterwolke)"
19
+ }
20
+
21
+ def predict_cloud_class(img):
22
+ cloudtype,_,probs = learn.predict(PILImage.create(img))
23
+ return {labels[learn.dls.vocab[i]]: float(probs[i]) for i in range(len(learn.dls.vocab))}
24
+
25
+ image = gr.inputs.Image()
26
+ label = gr.outputs.Label(num_top_classes=5)
27
+ gr.Interface(fn=predict_cloud_class, inputs=image, outputs=label,examples=["test_cirrus.jpg","test_cumulus.jpg","test_altocumulus.jpg"]).launch(server_name="0.0.0.0")
data/altocumulus/0001.jpg ADDED

Git LFS Details

  • SHA256: b2960d935eeddf04c549d9304dbd230dfad50814cc3bfdcded2644f6ace07680
  • Pointer size: 130 Bytes
  • Size of remote file: 27.6 kB
data/altocumulus/0002.jpg ADDED

Git LFS Details

  • SHA256: 10a8b48316596ac931c2d85b9e4cd3ccb1cf2a843ead2b90ebd4b02409bdedfa
  • Pointer size: 130 Bytes
  • Size of remote file: 24.6 kB
data/altocumulus/0004.jpg ADDED

Git LFS Details

  • SHA256: 7b1eb2ae76c7ad77f4e4097912cf9fc92396c22d8cc99a75a268cbe29f9c9848
  • Pointer size: 130 Bytes
  • Size of remote file: 29.8 kB
data/altocumulus/0005.jpg ADDED

Git LFS Details

  • SHA256: 2874b3e88480a0c419126fa0dfdab09eaeca0915bf9d01110c411815a4d86d59
  • Pointer size: 130 Bytes
  • Size of remote file: 23.6 kB
data/altocumulus/0007.jpg ADDED

Git LFS Details

  • SHA256: 12a7533846faa4637f9d786faa7449d04db819f50cfb39689db4ccbd5ddb188f
  • Pointer size: 130 Bytes
  • Size of remote file: 32 kB
data/altocumulus/0008.jpg ADDED

Git LFS Details

  • SHA256: 9dba38433a5097a3ec2bd7486669cf97e66b97ee7fb03aeb303a7a7591ae35c8
  • Pointer size: 130 Bytes
  • Size of remote file: 18.3 kB
data/altocumulus/0010.jpg ADDED

Git LFS Details

  • SHA256: 13eadae2705c4ec81200e475c17b97d10288ad7baf05f28efc9f2dc1ca1b7ac3
  • Pointer size: 130 Bytes
  • Size of remote file: 30.4 kB
data/altocumulus/0011.jpg ADDED

Git LFS Details

  • SHA256: aeaab5dc1bf3c8b7b79a5dd9d07724bfd603b4f06bcbfa3aa68ae897324b4d99
  • Pointer size: 130 Bytes
  • Size of remote file: 35.1 kB
data/altocumulus/0013.jpg ADDED

Git LFS Details

  • SHA256: 0e8366ed8be367c0255bf8db98431e71e892a53c74419731ea5195fbf87b598a
  • Pointer size: 130 Bytes
  • Size of remote file: 20.9 kB
data/altocumulus/0014.jpg ADDED

Git LFS Details

  • SHA256: 489c79292ae89694d967075a1b72b4e69d9e334a6e6a3555f00f5c079cf6e2cd
  • Pointer size: 130 Bytes
  • Size of remote file: 26.2 kB
data/altocumulus/0016.jpg ADDED

Git LFS Details

  • SHA256: a5f40b7de9d97cd0b07d40b7a4fc653df0b59cdebf9262489d66c8f064ea961e
  • Pointer size: 130 Bytes
  • Size of remote file: 32.9 kB
data/altocumulus/0017.jpg ADDED

Git LFS Details

  • SHA256: 1ad5df67013c6663d2a7d30f82e014d61de0fba5616efc621ae2bdf3b4c8f012
  • Pointer size: 130 Bytes
  • Size of remote file: 21.3 kB
data/altocumulus/0018.jpg ADDED

Git LFS Details

  • SHA256: e0589b77a2033b3262fb78bbc969905d90bf4c9a7fba4984441dd75c21ff8c28
  • Pointer size: 130 Bytes
  • Size of remote file: 30.8 kB
data/altocumulus/0019.jpg ADDED

Git LFS Details

  • SHA256: 3f9a9b6d22f536e35f1834569c06986b344b52cc5895b066b4e9313d1edbd815
  • Pointer size: 130 Bytes
  • Size of remote file: 33.6 kB
data/altocumulus/0020.jpg ADDED

Git LFS Details

  • SHA256: f7c56c83760c9b53e78f0167d51be9f0c188326bcaeba808f0ad4d68df5f48ce
  • Pointer size: 130 Bytes
  • Size of remote file: 29 kB
data/altocumulus/0022.jpg ADDED

Git LFS Details

  • SHA256: 9df47bc43c4fe136df3f78f4e9398c6e73eea936725680be8fa20f4755dac8d8
  • Pointer size: 130 Bytes
  • Size of remote file: 25.5 kB
data/altocumulus/0025.jpg ADDED

Git LFS Details

  • SHA256: e72482d6aed74765755c0dd968f69026eda5ab7cb678c08827b29ef7cfca76d7
  • Pointer size: 130 Bytes
  • Size of remote file: 38.6 kB
data/altocumulus/0026.jpg ADDED

Git LFS Details

  • SHA256: bbed0f6a6db2cec0b9db1108decd1865c739fbdbeb3bb5ab50765543885de11b
  • Pointer size: 130 Bytes
  • Size of remote file: 44.4 kB
data/altocumulus/0028.jpg ADDED

Git LFS Details

  • SHA256: 9741e55ffbacd9edc8915a2eb31ce00fa0a0378cb08f9c881784d28fd0b35777
  • Pointer size: 130 Bytes
  • Size of remote file: 31.3 kB
data/altocumulus/0029.jpg ADDED

Git LFS Details

  • SHA256: 04017a864d7b25bda8f495ace061acc0930c64484d362217a540c5cec7da15de
  • Pointer size: 130 Bytes
  • Size of remote file: 32 kB
data/altocumulus/0030.jpg ADDED

Git LFS Details

  • SHA256: db74dade24ced825e7a51684d84bc18a882f118df76e740b35a23824da29380e
  • Pointer size: 130 Bytes
  • Size of remote file: 25.7 kB
data/altocumulus/0031.jpg ADDED

Git LFS Details

  • SHA256: bf1710f7b424d40eb5a6fbe5a997c4f40627c0dfc5c4d5995e3b67845b826062
  • Pointer size: 130 Bytes
  • Size of remote file: 28.5 kB
data/altocumulus/0032.jpg ADDED

Git LFS Details

  • SHA256: 5590d6e11557cdae2ac3e0ba1191227982c06ea2b8d54f37189320368321f4cc
  • Pointer size: 130 Bytes
  • Size of remote file: 27.4 kB
data/altocumulus/0033.jpg ADDED

Git LFS Details

  • SHA256: 272ba2b4b16436f00f237eec5bc9ed5a943df70c0be0a49b8387e1c7cf768939
  • Pointer size: 130 Bytes
  • Size of remote file: 28.4 kB
data/altocumulus/0035.jpg ADDED

Git LFS Details

  • SHA256: a29bf16e5edbd728ed8c108018758c1f0f3ac7dd8f0b8d90e648a6bc1d1babea
  • Pointer size: 130 Bytes
  • Size of remote file: 23.2 kB
data/altocumulus/0036.jpg ADDED

Git LFS Details

  • SHA256: c1b628372bb6f9a4b0b17c1140780d502d204030a5ef00c60036d325ab33ffee
  • Pointer size: 130 Bytes
  • Size of remote file: 20 kB
data/altocumulus/0037.jpg ADDED

Git LFS Details

  • SHA256: a7662ef14d457f4e080fc8eea9cc1db73e08f2ca6d8e4f3737af70b0f6937d4f
  • Pointer size: 130 Bytes
  • Size of remote file: 24.3 kB
data/altocumulus/0038.jpg ADDED

Git LFS Details

  • SHA256: 05caded3287e694ece2e4cd8110a89db7f937b1c90fbf33a887b6c2bae5b5e86
  • Pointer size: 130 Bytes
  • Size of remote file: 21.1 kB
data/altocumulus/0039.jpg ADDED

Git LFS Details

  • SHA256: 3e2822e0d53297de8abc4de2b4188f297b7af5eadbbbb0e500870b5dd2c43434
  • Pointer size: 130 Bytes
  • Size of remote file: 16.7 kB
data/altocumulus/0040.jpg ADDED

Git LFS Details

  • SHA256: 3728a8e96336eb71e3dbbf2fc4f0bb1d5e93e50c86ed5d4ee5e0bff5e9b7ce67
  • Pointer size: 130 Bytes
  • Size of remote file: 31.8 kB
data/altocumulus/0041.jpg ADDED

Git LFS Details

  • SHA256: c3f97ee00b9bc99a99362b793673e9b75432c2cad4b987f4e9f6a9907eee5905
  • Pointer size: 130 Bytes
  • Size of remote file: 24.3 kB
data/altocumulus/0042.jpg ADDED

Git LFS Details

  • SHA256: d90fb4b92749ca61b9fb9723a7164a67c7f2345c689a5096b936389397450d78
  • Pointer size: 130 Bytes
  • Size of remote file: 16.9 kB
data/altocumulus/0043.jpg ADDED

Git LFS Details

  • SHA256: 6c4e2075f574797ac122e6c5916c9374e7c1d2bff00753a67168a2103fa7adc7
  • Pointer size: 130 Bytes
  • Size of remote file: 19.6 kB
data/altocumulus/0045.jpg ADDED

Git LFS Details

  • SHA256: b6ef432de9672bb3265a34468cf19fded622d0532476a260d9fa8b8dcbb1641f
  • Pointer size: 130 Bytes
  • Size of remote file: 30.9 kB
data/altocumulus/0046.jpg ADDED

Git LFS Details

  • SHA256: 6b9cd399af518971571858dd3d70db8e0f1a3608a45c3f3dac83e43bd39dcc72
  • Pointer size: 130 Bytes
  • Size of remote file: 43.7 kB
data/altocumulus/0047.jpg ADDED

Git LFS Details

  • SHA256: 29e57465ef03ff08800a63fb69d4c4129977f547650c6849e66c30c7c27d79c2
  • Pointer size: 130 Bytes
  • Size of remote file: 23 kB
data/altocumulus/0048.jpg ADDED

Git LFS Details

  • SHA256: 4e480d213ddf593d579f719a04aac37447d56e6bfa538b587f8328c1e0906424
  • Pointer size: 130 Bytes
  • Size of remote file: 30.7 kB
data/altocumulus/0049.jpg ADDED

Git LFS Details

  • SHA256: bfa8f7004db6fbf72b0d31c4963fe95c48aa0894dd1b8eb91d7f230f92132a97
  • Pointer size: 130 Bytes
  • Size of remote file: 24.7 kB
data/altocumulus/0050.jpg ADDED

Git LFS Details

  • SHA256: f48b85d2a9a43e0c44c8ce3b8be12b05528ad2b73b34f0362476c51a3923837a
  • Pointer size: 130 Bytes
  • Size of remote file: 25.7 kB
data/altocumulus/0051.jpg ADDED

Git LFS Details

  • SHA256: 3846bd411b48f2200c648dee214505c9b3e5eed288c9265b6c71fb1db31bf55a
  • Pointer size: 130 Bytes
  • Size of remote file: 29.8 kB
data/altocumulus/0052.jpg ADDED

Git LFS Details

  • SHA256: 5105d9197db1fb8f1874c0500bd92af9229117ba4460bd7b8e201387e5776c2c
  • Pointer size: 130 Bytes
  • Size of remote file: 22.1 kB
data/altocumulus/0065.jpg ADDED

Git LFS Details

  • SHA256: 0ac8974731c364ece20b4373ee024917c5de68010947dd8bfceb32f6897797f4
  • Pointer size: 130 Bytes
  • Size of remote file: 22.9 kB
data/altocumulus/0066.jpg ADDED

Git LFS Details

  • SHA256: bf2d300d6818a15561f6a604d1a779210d3a5c702c62b149dddc94306e64f987
  • Pointer size: 130 Bytes
  • Size of remote file: 30.8 kB
data/altocumulus/0067.jpg ADDED

Git LFS Details

  • SHA256: 89b4c2ec25972944e18e754e1596220eacfa34e25f46bdfb1f6e6f01551f4678
  • Pointer size: 130 Bytes
  • Size of remote file: 34.2 kB
data/altocumulus/0068.jpg ADDED

Git LFS Details

  • SHA256: 58acc31a1015ac3003ddf87fcdc82271f455de226b9f3cba6b03b636cc8c6f6c
  • Pointer size: 130 Bytes
  • Size of remote file: 23 kB
data/altocumulus/0069.jpg ADDED

Git LFS Details

  • SHA256: c2081b0a254547d4c0ac3ef20e62f137bc55bf9ae9513cd8b8940045f373e18a
  • Pointer size: 130 Bytes
  • Size of remote file: 29.7 kB
data/altocumulus/0070.jpg ADDED

Git LFS Details

  • SHA256: 2031cbce4d7ec0533164a26b465087f46e2afcec56eb36ff0c32f43799a4706d
  • Pointer size: 130 Bytes
  • Size of remote file: 19 kB