Spaces:
Runtime error
Runtime error
prasanth.thangavel
commited on
Commit
•
bb6834b
1
Parent(s):
557814e
Minor updates
Browse files- app.ipynb +10 -10
- superheroes_classifier.ipynb +31 -31
app.ipynb
CHANGED
@@ -289,7 +289,7 @@
|
|
289 |
{
|
290 |
"cell_type": "code",
|
291 |
"execution_count": 34,
|
292 |
-
"id": "
|
293 |
"metadata": {
|
294 |
"ExecuteTime": {
|
295 |
"end_time": "2023-06-04T04:27:09.939658Z",
|
@@ -622,7 +622,7 @@
|
|
622 |
},
|
623 |
{
|
624 |
"cell_type": "markdown",
|
625 |
-
"id": "
|
626 |
"metadata": {},
|
627 |
"source": [
|
628 |
"# POST request to the hugging face predict api\n",
|
@@ -633,7 +633,7 @@
|
|
633 |
{
|
634 |
"cell_type": "code",
|
635 |
"execution_count": 143,
|
636 |
-
"id": "
|
637 |
"metadata": {
|
638 |
"ExecuteTime": {
|
639 |
"end_time": "2023-06-04T05:29:27.245504Z",
|
@@ -648,7 +648,7 @@
|
|
648 |
{
|
649 |
"cell_type": "code",
|
650 |
"execution_count": 144,
|
651 |
-
"id": "
|
652 |
"metadata": {
|
653 |
"ExecuteTime": {
|
654 |
"end_time": "2023-06-04T05:29:27.362935Z",
|
@@ -663,7 +663,7 @@
|
|
663 |
{
|
664 |
"cell_type": "code",
|
665 |
"execution_count": 145,
|
666 |
-
"id": "
|
667 |
"metadata": {
|
668 |
"ExecuteTime": {
|
669 |
"end_time": "2023-06-04T05:29:27.800728Z",
|
@@ -679,7 +679,7 @@
|
|
679 |
{
|
680 |
"cell_type": "code",
|
681 |
"execution_count": 146,
|
682 |
-
"id": "
|
683 |
"metadata": {
|
684 |
"ExecuteTime": {
|
685 |
"end_time": "2023-06-04T05:29:29.585186Z",
|
@@ -703,7 +703,7 @@
|
|
703 |
{
|
704 |
"cell_type": "code",
|
705 |
"execution_count": 147,
|
706 |
-
"id": "
|
707 |
"metadata": {
|
708 |
"ExecuteTime": {
|
709 |
"end_time": "2023-06-04T05:29:29.593646Z",
|
@@ -737,7 +737,7 @@
|
|
737 |
{
|
738 |
"cell_type": "code",
|
739 |
"execution_count": 148,
|
740 |
-
"id": "
|
741 |
"metadata": {
|
742 |
"ExecuteTime": {
|
743 |
"end_time": "2023-06-04T05:29:29.601302Z",
|
@@ -763,7 +763,7 @@
|
|
763 |
{
|
764 |
"cell_type": "code",
|
765 |
"execution_count": 149,
|
766 |
-
"id": "
|
767 |
"metadata": {
|
768 |
"ExecuteTime": {
|
769 |
"end_time": "2023-06-04T05:29:29.606583Z",
|
@@ -789,7 +789,7 @@
|
|
789 |
{
|
790 |
"cell_type": "code",
|
791 |
"execution_count": null,
|
792 |
-
"id": "
|
793 |
"metadata": {},
|
794 |
"outputs": [],
|
795 |
"source": []
|
|
|
289 |
{
|
290 |
"cell_type": "code",
|
291 |
"execution_count": 34,
|
292 |
+
"id": "7c0cb370",
|
293 |
"metadata": {
|
294 |
"ExecuteTime": {
|
295 |
"end_time": "2023-06-04T04:27:09.939658Z",
|
|
|
622 |
},
|
623 |
{
|
624 |
"cell_type": "markdown",
|
625 |
+
"id": "332b1429",
|
626 |
"metadata": {},
|
627 |
"source": [
|
628 |
"# POST request to the hugging face predict api\n",
|
|
|
633 |
{
|
634 |
"cell_type": "code",
|
635 |
"execution_count": 143,
|
636 |
+
"id": "8869cb8a",
|
637 |
"metadata": {
|
638 |
"ExecuteTime": {
|
639 |
"end_time": "2023-06-04T05:29:27.245504Z",
|
|
|
648 |
{
|
649 |
"cell_type": "code",
|
650 |
"execution_count": 144,
|
651 |
+
"id": "acaf162c",
|
652 |
"metadata": {
|
653 |
"ExecuteTime": {
|
654 |
"end_time": "2023-06-04T05:29:27.362935Z",
|
|
|
663 |
{
|
664 |
"cell_type": "code",
|
665 |
"execution_count": 145,
|
666 |
+
"id": "6f598efd",
|
667 |
"metadata": {
|
668 |
"ExecuteTime": {
|
669 |
"end_time": "2023-06-04T05:29:27.800728Z",
|
|
|
679 |
{
|
680 |
"cell_type": "code",
|
681 |
"execution_count": 146,
|
682 |
+
"id": "95c63c9f",
|
683 |
"metadata": {
|
684 |
"ExecuteTime": {
|
685 |
"end_time": "2023-06-04T05:29:29.585186Z",
|
|
|
703 |
{
|
704 |
"cell_type": "code",
|
705 |
"execution_count": 147,
|
706 |
+
"id": "2c84271c",
|
707 |
"metadata": {
|
708 |
"ExecuteTime": {
|
709 |
"end_time": "2023-06-04T05:29:29.593646Z",
|
|
|
737 |
{
|
738 |
"cell_type": "code",
|
739 |
"execution_count": 148,
|
740 |
+
"id": "fac35007",
|
741 |
"metadata": {
|
742 |
"ExecuteTime": {
|
743 |
"end_time": "2023-06-04T05:29:29.601302Z",
|
|
|
763 |
{
|
764 |
"cell_type": "code",
|
765 |
"execution_count": 149,
|
766 |
+
"id": "fd35acd7",
|
767 |
"metadata": {
|
768 |
"ExecuteTime": {
|
769 |
"end_time": "2023-06-04T05:29:29.606583Z",
|
|
|
789 |
{
|
790 |
"cell_type": "code",
|
791 |
"execution_count": null,
|
792 |
+
"id": "8093355c",
|
793 |
"metadata": {},
|
794 |
"outputs": [],
|
795 |
"source": []
|
superheroes_classifier.ipynb
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
"execution_count": 1,
|
6 |
-
"id": "
|
7 |
"metadata": {
|
8 |
"ExecuteTime": {
|
9 |
"end_time": "2023-06-04T03:06:52.716364Z",
|
@@ -52,7 +52,7 @@
|
|
52 |
{
|
53 |
"cell_type": "code",
|
54 |
"execution_count": 3,
|
55 |
-
"id": "
|
56 |
"metadata": {
|
57 |
"ExecuteTime": {
|
58 |
"end_time": "2023-06-04T03:06:54.702370Z",
|
@@ -85,7 +85,7 @@
|
|
85 |
},
|
86 |
{
|
87 |
"cell_type": "markdown",
|
88 |
-
"id": "
|
89 |
"metadata": {},
|
90 |
"source": [
|
91 |
"# Gathering data"
|
@@ -94,7 +94,7 @@
|
|
94 |
{
|
95 |
"cell_type": "code",
|
96 |
"execution_count": 5,
|
97 |
-
"id": "
|
98 |
"metadata": {
|
99 |
"ExecuteTime": {
|
100 |
"end_time": "2023-06-04T03:06:54.774183Z",
|
@@ -111,7 +111,7 @@
|
|
111 |
{
|
112 |
"cell_type": "code",
|
113 |
"execution_count": 6,
|
114 |
-
"id": "
|
115 |
"metadata": {
|
116 |
"ExecuteTime": {
|
117 |
"end_time": "2023-06-04T03:06:56.282729Z",
|
@@ -165,7 +165,7 @@
|
|
165 |
{
|
166 |
"cell_type": "code",
|
167 |
"execution_count": 7,
|
168 |
-
"id": "
|
169 |
"metadata": {
|
170 |
"ExecuteTime": {
|
171 |
"end_time": "2023-06-04T03:06:56.286927Z",
|
@@ -180,7 +180,7 @@
|
|
180 |
{
|
181 |
"cell_type": "code",
|
182 |
"execution_count": 10,
|
183 |
-
"id": "
|
184 |
"metadata": {
|
185 |
"ExecuteTime": {
|
186 |
"end_time": "2023-06-04T03:07:01.747219Z",
|
@@ -2969,7 +2969,7 @@
|
|
2969 |
{
|
2970 |
"cell_type": "code",
|
2971 |
"execution_count": 9,
|
2972 |
-
"id": "
|
2973 |
"metadata": {
|
2974 |
"ExecuteTime": {
|
2975 |
"end_time": "2023-06-04T03:06:59.396377Z",
|
@@ -2996,7 +2996,7 @@
|
|
2996 |
},
|
2997 |
{
|
2998 |
"cell_type": "markdown",
|
2999 |
-
"id": "
|
3000 |
"metadata": {},
|
3001 |
"source": [
|
3002 |
"## Image types"
|
@@ -3005,7 +3005,7 @@
|
|
3005 |
{
|
3006 |
"cell_type": "code",
|
3007 |
"execution_count": 30,
|
3008 |
-
"id": "
|
3009 |
"metadata": {
|
3010 |
"ExecuteTime": {
|
3011 |
"end_time": "2023-06-04T03:30:32.938436Z",
|
@@ -3021,7 +3021,7 @@
|
|
3021 |
{
|
3022 |
"cell_type": "code",
|
3023 |
"execution_count": 32,
|
3024 |
-
"id": "
|
3025 |
"metadata": {
|
3026 |
"ExecuteTime": {
|
3027 |
"end_time": "2023-06-04T03:30:35.673421Z",
|
@@ -3042,7 +3042,7 @@
|
|
3042 |
{
|
3043 |
"cell_type": "code",
|
3044 |
"execution_count": 33,
|
3045 |
-
"id": "
|
3046 |
"metadata": {
|
3047 |
"ExecuteTime": {
|
3048 |
"end_time": "2023-06-04T03:30:36.660798Z",
|
@@ -3069,7 +3069,7 @@
|
|
3069 |
{
|
3070 |
"cell_type": "code",
|
3071 |
"execution_count": 34,
|
3072 |
-
"id": "
|
3073 |
"metadata": {
|
3074 |
"ExecuteTime": {
|
3075 |
"end_time": "2023-06-04T03:30:38.036216Z",
|
@@ -3096,7 +3096,7 @@
|
|
3096 |
{
|
3097 |
"cell_type": "code",
|
3098 |
"execution_count": 35,
|
3099 |
-
"id": "
|
3100 |
"metadata": {
|
3101 |
"ExecuteTime": {
|
3102 |
"end_time": "2023-06-04T03:30:38.866094Z",
|
@@ -3111,7 +3111,7 @@
|
|
3111 |
{
|
3112 |
"cell_type": "code",
|
3113 |
"execution_count": 68,
|
3114 |
-
"id": "
|
3115 |
"metadata": {
|
3116 |
"ExecuteTime": {
|
3117 |
"end_time": "2023-06-04T03:44:43.293961Z",
|
@@ -3133,7 +3133,7 @@
|
|
3133 |
},
|
3134 |
{
|
3135 |
"cell_type": "markdown",
|
3136 |
-
"id": "
|
3137 |
"metadata": {
|
3138 |
"ExecuteTime": {
|
3139 |
"end_time": "2023-06-04T03:02:08.375996Z",
|
@@ -3147,7 +3147,7 @@
|
|
3147 |
{
|
3148 |
"cell_type": "code",
|
3149 |
"execution_count": 36,
|
3150 |
-
"id": "
|
3151 |
"metadata": {
|
3152 |
"ExecuteTime": {
|
3153 |
"end_time": "2023-06-04T03:30:40.288477Z",
|
@@ -3167,7 +3167,7 @@
|
|
3167 |
{
|
3168 |
"cell_type": "code",
|
3169 |
"execution_count": 37,
|
3170 |
-
"id": "
|
3171 |
"metadata": {
|
3172 |
"ExecuteTime": {
|
3173 |
"end_time": "2023-06-04T03:30:40.643649Z",
|
@@ -3182,7 +3182,7 @@
|
|
3182 |
{
|
3183 |
"cell_type": "code",
|
3184 |
"execution_count": 38,
|
3185 |
-
"id": "
|
3186 |
"metadata": {
|
3187 |
"ExecuteTime": {
|
3188 |
"end_time": "2023-06-04T03:30:43.264370Z",
|
@@ -3207,7 +3207,7 @@
|
|
3207 |
},
|
3208 |
{
|
3209 |
"cell_type": "markdown",
|
3210 |
-
"id": "
|
3211 |
"metadata": {},
|
3212 |
"source": [
|
3213 |
"# Training our model, and using it to clean our data"
|
@@ -3216,7 +3216,7 @@
|
|
3216 |
{
|
3217 |
"cell_type": "code",
|
3218 |
"execution_count": 39,
|
3219 |
-
"id": "
|
3220 |
"metadata": {
|
3221 |
"ExecuteTime": {
|
3222 |
"end_time": "2023-06-04T03:30:48.769656Z",
|
@@ -3234,7 +3234,7 @@
|
|
3234 |
{
|
3235 |
"cell_type": "code",
|
3236 |
"execution_count": 40,
|
3237 |
-
"id": "
|
3238 |
"metadata": {
|
3239 |
"ExecuteTime": {
|
3240 |
"end_time": "2023-06-04T03:32:49.315953Z",
|
@@ -3430,7 +3430,7 @@
|
|
3430 |
{
|
3431 |
"cell_type": "code",
|
3432 |
"execution_count": 41,
|
3433 |
-
"id": "
|
3434 |
"metadata": {
|
3435 |
"ExecuteTime": {
|
3436 |
"end_time": "2023-06-04T03:33:20.181617Z",
|
@@ -3531,7 +3531,7 @@
|
|
3531 |
{
|
3532 |
"cell_type": "code",
|
3533 |
"execution_count": 43,
|
3534 |
-
"id": "
|
3535 |
"metadata": {
|
3536 |
"ExecuteTime": {
|
3537 |
"end_time": "2023-06-04T03:33:27.387435Z",
|
@@ -3594,7 +3594,7 @@
|
|
3594 |
{
|
3595 |
"cell_type": "code",
|
3596 |
"execution_count": 44,
|
3597 |
-
"id": "
|
3598 |
"metadata": {
|
3599 |
"ExecuteTime": {
|
3600 |
"end_time": "2023-06-04T03:33:41.090450Z",
|
@@ -3700,7 +3700,7 @@
|
|
3700 |
{
|
3701 |
"cell_type": "code",
|
3702 |
"execution_count": 28,
|
3703 |
-
"id": "
|
3704 |
"metadata": {
|
3705 |
"ExecuteTime": {
|
3706 |
"end_time": "2023-06-04T03:30:19.391467Z",
|
@@ -3715,7 +3715,7 @@
|
|
3715 |
},
|
3716 |
{
|
3717 |
"cell_type": "markdown",
|
3718 |
-
"id": "
|
3719 |
"metadata": {},
|
3720 |
"source": [
|
3721 |
"We can see that amongst our \"black bears\" is an image that contains two bears: one grizzly, one black. So, we should choose `<Delete>` in the menu under this image. `ImageClassifierCleaner` doesn't actually do the deleting or changing of labels for you; it just returns the indices of items to change. So, for instance, to delete (`unlink`) all images selected for deletion, we would run:\n",
|
@@ -3737,7 +3737,7 @@
|
|
3737 |
},
|
3738 |
{
|
3739 |
"cell_type": "markdown",
|
3740 |
-
"id": "
|
3741 |
"metadata": {},
|
3742 |
"source": [
|
3743 |
"> note: No Need for Big Data: After cleaning the dataset using these steps, we generally are seeing 100% accuracy on this task. We even see that result when we download a lot fewer images than the 150 per class we're using here. As you can see, the common complaint that _you need massive amounts of data to do deep learning_ can be a very long way from the truth!"
|
@@ -3745,7 +3745,7 @@
|
|
3745 |
},
|
3746 |
{
|
3747 |
"cell_type": "markdown",
|
3748 |
-
"id": "
|
3749 |
"metadata": {},
|
3750 |
"source": [
|
3751 |
"# Turning Your Model into an Online Application"
|
@@ -3754,7 +3754,7 @@
|
|
3754 |
{
|
3755 |
"cell_type": "code",
|
3756 |
"execution_count": 45,
|
3757 |
-
"id": "
|
3758 |
"metadata": {
|
3759 |
"ExecuteTime": {
|
3760 |
"end_time": "2023-06-04T03:33:44.896505Z",
|
@@ -3919,7 +3919,7 @@
|
|
3919 |
{
|
3920 |
"cell_type": "code",
|
3921 |
"execution_count": 56,
|
3922 |
-
"id": "
|
3923 |
"metadata": {
|
3924 |
"ExecuteTime": {
|
3925 |
"end_time": "2023-06-04T03:35:21.029154Z",
|
|
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
"execution_count": 1,
|
6 |
+
"id": "e98cd38d",
|
7 |
"metadata": {
|
8 |
"ExecuteTime": {
|
9 |
"end_time": "2023-06-04T03:06:52.716364Z",
|
|
|
52 |
{
|
53 |
"cell_type": "code",
|
54 |
"execution_count": 3,
|
55 |
+
"id": "f2fe3ae3",
|
56 |
"metadata": {
|
57 |
"ExecuteTime": {
|
58 |
"end_time": "2023-06-04T03:06:54.702370Z",
|
|
|
85 |
},
|
86 |
{
|
87 |
"cell_type": "markdown",
|
88 |
+
"id": "467c0889",
|
89 |
"metadata": {},
|
90 |
"source": [
|
91 |
"# Gathering data"
|
|
|
94 |
{
|
95 |
"cell_type": "code",
|
96 |
"execution_count": 5,
|
97 |
+
"id": "6f2d5dbd",
|
98 |
"metadata": {
|
99 |
"ExecuteTime": {
|
100 |
"end_time": "2023-06-04T03:06:54.774183Z",
|
|
|
111 |
{
|
112 |
"cell_type": "code",
|
113 |
"execution_count": 6,
|
114 |
+
"id": "f2fedfea",
|
115 |
"metadata": {
|
116 |
"ExecuteTime": {
|
117 |
"end_time": "2023-06-04T03:06:56.282729Z",
|
|
|
165 |
{
|
166 |
"cell_type": "code",
|
167 |
"execution_count": 7,
|
168 |
+
"id": "c6e4a01d",
|
169 |
"metadata": {
|
170 |
"ExecuteTime": {
|
171 |
"end_time": "2023-06-04T03:06:56.286927Z",
|
|
|
180 |
{
|
181 |
"cell_type": "code",
|
182 |
"execution_count": 10,
|
183 |
+
"id": "6a736161",
|
184 |
"metadata": {
|
185 |
"ExecuteTime": {
|
186 |
"end_time": "2023-06-04T03:07:01.747219Z",
|
|
|
2969 |
{
|
2970 |
"cell_type": "code",
|
2971 |
"execution_count": 9,
|
2972 |
+
"id": "c19541fd",
|
2973 |
"metadata": {
|
2974 |
"ExecuteTime": {
|
2975 |
"end_time": "2023-06-04T03:06:59.396377Z",
|
|
|
2996 |
},
|
2997 |
{
|
2998 |
"cell_type": "markdown",
|
2999 |
+
"id": "fbf14a6a",
|
3000 |
"metadata": {},
|
3001 |
"source": [
|
3002 |
"## Image types"
|
|
|
3005 |
{
|
3006 |
"cell_type": "code",
|
3007 |
"execution_count": 30,
|
3008 |
+
"id": "b68fe0bf",
|
3009 |
"metadata": {
|
3010 |
"ExecuteTime": {
|
3011 |
"end_time": "2023-06-04T03:30:32.938436Z",
|
|
|
3021 |
{
|
3022 |
"cell_type": "code",
|
3023 |
"execution_count": 32,
|
3024 |
+
"id": "9e868f5a",
|
3025 |
"metadata": {
|
3026 |
"ExecuteTime": {
|
3027 |
"end_time": "2023-06-04T03:30:35.673421Z",
|
|
|
3042 |
{
|
3043 |
"cell_type": "code",
|
3044 |
"execution_count": 33,
|
3045 |
+
"id": "2778b270",
|
3046 |
"metadata": {
|
3047 |
"ExecuteTime": {
|
3048 |
"end_time": "2023-06-04T03:30:36.660798Z",
|
|
|
3069 |
{
|
3070 |
"cell_type": "code",
|
3071 |
"execution_count": 34,
|
3072 |
+
"id": "d71ddf1a",
|
3073 |
"metadata": {
|
3074 |
"ExecuteTime": {
|
3075 |
"end_time": "2023-06-04T03:30:38.036216Z",
|
|
|
3096 |
{
|
3097 |
"cell_type": "code",
|
3098 |
"execution_count": 35,
|
3099 |
+
"id": "52e4d38a",
|
3100 |
"metadata": {
|
3101 |
"ExecuteTime": {
|
3102 |
"end_time": "2023-06-04T03:30:38.866094Z",
|
|
|
3111 |
{
|
3112 |
"cell_type": "code",
|
3113 |
"execution_count": 68,
|
3114 |
+
"id": "9bbaccd7",
|
3115 |
"metadata": {
|
3116 |
"ExecuteTime": {
|
3117 |
"end_time": "2023-06-04T03:44:43.293961Z",
|
|
|
3133 |
},
|
3134 |
{
|
3135 |
"cell_type": "markdown",
|
3136 |
+
"id": "4e082969",
|
3137 |
"metadata": {
|
3138 |
"ExecuteTime": {
|
3139 |
"end_time": "2023-06-04T03:02:08.375996Z",
|
|
|
3147 |
{
|
3148 |
"cell_type": "code",
|
3149 |
"execution_count": 36,
|
3150 |
+
"id": "fc6e8e26",
|
3151 |
"metadata": {
|
3152 |
"ExecuteTime": {
|
3153 |
"end_time": "2023-06-04T03:30:40.288477Z",
|
|
|
3167 |
{
|
3168 |
"cell_type": "code",
|
3169 |
"execution_count": 37,
|
3170 |
+
"id": "97ef66fe",
|
3171 |
"metadata": {
|
3172 |
"ExecuteTime": {
|
3173 |
"end_time": "2023-06-04T03:30:40.643649Z",
|
|
|
3182 |
{
|
3183 |
"cell_type": "code",
|
3184 |
"execution_count": 38,
|
3185 |
+
"id": "0f919a9f",
|
3186 |
"metadata": {
|
3187 |
"ExecuteTime": {
|
3188 |
"end_time": "2023-06-04T03:30:43.264370Z",
|
|
|
3207 |
},
|
3208 |
{
|
3209 |
"cell_type": "markdown",
|
3210 |
+
"id": "0ad8e6a6",
|
3211 |
"metadata": {},
|
3212 |
"source": [
|
3213 |
"# Training our model, and using it to clean our data"
|
|
|
3216 |
{
|
3217 |
"cell_type": "code",
|
3218 |
"execution_count": 39,
|
3219 |
+
"id": "76248673",
|
3220 |
"metadata": {
|
3221 |
"ExecuteTime": {
|
3222 |
"end_time": "2023-06-04T03:30:48.769656Z",
|
|
|
3234 |
{
|
3235 |
"cell_type": "code",
|
3236 |
"execution_count": 40,
|
3237 |
+
"id": "57a56877",
|
3238 |
"metadata": {
|
3239 |
"ExecuteTime": {
|
3240 |
"end_time": "2023-06-04T03:32:49.315953Z",
|
|
|
3430 |
{
|
3431 |
"cell_type": "code",
|
3432 |
"execution_count": 41,
|
3433 |
+
"id": "f4d3f720",
|
3434 |
"metadata": {
|
3435 |
"ExecuteTime": {
|
3436 |
"end_time": "2023-06-04T03:33:20.181617Z",
|
|
|
3531 |
{
|
3532 |
"cell_type": "code",
|
3533 |
"execution_count": 43,
|
3534 |
+
"id": "716948be",
|
3535 |
"metadata": {
|
3536 |
"ExecuteTime": {
|
3537 |
"end_time": "2023-06-04T03:33:27.387435Z",
|
|
|
3594 |
{
|
3595 |
"cell_type": "code",
|
3596 |
"execution_count": 44,
|
3597 |
+
"id": "861140f6",
|
3598 |
"metadata": {
|
3599 |
"ExecuteTime": {
|
3600 |
"end_time": "2023-06-04T03:33:41.090450Z",
|
|
|
3700 |
{
|
3701 |
"cell_type": "code",
|
3702 |
"execution_count": 28,
|
3703 |
+
"id": "861ddf7e",
|
3704 |
"metadata": {
|
3705 |
"ExecuteTime": {
|
3706 |
"end_time": "2023-06-04T03:30:19.391467Z",
|
|
|
3715 |
},
|
3716 |
{
|
3717 |
"cell_type": "markdown",
|
3718 |
+
"id": "84c80eb8",
|
3719 |
"metadata": {},
|
3720 |
"source": [
|
3721 |
"We can see that amongst our \"black bears\" is an image that contains two bears: one grizzly, one black. So, we should choose `<Delete>` in the menu under this image. `ImageClassifierCleaner` doesn't actually do the deleting or changing of labels for you; it just returns the indices of items to change. So, for instance, to delete (`unlink`) all images selected for deletion, we would run:\n",
|
|
|
3737 |
},
|
3738 |
{
|
3739 |
"cell_type": "markdown",
|
3740 |
+
"id": "bd736ab0",
|
3741 |
"metadata": {},
|
3742 |
"source": [
|
3743 |
"> note: No Need for Big Data: After cleaning the dataset using these steps, we generally are seeing 100% accuracy on this task. We even see that result when we download a lot fewer images than the 150 per class we're using here. As you can see, the common complaint that _you need massive amounts of data to do deep learning_ can be a very long way from the truth!"
|
|
|
3745 |
},
|
3746 |
{
|
3747 |
"cell_type": "markdown",
|
3748 |
+
"id": "8b174e6a",
|
3749 |
"metadata": {},
|
3750 |
"source": [
|
3751 |
"# Turning Your Model into an Online Application"
|
|
|
3754 |
{
|
3755 |
"cell_type": "code",
|
3756 |
"execution_count": 45,
|
3757 |
+
"id": "a2d75bf4",
|
3758 |
"metadata": {
|
3759 |
"ExecuteTime": {
|
3760 |
"end_time": "2023-06-04T03:33:44.896505Z",
|
|
|
3919 |
{
|
3920 |
"cell_type": "code",
|
3921 |
"execution_count": 56,
|
3922 |
+
"id": "00db3bdf",
|
3923 |
"metadata": {
|
3924 |
"ExecuteTime": {
|
3925 |
"end_time": "2023-06-04T03:35:21.029154Z",
|