sharktide commited on
Commit
81948de
·
verified ·
1 Parent(s): aba9a4a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -0
README.md CHANGED
@@ -12,6 +12,7 @@ tags:
12
  - transformers
13
  - tf-keras
14
  - keras
 
15
  task:
16
  - image-classification
17
  library_name: transformers
@@ -20,6 +21,32 @@ library_name: transformers
20
 
21
  In the world, very little of what is put into your bin actually gets recycled. One of the prime reasons for this is when people put recyclables in the wrong bin, causing the whole recycling truck to get turned away and sent to the landfill. The amount of materials we have left in the environment is decreasing, and what little we put to recycle can also get wasted. This project tries to address that issue by creating artificial intelligence capable of automatically sorting/categorizing recyclables from images. The model that was created as a result was able to categorize pictures of recyclables correctly 80% of the time. It was found that when a picture of a type of recyclable that fits into one of the 5 following categories is taken, (glass, metal, paperboard, plastic-polystyrene-specific, or plastic-other-recyclable), the model was able to classify it correctly 20 out of 25 times, being extremely confident in correct predictions (Avg: 55%). The significance of this work demonstrates how artificial intelligence can start to be a guide for humans to help make the right choices. However, suppose humans start relying on artificial intelligence too much. In that case, it can have possible unintended consequences, such as people regularly overriding their judgment based on what AI ‘thinks’ can cause people to make the same mistakes as AI, which as shown by the results above can be susceptible to making mistakes.1 This project is anticipated to open the doors for lightweight, efficient, easy, and accessible ways to not only decrease the amount of recycling contamination coming from the home or office environment but also to make it easier and faster for users to recycle. Enter recyclebot.
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  A Working Prototype can be found at this project's website: https://recyclesmart.verecl.app
24
 
25
  Also, the website code is also on github: https://github.com/sharktide/recyclesmart
 
12
  - transformers
13
  - tf-keras
14
  - keras
15
+ - tftools
16
  task:
17
  - image-classification
18
  library_name: transformers
 
21
 
22
  In the world, very little of what is put into your bin actually gets recycled. One of the prime reasons for this is when people put recyclables in the wrong bin, causing the whole recycling truck to get turned away and sent to the landfill. The amount of materials we have left in the environment is decreasing, and what little we put to recycle can also get wasted. This project tries to address that issue by creating artificial intelligence capable of automatically sorting/categorizing recyclables from images. The model that was created as a result was able to categorize pictures of recyclables correctly 80% of the time. It was found that when a picture of a type of recyclable that fits into one of the 5 following categories is taken, (glass, metal, paperboard, plastic-polystyrene-specific, or plastic-other-recyclable), the model was able to classify it correctly 20 out of 25 times, being extremely confident in correct predictions (Avg: 55%). The significance of this work demonstrates how artificial intelligence can start to be a guide for humans to help make the right choices. However, suppose humans start relying on artificial intelligence too much. In that case, it can have possible unintended consequences, such as people regularly overriding their judgment based on what AI ‘thinks’ can cause people to make the same mistakes as AI, which as shown by the results above can be susceptible to making mistakes.1 This project is anticipated to open the doors for lightweight, efficient, easy, and accessible ways to not only decrease the amount of recycling contamination coming from the home or office environment but also to make it easier and faster for users to recycle. Enter recyclebot.
23
 
24
+
25
+ How to use this model in code:
26
+
27
+ First install tftools (a package made by me):
28
+
29
+ ```shell
30
+ pip install --upgrade tensorflowtools
31
+ ```
32
+
33
+ Then download the model: (You only have to do this once unless you want to update it)
34
+
35
+ ```python
36
+ import tensorflowtools
37
+ tensorflowtools.hftools.download_model_from_huggingface("sharktide", "recyclebot0", "sharktide/recyclebot0")
38
+ ```
39
+
40
+ Now, to load the model in code all you have to do is this:
41
+
42
+ ```python
43
+ #Loads the model as if you did tf.keras.models.load_model()
44
+ import tensorflowtools
45
+ model = tensorflowtools.kerastools.load_from_hf_cache("sharktide", "recyclebot0", "tf_model.h5")
46
+ model.summary
47
+ ```
48
+
49
+
50
  A Working Prototype can be found at this project's website: https://recyclesmart.verecl.app
51
 
52
  Also, the website code is also on github: https://github.com/sharktide/recyclesmart