Instructions to use basant18/Smoking-detection-MobileNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use basant18/Smoking-detection-MobileNet with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://basant18/Smoking-detection-MobileNet") - Notebooks
- Google Colab
- Kaggle
File size: 4,209 Bytes
21d6027 551ddcb f8fa535 6cb36e9 21d6027 e5522af d830d38 966c9c7 a5a63b6 7f7e98c 10c2921 c6ed16d 811caa4 4920d20 71c46a6 a627364 1943af7 6cb36e9 18633f1 551ddcb 5683479 26f12af eb9c7db 1fda346 5f0aa0c 5d1f04e 0fb5992 bac0f77 16cb051 6763bef bdaa853 f648655 5f7572f b19764f 9584915 3fb8bc1 a385c41 4c2bec7 1e45a00 2f9cc67 f8fa535 21d6027 e5522af d830d38 966c9c7 a5a63b6 7f7e98c 10c2921 c6ed16d 811caa4 4920d20 71c46a6 a627364 1943af7 6cb36e9 18633f1 551ddcb 5683479 26f12af eb9c7db 1fda346 5f0aa0c 5d1f04e 0fb5992 bac0f77 16cb051 6763bef bdaa853 f648655 5f7572f b19764f 9584915 3fb8bc1 a385c41 4c2bec7 1e45a00 2f9cc67 f8fa535 21d6027 e5522af d830d38 966c9c7 a5a63b6 7f7e98c 10c2921 c6ed16d 811caa4 4920d20 71c46a6 a627364 1943af7 6cb36e9 18633f1 551ddcb 5683479 26f12af eb9c7db 1fda346 5f0aa0c 5d1f04e 0fb5992 bac0f77 16cb051 6763bef bdaa853 f648655 5f7572f b19764f 9584915 3fb8bc1 a385c41 4c2bec7 1e45a00 2f9cc67 f8fa535 21d6027 e5522af d830d38 966c9c7 a5a63b6 7f7e98c 10c2921 c6ed16d 811caa4 4920d20 71c46a6 a627364 1943af7 6cb36e9 18633f1 551ddcb 5683479 26f12af eb9c7db 1fda346 5f0aa0c 5d1f04e 0fb5992 bac0f77 16cb051 6763bef bdaa853 f648655 5f7572f b19764f 9584915 3fb8bc1 a385c41 4c2bec7 1e45a00 2f9cc67 f8fa535 1fda346 21d6027 557d45f 21d6027 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | {
"phase": 2,
"epoch_global": 37,
"best_val_acc": 0.9777777791023254,
"best_val_loss": 0.11201294511556625,
"history": {
"loss": [
0.49225616455078125,
0.40346693992614746,
0.36795684695243835,
0.35668617486953735,
0.34522300958633423,
0.33733460307121277,
0.3224019408226013,
0.3135400116443634,
0.3115611970424652,
0.28520792722702026,
0.2716752290725708,
0.271904855966568,
0.2636116147041321,
0.25084540247917175,
0.24979569017887115,
0.3537147641181946,
0.3216423988342285,
0.2985667884349823,
0.2807298004627228,
0.26365476846694946,
0.2574348449707031,
0.24194025993347168,
0.23161178827285767,
0.22409576177597046,
0.22456999123096466,
0.22122134268283844,
0.2199689745903015,
0.2189551740884781,
0.20979627966880798,
0.21249495446681976,
0.2125702202320099,
0.2097943127155304,
0.2046484798192978,
0.21061262488365173,
0.20049527287483215,
0.20789550244808197,
0.20415180921554565
],
"accuracy": [
0.7721806168556213,
0.8166553378105164,
0.8393464684486389,
0.8433552384376526,
0.8463807702064514,
0.8516753911972046,
0.859466016292572,
0.8641555309295654,
0.8642311692237854,
0.877921462059021,
0.8815521001815796,
0.8870735764503479,
0.889267086982727,
0.892595112323761,
0.8963769674301147,
0.8523560762405396,
0.8636260628700256,
0.8742152452468872,
0.8817033767700195,
0.8875274062156677,
0.8936540484428406,
0.8977384567260742,
0.9022010564804077,
0.9084032773971558,
0.907344400882721,
0.9115800857543945,
0.9094622135162354,
0.9094622135162354,
0.9152106642723083,
0.913395345211029,
0.9116557240486145,
0.916042685508728,
0.9162696003913879,
0.9115044474601746,
0.9178579449653625,
0.916042685508728,
0.9174797534942627
],
"val_loss": [
0.23263464868068695,
0.19750243425369263,
0.19446466863155365,
0.16919085383415222,
0.15985532104969025,
0.1529870182275772,
0.17427904903888702,
0.16664457321166992,
0.1646467000246048,
0.1460321843624115,
0.12756100296974182,
0.12783141434192657,
0.11841613799333572,
0.11201294511556625,
0.11613910645246506,
0.09671363979578018,
0.09473103284835815,
0.09917833656072617,
0.09357432276010513,
0.09879012405872345,
0.10157313942909241,
0.10498888045549393,
0.10086889564990997,
0.1027996689081192,
0.10608465224504471,
0.10064270347356796,
0.08973866701126099,
0.09406672418117523,
0.09544801712036133,
0.09003451466560364,
0.09001041203737259,
0.09129680693149567,
0.09052718430757523,
0.0898459255695343,
0.09193039685487747,
0.09189973771572113,
0.09162883460521698
],
"val_accuracy": [
0.9222221970558167,
0.9388889074325562,
0.9222221970558167,
0.9333333373069763,
0.9444444179534912,
0.9666666388511658,
0.9444444179534912,
0.9444444179534912,
0.9444444179534912,
0.9444444179534912,
0.9611111283302307,
0.9722222089767456,
0.9722222089767456,
0.9777777791023254,
0.9666666388511658,
0.9611111283302307,
0.9666666388511658,
0.9722222089767456,
0.9666666388511658,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456,
0.9722222089767456
]
},
"final_test_accuracy": 0.9196428656578064,
"final_test_loss": 0.1720939576625824
} |