Skip to content

Commit aa2f91c

Browse files
Adding image and adding shuffle to notebook
1 parent a4e25d3 commit aa2f91c

4 files changed

+14
-1
lines changed

image/DepedensiDeployment.png

156 KB
Loading

notebook/TFLite_Model_Maker_(Color_Ducky).ipynb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,8 +937,12 @@
937937
"test_img_src = \"/content/Test/images\"\n",
938938
"test_annot_src = \"/content/Test/Annotation\"\n",
939939
"\n",
940+
"# Seed for shuffling\n",
941+
"seed = 42\n",
942+
"\n",
940943
"ImageFileNames = os.listdir(img_src)\n",
941944
"AnnotFileNames = os.listdir(annot_src)\n",
945+
"np.random.seed(seed)\n",
942946
"np.random.shuffle(ImageFileNames)\n",
943947
"\n",
944948
"train_ImgFileNames, val_ImgFileNames = np.split(np.array(ImageFileNames),\n",

notebook/TFLite_Model_Maker_(Ducky_Chicken).ipynb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"nbformat_minor": 0,
44
"metadata": {
55
"colab": {
6-
"provenance": []
6+
"provenance": [],
7+
"toc_visible": true
78
},
89
"kernelspec": {
910
"name": "python3",
@@ -1035,8 +1036,12 @@
10351036
"test_img_src = \"/content/Test/images\"\n",
10361037
"test_annot_src = \"/content/Test/Annotation\"\n",
10371038
"\n",
1039+
"# Seed for shuffling\n",
1040+
"seed = 42\n",
1041+
"\n",
10381042
"ImageFileNames = os.listdir(img_src)\n",
10391043
"AnnotFileNames = os.listdir(annot_src)\n",
1044+
"np.random.seed(seed)\n",
10401045
"np.random.shuffle(ImageFileNames)\n",
10411046
"\n",
10421047
"train_ImgFileNames, val_ImgFileNames = np.split(np.array(ImageFileNames),\n",

notebook/TFLite_Model_Maker_(Ducky_Frog).ipynb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,8 +1026,12 @@
10261026
"test_img_src = \"/content/Test/images\"\n",
10271027
"test_annot_src = \"/content/Test/Annotation\"\n",
10281028
"\n",
1029+
"# Seed for shuffling\n",
1030+
"seed = 42\n",
1031+
"\n",
10291032
"ImageFileNames = os.listdir(img_src)\n",
10301033
"AnnotFileNames = os.listdir(annot_src)\n",
1034+
"np.random.seed(seed)\n",
10311035
"np.random.shuffle(ImageFileNames)\n",
10321036
"\n",
10331037
"train_ImgFileNames, val_ImgFileNames = np.split(np.array(ImageFileNames),\n",

0 commit comments

Comments
 (0)