diff --git a/crop/SimData.ipynb b/crop/SimData.ipynb
index d767f96a117d43b08d4edac8e1000949d7f60a2c..c475a8013d724c6a2cd2fb9558d8e144741063a1 100644
--- a/crop/SimData.ipynb
+++ b/crop/SimData.ipynb
@@ -2,7 +2,7 @@
  "cells": [
   {
    "cell_type": "code",
-   "execution_count": 2,
+   "execution_count": 57,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -11,28 +11,35 @@
     "import pillow_heif\n",
     "import pandas as pd\n",
     "import numpy as np\n",
-    "from random import randint"
+    "from torchvision.utils import save_image\n",
+    "import torchvision.transforms.functional as fn\n",
+    "import torchvision.transforms as transforms\n",
+    "import matplotlib.pyplot as plt"
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": 3,
+   "execution_count": 58,
    "metadata": {},
    "outputs": [],
    "source": [
-    "# TODO: overlap?\n",
-    "def generate_data(bg: Image, beetle_set: list[Image], num_beetles_arr: list[int]):\n",
-    "    set_size = len(beetle_set)\n",
-    "    width, height = bg.size\n",
+    "# generates new dataset by pasting beetles and non-beetles in the same picture. \n",
+    "#returns array of new images and coordinates\n",
+    "#TODO: make sure that the beetles and non-beetles don't overlap with each other\n",
     "\n",
+    "def generate_data(bg: list[Image], beetle_set: list[Image], num_beetles_arr: list[int]):\n",
+    "    set_size = len(beetle_set)\n",
+    "    set_bg_size = len(bg)\n",
     "    sim_arr, coords_arr = [],[]\n",
     "\n",
     "    for num_beetles in num_beetles_arr:\n",
-    "        bg_temp = bg.copy()\n",
+    "        bg_id = np.random.randint(0, set_bg_size)\n",
+    "        bg_temp = bg[bg_id].copy()\n",
+    "        width, height = bg_temp.size\n",
     "        beetle_coords = []\n",
     "        for _ in range(num_beetles):\n",
     "            # get random beetle image\n",
-    "            beetle_id = np.random.randint(0, set_size-1)\n",
+    "            beetle_id = np.random.randint(0, set_size)\n",
     "            beetle_img = beetle_set[beetle_id]\n",
     "            beetle_width, beetle_height = beetle_img.size\n",
     "\n",
@@ -41,10 +48,14 @@
     "            y = np.random.randint(0, height - beetle_height)\n",
     "\n",
     "            # get random beetle rotation\n",
-    "            angle = np.random.randint(0, 359)\n",
+    "            angle = np.random.randint(0, 360)\n",
     "            beetle_img = beetle_img.rotate(angle, resample=Image.BICUBIC)\n",
     "\n",
     "            bg_temp.paste(beetle_img, box=(x,y), mask=beetle_img)\n",
+    "            \n",
+    "            #centers x and y for YOLOv5 PyTorch label\n",
+    "            x += beetle_width/2\n",
+    "            y += beetle_height/2\n",
     "            beetle_coords.append((beetle_id, x, y, beetle_width, beetle_height, angle))\n",
     "        sim_arr.append(bg_temp)\n",
     "        coords_arr.append(beetle_coords)\n",
@@ -54,10 +65,11 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 4,
+   "execution_count": 59,
    "metadata": {},
    "outputs": [],
    "source": [
+    "#???\n",
     "def find_coeffs(source_coords, target_coords):\n",
     "    matrix = []\n",
     "    for s, t in zip(source_coords, target_coords):\n",
@@ -71,63 +83,1319 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 7,
+   "execution_count": 60,
    "metadata": {},
    "outputs": [],
    "source": [
-    "bg = Image.open(\"bg.png\")\n",
-    "beetle_imgs = [Image.open(f) for f in glob.glob(\"beetles/*.png\")]\n",
+    "bg = Image.open(\"imgs/bg.png\")\n",
+    "beetles = []\n",
+    "for file in glob.glob(r\"/raid/projects/akhot2/group-01-phys371-sp2023/crop/beetles/*\"):\n",
+    "    b0 = Image.open(file)\n",
+    "    beetles.append(b0);\n",
     "\n",
     "# map corners of trap to corners of image\n",
     "coeffs = find_coeffs([(128,6), (1904,62), (2113,3137), (3,3228)], \n",
     "                     [(0,0), (bg.size[0], 0), (bg.size[0], bg.size[1]), (0, bg.size[1])])\n",
-    "bg_flat = bg.transform(bg.size, Image.PERSPECTIVE, coeffs, Image.BICUBIC)\n",
-    "#bg_flat"
+    "bg_flat = bg.transform(bg.size, Image.PERSPECTIVE, coeffs, Image.BICUBIC)"
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": 17,
+   "execution_count": 61,
    "metadata": {},
    "outputs": [],
    "source": [
-    "sim_img_arr, coords_arr = generate_data(bg_flat, beetle_imgs, [3])"
-   ]
-  },
-  {
-   "cell_type": "markdown",
-   "metadata": {},
-   "source": [
-    "format\n",
-    "0 x y width height (each value normalized to size of image)\n",
-    "\n",
-    "\n"
+    "beetle_counts = np.random.randint(0, 6, size=1250)\n",
+    "sim_img_arr, coords_arr = generate_data([bg_flat], beetles, beetle_counts)"
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": 55,
+   "execution_count": 62,
    "metadata": {},
    "outputs": [],
    "source": [
+    "#exports images and coordinates in YOLOv5 PyTorch format\n",
     "def export(img_arr, coords_arr):\n",
     "    s = \"\"\n",
+    "    image_set = \"train\"\n",
+    "    change = len(img_arr)*0.8\n",
     "    for i in range(len(img_arr)):\n",
+    "        s = \"\"\n",
+    "        img = img_arr[i]\n",
     "        for coord in coords_arr[i]:\n",
     "            c, x, y, w, h, a = coord\n",
-    "            img = img_arr[i]\n",
     "            s += f\"{0} {x/img.size[0]} {y/img.size[1]} {w/img.size[0]} {h/img.size[1]}\\n\"\n",
-    "\n",
-    "        with open(f\"sim{i}.txt\", \"w\") as f:\n",
+    "        print(i)\n",
+    "        if i > change:\n",
+    "            image_set = \"test\"\n",
+    "        with open(\"data/\" +image_set+ f\"/labels/sim{i}.txt\", \"w\") as f:\n",
     "            f.write(s)\n",
-    "        img.save(f\"sim{i}.png\")"
+    "        img.save(\"data/\" +image_set+ f\"/images/sim{i}.png\")"
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": 56,
+   "execution_count": 63,
    "metadata": {},
-   "outputs": [],
+   "outputs": [
+    {
+     "name": "stdout",
+     "output_type": "stream",
+     "text": [
+      "0\n",
+      "1\n",
+      "2\n",
+      "3\n",
+      "4\n",
+      "5\n",
+      "6\n",
+      "7\n",
+      "8\n",
+      "9\n",
+      "10\n",
+      "11\n",
+      "12\n",
+      "13\n",
+      "14\n",
+      "15\n",
+      "16\n",
+      "17\n",
+      "18\n",
+      "19\n",
+      "20\n",
+      "21\n",
+      "22\n",
+      "23\n",
+      "24\n",
+      "25\n",
+      "26\n",
+      "27\n",
+      "28\n",
+      "29\n",
+      "30\n",
+      "31\n",
+      "32\n",
+      "33\n",
+      "34\n",
+      "35\n",
+      "36\n",
+      "37\n",
+      "38\n",
+      "39\n",
+      "40\n",
+      "41\n",
+      "42\n",
+      "43\n",
+      "44\n",
+      "45\n",
+      "46\n",
+      "47\n",
+      "48\n",
+      "49\n",
+      "50\n",
+      "51\n",
+      "52\n",
+      "53\n",
+      "54\n",
+      "55\n",
+      "56\n",
+      "57\n",
+      "58\n",
+      "59\n",
+      "60\n",
+      "61\n",
+      "62\n",
+      "63\n",
+      "64\n",
+      "65\n",
+      "66\n",
+      "67\n",
+      "68\n",
+      "69\n",
+      "70\n",
+      "71\n",
+      "72\n",
+      "73\n",
+      "74\n",
+      "75\n",
+      "76\n",
+      "77\n",
+      "78\n",
+      "79\n",
+      "80\n",
+      "81\n",
+      "82\n",
+      "83\n",
+      "84\n",
+      "85\n",
+      "86\n",
+      "87\n",
+      "88\n",
+      "89\n",
+      "90\n",
+      "91\n",
+      "92\n",
+      "93\n",
+      "94\n",
+      "95\n",
+      "96\n",
+      "97\n",
+      "98\n",
+      "99\n",
+      "100\n",
+      "101\n",
+      "102\n",
+      "103\n",
+      "104\n",
+      "105\n",
+      "106\n",
+      "107\n",
+      "108\n",
+      "109\n",
+      "110\n",
+      "111\n",
+      "112\n",
+      "113\n",
+      "114\n",
+      "115\n",
+      "116\n",
+      "117\n",
+      "118\n",
+      "119\n",
+      "120\n",
+      "121\n",
+      "122\n",
+      "123\n",
+      "124\n",
+      "125\n",
+      "126\n",
+      "127\n",
+      "128\n",
+      "129\n",
+      "130\n",
+      "131\n",
+      "132\n",
+      "133\n",
+      "134\n",
+      "135\n",
+      "136\n",
+      "137\n",
+      "138\n",
+      "139\n",
+      "140\n",
+      "141\n",
+      "142\n",
+      "143\n",
+      "144\n",
+      "145\n",
+      "146\n",
+      "147\n",
+      "148\n",
+      "149\n",
+      "150\n",
+      "151\n",
+      "152\n",
+      "153\n",
+      "154\n",
+      "155\n",
+      "156\n",
+      "157\n",
+      "158\n",
+      "159\n",
+      "160\n",
+      "161\n",
+      "162\n",
+      "163\n",
+      "164\n",
+      "165\n",
+      "166\n",
+      "167\n",
+      "168\n",
+      "169\n",
+      "170\n",
+      "171\n",
+      "172\n",
+      "173\n",
+      "174\n",
+      "175\n",
+      "176\n",
+      "177\n",
+      "178\n",
+      "179\n",
+      "180\n",
+      "181\n",
+      "182\n",
+      "183\n",
+      "184\n",
+      "185\n",
+      "186\n",
+      "187\n",
+      "188\n",
+      "189\n",
+      "190\n",
+      "191\n",
+      "192\n",
+      "193\n",
+      "194\n",
+      "195\n",
+      "196\n",
+      "197\n",
+      "198\n",
+      "199\n",
+      "200\n",
+      "201\n",
+      "202\n",
+      "203\n",
+      "204\n",
+      "205\n",
+      "206\n",
+      "207\n",
+      "208\n",
+      "209\n",
+      "210\n",
+      "211\n",
+      "212\n",
+      "213\n",
+      "214\n",
+      "215\n",
+      "216\n",
+      "217\n",
+      "218\n",
+      "219\n",
+      "220\n",
+      "221\n",
+      "222\n",
+      "223\n",
+      "224\n",
+      "225\n",
+      "226\n",
+      "227\n",
+      "228\n",
+      "229\n",
+      "230\n",
+      "231\n",
+      "232\n",
+      "233\n",
+      "234\n",
+      "235\n",
+      "236\n",
+      "237\n",
+      "238\n",
+      "239\n",
+      "240\n",
+      "241\n",
+      "242\n",
+      "243\n",
+      "244\n",
+      "245\n",
+      "246\n",
+      "247\n",
+      "248\n",
+      "249\n",
+      "250\n",
+      "251\n",
+      "252\n",
+      "253\n",
+      "254\n",
+      "255\n",
+      "256\n",
+      "257\n",
+      "258\n",
+      "259\n",
+      "260\n",
+      "261\n",
+      "262\n",
+      "263\n",
+      "264\n",
+      "265\n",
+      "266\n",
+      "267\n",
+      "268\n",
+      "269\n",
+      "270\n",
+      "271\n",
+      "272\n",
+      "273\n",
+      "274\n",
+      "275\n",
+      "276\n",
+      "277\n",
+      "278\n",
+      "279\n",
+      "280\n",
+      "281\n",
+      "282\n",
+      "283\n",
+      "284\n",
+      "285\n",
+      "286\n",
+      "287\n",
+      "288\n",
+      "289\n",
+      "290\n",
+      "291\n",
+      "292\n",
+      "293\n",
+      "294\n",
+      "295\n",
+      "296\n",
+      "297\n",
+      "298\n",
+      "299\n",
+      "300\n",
+      "301\n",
+      "302\n",
+      "303\n",
+      "304\n",
+      "305\n",
+      "306\n",
+      "307\n",
+      "308\n",
+      "309\n",
+      "310\n",
+      "311\n",
+      "312\n",
+      "313\n",
+      "314\n",
+      "315\n",
+      "316\n",
+      "317\n",
+      "318\n",
+      "319\n",
+      "320\n",
+      "321\n",
+      "322\n",
+      "323\n",
+      "324\n",
+      "325\n",
+      "326\n",
+      "327\n",
+      "328\n",
+      "329\n",
+      "330\n",
+      "331\n",
+      "332\n",
+      "333\n",
+      "334\n",
+      "335\n",
+      "336\n",
+      "337\n",
+      "338\n",
+      "339\n",
+      "340\n",
+      "341\n",
+      "342\n",
+      "343\n",
+      "344\n",
+      "345\n",
+      "346\n",
+      "347\n",
+      "348\n",
+      "349\n",
+      "350\n",
+      "351\n",
+      "352\n",
+      "353\n",
+      "354\n",
+      "355\n",
+      "356\n",
+      "357\n",
+      "358\n",
+      "359\n",
+      "360\n",
+      "361\n",
+      "362\n",
+      "363\n",
+      "364\n",
+      "365\n",
+      "366\n",
+      "367\n",
+      "368\n",
+      "369\n",
+      "370\n",
+      "371\n",
+      "372\n",
+      "373\n",
+      "374\n",
+      "375\n",
+      "376\n",
+      "377\n",
+      "378\n",
+      "379\n",
+      "380\n",
+      "381\n",
+      "382\n",
+      "383\n",
+      "384\n",
+      "385\n",
+      "386\n",
+      "387\n",
+      "388\n",
+      "389\n",
+      "390\n",
+      "391\n",
+      "392\n",
+      "393\n",
+      "394\n",
+      "395\n",
+      "396\n",
+      "397\n",
+      "398\n",
+      "399\n",
+      "400\n",
+      "401\n",
+      "402\n",
+      "403\n",
+      "404\n",
+      "405\n",
+      "406\n",
+      "407\n",
+      "408\n",
+      "409\n",
+      "410\n",
+      "411\n",
+      "412\n",
+      "413\n",
+      "414\n",
+      "415\n",
+      "416\n",
+      "417\n",
+      "418\n",
+      "419\n",
+      "420\n",
+      "421\n",
+      "422\n",
+      "423\n",
+      "424\n",
+      "425\n",
+      "426\n",
+      "427\n",
+      "428\n",
+      "429\n",
+      "430\n",
+      "431\n",
+      "432\n",
+      "433\n",
+      "434\n",
+      "435\n",
+      "436\n",
+      "437\n",
+      "438\n",
+      "439\n",
+      "440\n",
+      "441\n",
+      "442\n",
+      "443\n",
+      "444\n",
+      "445\n",
+      "446\n",
+      "447\n",
+      "448\n",
+      "449\n",
+      "450\n",
+      "451\n",
+      "452\n",
+      "453\n",
+      "454\n",
+      "455\n",
+      "456\n",
+      "457\n",
+      "458\n",
+      "459\n",
+      "460\n",
+      "461\n",
+      "462\n",
+      "463\n",
+      "464\n",
+      "465\n",
+      "466\n",
+      "467\n",
+      "468\n",
+      "469\n",
+      "470\n",
+      "471\n",
+      "472\n",
+      "473\n",
+      "474\n",
+      "475\n",
+      "476\n",
+      "477\n",
+      "478\n",
+      "479\n",
+      "480\n",
+      "481\n",
+      "482\n",
+      "483\n",
+      "484\n",
+      "485\n",
+      "486\n",
+      "487\n",
+      "488\n",
+      "489\n",
+      "490\n",
+      "491\n",
+      "492\n",
+      "493\n",
+      "494\n",
+      "495\n",
+      "496\n",
+      "497\n",
+      "498\n",
+      "499\n",
+      "500\n",
+      "501\n",
+      "502\n",
+      "503\n",
+      "504\n",
+      "505\n",
+      "506\n",
+      "507\n",
+      "508\n",
+      "509\n",
+      "510\n",
+      "511\n",
+      "512\n",
+      "513\n",
+      "514\n",
+      "515\n",
+      "516\n",
+      "517\n",
+      "518\n",
+      "519\n",
+      "520\n",
+      "521\n",
+      "522\n",
+      "523\n",
+      "524\n",
+      "525\n",
+      "526\n",
+      "527\n",
+      "528\n",
+      "529\n",
+      "530\n",
+      "531\n",
+      "532\n",
+      "533\n",
+      "534\n",
+      "535\n",
+      "536\n",
+      "537\n",
+      "538\n",
+      "539\n",
+      "540\n",
+      "541\n",
+      "542\n",
+      "543\n",
+      "544\n",
+      "545\n",
+      "546\n",
+      "547\n",
+      "548\n",
+      "549\n",
+      "550\n",
+      "551\n",
+      "552\n",
+      "553\n",
+      "554\n",
+      "555\n",
+      "556\n",
+      "557\n",
+      "558\n",
+      "559\n",
+      "560\n",
+      "561\n",
+      "562\n",
+      "563\n",
+      "564\n",
+      "565\n",
+      "566\n",
+      "567\n",
+      "568\n",
+      "569\n",
+      "570\n",
+      "571\n",
+      "572\n",
+      "573\n",
+      "574\n",
+      "575\n",
+      "576\n",
+      "577\n",
+      "578\n",
+      "579\n",
+      "580\n",
+      "581\n",
+      "582\n",
+      "583\n",
+      "584\n",
+      "585\n",
+      "586\n",
+      "587\n",
+      "588\n",
+      "589\n",
+      "590\n",
+      "591\n",
+      "592\n",
+      "593\n",
+      "594\n",
+      "595\n",
+      "596\n",
+      "597\n",
+      "598\n",
+      "599\n",
+      "600\n",
+      "601\n",
+      "602\n",
+      "603\n",
+      "604\n",
+      "605\n",
+      "606\n",
+      "607\n",
+      "608\n",
+      "609\n",
+      "610\n",
+      "611\n",
+      "612\n",
+      "613\n",
+      "614\n",
+      "615\n",
+      "616\n",
+      "617\n",
+      "618\n",
+      "619\n",
+      "620\n",
+      "621\n",
+      "622\n",
+      "623\n",
+      "624\n",
+      "625\n",
+      "626\n",
+      "627\n",
+      "628\n",
+      "629\n",
+      "630\n",
+      "631\n",
+      "632\n",
+      "633\n",
+      "634\n",
+      "635\n",
+      "636\n",
+      "637\n",
+      "638\n",
+      "639\n",
+      "640\n",
+      "641\n",
+      "642\n",
+      "643\n",
+      "644\n",
+      "645\n",
+      "646\n",
+      "647\n",
+      "648\n",
+      "649\n",
+      "650\n",
+      "651\n",
+      "652\n",
+      "653\n",
+      "654\n",
+      "655\n",
+      "656\n",
+      "657\n",
+      "658\n",
+      "659\n",
+      "660\n",
+      "661\n",
+      "662\n",
+      "663\n",
+      "664\n",
+      "665\n",
+      "666\n",
+      "667\n",
+      "668\n",
+      "669\n",
+      "670\n",
+      "671\n",
+      "672\n",
+      "673\n",
+      "674\n",
+      "675\n",
+      "676\n",
+      "677\n",
+      "678\n",
+      "679\n",
+      "680\n",
+      "681\n",
+      "682\n",
+      "683\n",
+      "684\n",
+      "685\n",
+      "686\n",
+      "687\n",
+      "688\n",
+      "689\n",
+      "690\n",
+      "691\n",
+      "692\n",
+      "693\n",
+      "694\n",
+      "695\n",
+      "696\n",
+      "697\n",
+      "698\n",
+      "699\n",
+      "700\n",
+      "701\n",
+      "702\n",
+      "703\n",
+      "704\n",
+      "705\n",
+      "706\n",
+      "707\n",
+      "708\n",
+      "709\n",
+      "710\n",
+      "711\n",
+      "712\n",
+      "713\n",
+      "714\n",
+      "715\n",
+      "716\n",
+      "717\n",
+      "718\n",
+      "719\n",
+      "720\n",
+      "721\n",
+      "722\n",
+      "723\n",
+      "724\n",
+      "725\n",
+      "726\n",
+      "727\n",
+      "728\n",
+      "729\n",
+      "730\n",
+      "731\n",
+      "732\n",
+      "733\n",
+      "734\n",
+      "735\n",
+      "736\n",
+      "737\n",
+      "738\n",
+      "739\n",
+      "740\n",
+      "741\n",
+      "742\n",
+      "743\n",
+      "744\n",
+      "745\n",
+      "746\n",
+      "747\n",
+      "748\n",
+      "749\n",
+      "750\n",
+      "751\n",
+      "752\n",
+      "753\n",
+      "754\n",
+      "755\n",
+      "756\n",
+      "757\n",
+      "758\n",
+      "759\n",
+      "760\n",
+      "761\n",
+      "762\n",
+      "763\n",
+      "764\n",
+      "765\n",
+      "766\n",
+      "767\n",
+      "768\n",
+      "769\n",
+      "770\n",
+      "771\n",
+      "772\n",
+      "773\n",
+      "774\n",
+      "775\n",
+      "776\n",
+      "777\n",
+      "778\n",
+      "779\n",
+      "780\n",
+      "781\n",
+      "782\n",
+      "783\n",
+      "784\n",
+      "785\n",
+      "786\n",
+      "787\n",
+      "788\n",
+      "789\n",
+      "790\n",
+      "791\n",
+      "792\n",
+      "793\n",
+      "794\n",
+      "795\n",
+      "796\n",
+      "797\n",
+      "798\n",
+      "799\n",
+      "800\n",
+      "801\n",
+      "802\n",
+      "803\n",
+      "804\n",
+      "805\n",
+      "806\n",
+      "807\n",
+      "808\n",
+      "809\n",
+      "810\n",
+      "811\n",
+      "812\n",
+      "813\n",
+      "814\n",
+      "815\n",
+      "816\n",
+      "817\n",
+      "818\n",
+      "819\n",
+      "820\n",
+      "821\n",
+      "822\n",
+      "823\n",
+      "824\n",
+      "825\n",
+      "826\n",
+      "827\n",
+      "828\n",
+      "829\n",
+      "830\n",
+      "831\n",
+      "832\n",
+      "833\n",
+      "834\n",
+      "835\n",
+      "836\n",
+      "837\n",
+      "838\n",
+      "839\n",
+      "840\n",
+      "841\n",
+      "842\n",
+      "843\n",
+      "844\n",
+      "845\n",
+      "846\n",
+      "847\n",
+      "848\n",
+      "849\n",
+      "850\n",
+      "851\n",
+      "852\n",
+      "853\n",
+      "854\n",
+      "855\n",
+      "856\n",
+      "857\n",
+      "858\n",
+      "859\n",
+      "860\n",
+      "861\n",
+      "862\n",
+      "863\n",
+      "864\n",
+      "865\n",
+      "866\n",
+      "867\n",
+      "868\n",
+      "869\n",
+      "870\n",
+      "871\n",
+      "872\n",
+      "873\n",
+      "874\n",
+      "875\n",
+      "876\n",
+      "877\n",
+      "878\n",
+      "879\n",
+      "880\n",
+      "881\n",
+      "882\n",
+      "883\n",
+      "884\n",
+      "885\n",
+      "886\n",
+      "887\n",
+      "888\n",
+      "889\n",
+      "890\n",
+      "891\n",
+      "892\n",
+      "893\n",
+      "894\n",
+      "895\n",
+      "896\n",
+      "897\n",
+      "898\n",
+      "899\n",
+      "900\n",
+      "901\n",
+      "902\n",
+      "903\n",
+      "904\n",
+      "905\n",
+      "906\n",
+      "907\n",
+      "908\n",
+      "909\n",
+      "910\n",
+      "911\n",
+      "912\n",
+      "913\n",
+      "914\n",
+      "915\n",
+      "916\n",
+      "917\n",
+      "918\n",
+      "919\n",
+      "920\n",
+      "921\n",
+      "922\n",
+      "923\n",
+      "924\n",
+      "925\n",
+      "926\n",
+      "927\n",
+      "928\n",
+      "929\n",
+      "930\n",
+      "931\n",
+      "932\n",
+      "933\n",
+      "934\n",
+      "935\n",
+      "936\n",
+      "937\n",
+      "938\n",
+      "939\n",
+      "940\n",
+      "941\n",
+      "942\n",
+      "943\n",
+      "944\n",
+      "945\n",
+      "946\n",
+      "947\n",
+      "948\n",
+      "949\n",
+      "950\n",
+      "951\n",
+      "952\n",
+      "953\n",
+      "954\n",
+      "955\n",
+      "956\n",
+      "957\n",
+      "958\n",
+      "959\n",
+      "960\n",
+      "961\n",
+      "962\n",
+      "963\n",
+      "964\n",
+      "965\n",
+      "966\n",
+      "967\n",
+      "968\n",
+      "969\n",
+      "970\n",
+      "971\n",
+      "972\n",
+      "973\n",
+      "974\n",
+      "975\n",
+      "976\n",
+      "977\n",
+      "978\n",
+      "979\n",
+      "980\n",
+      "981\n",
+      "982\n",
+      "983\n",
+      "984\n",
+      "985\n",
+      "986\n",
+      "987\n",
+      "988\n",
+      "989\n",
+      "990\n",
+      "991\n",
+      "992\n",
+      "993\n",
+      "994\n",
+      "995\n",
+      "996\n",
+      "997\n",
+      "998\n",
+      "999\n",
+      "1000\n",
+      "1001\n",
+      "1002\n",
+      "1003\n",
+      "1004\n",
+      "1005\n",
+      "1006\n",
+      "1007\n",
+      "1008\n",
+      "1009\n",
+      "1010\n",
+      "1011\n",
+      "1012\n",
+      "1013\n",
+      "1014\n",
+      "1015\n",
+      "1016\n",
+      "1017\n",
+      "1018\n",
+      "1019\n",
+      "1020\n",
+      "1021\n",
+      "1022\n",
+      "1023\n",
+      "1024\n",
+      "1025\n",
+      "1026\n",
+      "1027\n",
+      "1028\n",
+      "1029\n",
+      "1030\n",
+      "1031\n",
+      "1032\n",
+      "1033\n",
+      "1034\n",
+      "1035\n",
+      "1036\n",
+      "1037\n",
+      "1038\n",
+      "1039\n",
+      "1040\n",
+      "1041\n",
+      "1042\n",
+      "1043\n",
+      "1044\n",
+      "1045\n",
+      "1046\n",
+      "1047\n",
+      "1048\n",
+      "1049\n",
+      "1050\n",
+      "1051\n",
+      "1052\n",
+      "1053\n",
+      "1054\n",
+      "1055\n",
+      "1056\n",
+      "1057\n",
+      "1058\n",
+      "1059\n",
+      "1060\n",
+      "1061\n",
+      "1062\n",
+      "1063\n",
+      "1064\n",
+      "1065\n",
+      "1066\n",
+      "1067\n",
+      "1068\n",
+      "1069\n",
+      "1070\n",
+      "1071\n",
+      "1072\n",
+      "1073\n",
+      "1074\n",
+      "1075\n",
+      "1076\n",
+      "1077\n",
+      "1078\n",
+      "1079\n",
+      "1080\n",
+      "1081\n",
+      "1082\n",
+      "1083\n",
+      "1084\n",
+      "1085\n",
+      "1086\n",
+      "1087\n",
+      "1088\n",
+      "1089\n",
+      "1090\n",
+      "1091\n",
+      "1092\n",
+      "1093\n",
+      "1094\n",
+      "1095\n",
+      "1096\n",
+      "1097\n",
+      "1098\n",
+      "1099\n",
+      "1100\n",
+      "1101\n",
+      "1102\n",
+      "1103\n",
+      "1104\n",
+      "1105\n",
+      "1106\n",
+      "1107\n",
+      "1108\n",
+      "1109\n",
+      "1110\n",
+      "1111\n",
+      "1112\n",
+      "1113\n",
+      "1114\n",
+      "1115\n",
+      "1116\n",
+      "1117\n",
+      "1118\n",
+      "1119\n",
+      "1120\n",
+      "1121\n",
+      "1122\n",
+      "1123\n",
+      "1124\n",
+      "1125\n",
+      "1126\n",
+      "1127\n",
+      "1128\n",
+      "1129\n",
+      "1130\n",
+      "1131\n",
+      "1132\n",
+      "1133\n",
+      "1134\n",
+      "1135\n",
+      "1136\n",
+      "1137\n",
+      "1138\n",
+      "1139\n",
+      "1140\n",
+      "1141\n",
+      "1142\n",
+      "1143\n",
+      "1144\n",
+      "1145\n",
+      "1146\n",
+      "1147\n",
+      "1148\n",
+      "1149\n",
+      "1150\n",
+      "1151\n",
+      "1152\n",
+      "1153\n",
+      "1154\n",
+      "1155\n",
+      "1156\n",
+      "1157\n",
+      "1158\n",
+      "1159\n",
+      "1160\n",
+      "1161\n",
+      "1162\n",
+      "1163\n",
+      "1164\n",
+      "1165\n",
+      "1166\n",
+      "1167\n",
+      "1168\n",
+      "1169\n",
+      "1170\n",
+      "1171\n",
+      "1172\n",
+      "1173\n",
+      "1174\n",
+      "1175\n",
+      "1176\n",
+      "1177\n",
+      "1178\n",
+      "1179\n",
+      "1180\n",
+      "1181\n",
+      "1182\n",
+      "1183\n",
+      "1184\n",
+      "1185\n",
+      "1186\n",
+      "1187\n",
+      "1188\n",
+      "1189\n",
+      "1190\n",
+      "1191\n",
+      "1192\n",
+      "1193\n",
+      "1194\n",
+      "1195\n",
+      "1196\n",
+      "1197\n",
+      "1198\n",
+      "1199\n",
+      "1200\n",
+      "1201\n",
+      "1202\n",
+      "1203\n",
+      "1204\n",
+      "1205\n",
+      "1206\n",
+      "1207\n",
+      "1208\n",
+      "1209\n",
+      "1210\n",
+      "1211\n",
+      "1212\n",
+      "1213\n",
+      "1214\n",
+      "1215\n",
+      "1216\n",
+      "1217\n",
+      "1218\n",
+      "1219\n",
+      "1220\n",
+      "1221\n",
+      "1222\n",
+      "1223\n",
+      "1224\n",
+      "1225\n",
+      "1226\n",
+      "1227\n",
+      "1228\n",
+      "1229\n",
+      "1230\n",
+      "1231\n",
+      "1232\n",
+      "1233\n",
+      "1234\n",
+      "1235\n",
+      "1236\n",
+      "1237\n",
+      "1238\n",
+      "1239\n",
+      "1240\n",
+      "1241\n",
+      "1242\n",
+      "1243\n",
+      "1244\n",
+      "1245\n",
+      "1246\n",
+      "1247\n",
+      "1248\n",
+      "1249\n"
+     ]
+    }
+   ],
    "source": [
     "export(sim_img_arr, coords_arr)"
    ]
@@ -137,12 +1405,96 @@
    "execution_count": null,
    "metadata": {},
    "outputs": [],
-   "source": []
+   "source": [
+    "format\n",
+    "0 x y width height (each value normalized to size of image)\n",
+    "\n",
+    "\n"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 49,
+   "metadata": {},
+   "outputs": [
+    {
+     "name": "stdout",
+     "output_type": "stream",
+     "text": [
+      "RGBA\n",
+      "(2, 4)\n"
+     ]
+    },
+    {
+     "data": {
+      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAMIAAAD8CAYAAAAlkXvsAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKeklEQVR4nO3dT4xdZR3G8e9jKUgEI0UhBIlU0g0aU2pTMRCiiX9qN9WFCS60C5ISA4kuXFRJtC4h0YUhkpRAqIlCSJTIBrUhGDZGWrGWllLaKtFC08YYA25U6s/FeSe9aafl/pk5c+/M95O8OXfeOffOmZM+vWdOO++TqkJa6d611AcgTQODIGEQJMAgSIBBkACDIAFLEIQkm5McSXIsyY6+v740n/T57whJVgGvAp8FTgB7ga9U1cu9HYQ0j77fETYBx6rqz1X1H+AJYGvPxyCd55Kev971wN8GPj4BfOLcnZJsB7a3Dz/ew3FpGaqqDLtv30GY78DOuzarql3ALoAk/h8QLbq+L41OADcMfPxB4I2ej0E6T99B2AusS7I2yaXAncDTPR+DdJ5eL42q6u0k9wK/BlYBj1bVoT6PQZpPr7dPx+HPCBrXKD8s+y/LEgZBAgyCBBgECTAIEmAQJMAgSIBBkACDIAEGQQIMggQYBAkwCBJgECTAIEiAQZAAgyABBkECDIIEGAQJMAgSYBAkwCBIgEGQAIMgARMGIclrSV5Ksj/Jvja3JsmeJEfb9qqB/b/dmnKOJPn8pAcvLZSFeEf4dFWtr6qN7eMdwLNVtQ54tn1MkpvpFv39CLAZ+HFr0JGW3GJcGm0FdrfHu4EvDsw/UVX/rqq/AMfoGnSkJTdpEAr4TZI/tJYbgGur6iRA217T5udry7l+vhdNsj3JvrnLLWmxTbos/G1V9UaSa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hfb/NXAs8DRtl0z8Jz76O4WHWHgzhCwsb3GceBBWlGJd40cizFGuWtkY46WLRtzpBEZBAmDIAEGQQIMggQYBAkwCBJgECTAIEiAQZAAuGSpD2AI/6L7P0uC9wN/X+qDmBLvdC4+NMqLzUIQjvh7CZ0k+zwXnYU+F14aSRgECZiNIOxa6gOYIp6Lsxb0XEz97yNIfZiFdwRp0RkEiSkOQpLNbcnIY0l2LPXxLIYkjyY5neTgwNyKXEozyQ1JnktyuC0t+o0238/5GOUXnPsawCq6X/D/MHAp3RKSNy/1cS3C93kHsAE4ODDXy1Ka0zaA64AN7fGVwKvte+7lfEzrO8Im4FhV/bmq/gM8QbeU5LJSVc8D/zhneisrcCnNqjpZVS+2x28Bh+lWQuzlfExrEC60bORKsGhLac6KJDcCt9AtON3L+ZjWIAy9POQKMvFSmrMgyRXAz4FvVtWbF9t1nrmxz8e0BuFCy0auBCt2Kc0kq+lC8NOq+kWb7uV8TGsQ9gLrkqxNcilwJ91SkivBilxKsx37I8DhqvrhwKf6OR9LfbfgIncRttDdOTgO3LfUx7NI3+PjwEngv3R/k91FT0tpTtsAbqe7hDkA7G9jS1/nw/9iITG9l0ZSrwyChEGQAIMgAQZBAgyCBBgECYD/A79FAQx8InyaAAAAAElFTkSuQmCC\n",
+      "text/plain": [
+       "<Figure size 432x288 with 1 Axes>"
+      ]
+     },
+     "metadata": {
+      "needs_background": "light"
+     },
+     "output_type": "display_data"
+    },
+    {
+     "data": {
+      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAMIAAAD8CAYAAAAlkXvsAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKeklEQVR4nO3dT4xdZR3G8e9jKUgEI0UhBIlU0g0aU2pTMRCiiX9qN9WFCS60C5ISA4kuXFRJtC4h0YUhkpRAqIlCSJTIBrUhGDZGWrGW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QKMvFSmrMgyRXAz4FvVtWbF9t1nrmxz8e0BuFCy0auBCt2Kc0kq+lC8NOq+kWb7uV8TGsQ9gLrkqxNcilwJ91SkivBilxKsx37I8DhqvrhwKf6OR9LfbfgIncRttDdOTgO3LfUx7NI3+PjwEngv3R/k91FT0tpTtsAbqe7hDkA7G9jS1/nw/9iITG9l0ZSrwyChEGQAIMgAQZBAgyCBBgECYD/A79FAQx8InyaAAAAAElFTkSuQmCC\n",
+      "text/plain": [
+       "<Figure size 432x288 with 1 Axes>"
+      ]
+     },
+     "metadata": {
+      "needs_background": "light"
+     },
+     "output_type": "display_data"
+    }
+   ],
+   "source": [
+    "from torchvision.utils import draw_bounding_boxes\n",
+    "import torch\n",
+    "import torchvision\n",
+    "transform = transforms.Compose([transforms.ToTensor()])\n",
+    "for i in range(len(sim_img_arr)):\n",
+    "    print(sim_img_arr[i].mode)\n",
+    "    \n",
+    "    tensor = transform(sim_img_arr[i].convert(\"RGB\")).type(torch.uint8)\n",
+    "    coords_list = np.zeros((len(coords_arr[i]), 4))\n",
+    "    j=0\n",
+    "    for k in coords_arr[i]:\n",
+    "        c, x, y, w, h, a = k\n",
+    "        coords_list[j, 0] = x\n",
+    "        coords_list[j, 1] = y\n",
+    "        coords_list[j, 2] = int(x+w)\n",
+    "        coords_list[j, 3] = int(y+h)\n",
+    "        j+=1\n",
+    "    print(coords_list.shape)\n",
+    "    draw_bounding_boxes(tensor, torch.Tensor(coords_list))\n",
+    "    plt.imshow(tensor.permute(1,2,0)[:,:,0:3])\n",
+    "    plt.show()\n",
+    "    break\n",
+    "    \n"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "First:\n",
+    " - created 1000 images on a clean background variable 1 to 5 of the same beetle, model detected well on test set of 100 images (val/exp or exp2 or exp3) (proof of concept)\n",
+    " - created 1000 images on a clean background variable 0 to 5 beetles of 6 different types of beetles, performing\n",
+    " \n",
+    "TODO:\n",
+    " - created 1000 images on a clean background variable 0 to 5 beetles of 6 different images and 0 to 5 non-beetles of _ different images, performing\n",
+    " - created 1000 images on a clean background variable 0 to 10 beetles of 15 different images and 0 to 10 non-beetles of _ different images\n",
+    " - created 1000 images on a clean background variable 0 to 10 beetles of 15 different images and 0 to 10 non-beetles of _ different images on a dirty background\n",
+    " - perform auto cropping on arduino and include "
+   ]
   }
  ],
  "metadata": {
   "kernelspec": {
-   "display_name": "tf",
+   "display_name": "Python 3 (ipykernel)",
    "language": "python",
    "name": "python3"
   },
@@ -156,9 +1508,8 @@
    "name": "python",
    "nbconvert_exporter": "python",
    "pygments_lexer": "ipython3",
-   "version": "3.10.9"
+   "version": "3.9.12"
   },
-  "orig_nbformat": 4,
   "vscode": {
    "interpreter": {
     "hash": "5501471bf458387d76cdb9f487659a1abd30d9114d99ffb68b67c5dd3feef292"
diff --git a/crop/F2_3AUGUST2022.jpg b/crop/imgs/F2_3AUGUST2022.jpg
similarity index 100%
rename from crop/F2_3AUGUST2022.jpg
rename to crop/imgs/F2_3AUGUST2022.jpg
diff --git a/crop/bg.png b/crop/imgs/bg.png
similarity index 100%
rename from crop/bg.png
rename to crop/imgs/bg.png
diff --git a/crop/non_beetles/non_beetle0.png b/crop/non_beetles/non_beetle0.png
new file mode 100644
index 0000000000000000000000000000000000000000..4d4ddc1364e100dc19feff3364b5185dc583b25e
Binary files /dev/null and b/crop/non_beetles/non_beetle0.png differ
diff --git a/crop/non_beetles/non_beetle1.png b/crop/non_beetles/non_beetle1.png
new file mode 100644
index 0000000000000000000000000000000000000000..9686dda090e0eededeba5f23f338aade8b6eed74
Binary files /dev/null and b/crop/non_beetles/non_beetle1.png differ
diff --git a/crop/non_beetles/non_beetle2.png b/crop/non_beetles/non_beetle2.png
new file mode 100644
index 0000000000000000000000000000000000000000..e009e140a33b0db27f88cde985467051eb962177
Binary files /dev/null and b/crop/non_beetles/non_beetle2.png differ
diff --git a/crop/non_beetles/non_beetle3.png b/crop/non_beetles/non_beetle3.png
new file mode 100644
index 0000000000000000000000000000000000000000..987fa38b63c8e3109b5693379a875018665dc711
Binary files /dev/null and b/crop/non_beetles/non_beetle3.png differ
diff --git a/crop/non_beetles/non_beetle4.png b/crop/non_beetles/non_beetle4.png
new file mode 100644
index 0000000000000000000000000000000000000000..6baa5e6062d4988252fc738b07151871c9c2fcf4
Binary files /dev/null and b/crop/non_beetles/non_beetle4.png differ
diff --git a/crop/non_beetles/non_beetle5.png b/crop/non_beetles/non_beetle5.png
new file mode 100644
index 0000000000000000000000000000000000000000..25a99dd678fb7e4a23e412c6dd1fa93dde797501
Binary files /dev/null and b/crop/non_beetles/non_beetle5.png differ
diff --git a/crop/non_beetles/non_beetle6.png b/crop/non_beetles/non_beetle6.png
new file mode 100644
index 0000000000000000000000000000000000000000..efa1cb88c27030d7ba01afbe6d8273cae4dcd509
Binary files /dev/null and b/crop/non_beetles/non_beetle6.png differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/F1_curve.png b/yolov5_model/runs/train/6beetle_30_epoch/F1_curve.png
new file mode 100644
index 0000000000000000000000000000000000000000..e486908bf06e41c15b769c829f861e1be326310f
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/F1_curve.png differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/PR_curve.png b/yolov5_model/runs/train/6beetle_30_epoch/PR_curve.png
new file mode 100644
index 0000000000000000000000000000000000000000..27814bcc0386125d50fe02a8edfe93f696d8d1ab
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/PR_curve.png differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/P_curve.png b/yolov5_model/runs/train/6beetle_30_epoch/P_curve.png
new file mode 100644
index 0000000000000000000000000000000000000000..5224eb12f655f4b982f6bab3f22bf7d18b259fef
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/P_curve.png differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/R_curve.png b/yolov5_model/runs/train/6beetle_30_epoch/R_curve.png
new file mode 100644
index 0000000000000000000000000000000000000000..a4e04f0cb635ef4c5c65dba2cb611eda9746dfe3
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/R_curve.png differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/confusion_matrix.png b/yolov5_model/runs/train/6beetle_30_epoch/confusion_matrix.png
new file mode 100644
index 0000000000000000000000000000000000000000..850b5a86a6d7f348a122e435f25f07c8922076b2
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/confusion_matrix.png differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/events.out.tfevents.1677460973.hal-dgx.5585.0 b/yolov5_model/runs/train/6beetle_30_epoch/events.out.tfevents.1677460973.hal-dgx.5585.0
new file mode 100644
index 0000000000000000000000000000000000000000..6625d7342445e4c07aa5cc39980e360c269c4c79
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/events.out.tfevents.1677460973.hal-dgx.5585.0 differ
diff --git a/yolov5_model/runs/train/exp/hyp.yaml b/yolov5_model/runs/train/6beetle_30_epoch/hyp.yaml
similarity index 100%
rename from yolov5_model/runs/train/exp/hyp.yaml
rename to yolov5_model/runs/train/6beetle_30_epoch/hyp.yaml
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/labels.jpg b/yolov5_model/runs/train/6beetle_30_epoch/labels.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..377708dc9d6775b655f6cc29def3941cced5cc0e
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/labels.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/labels_correlogram.jpg b/yolov5_model/runs/train/6beetle_30_epoch/labels_correlogram.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..2c0a2e51387052ffebe9c1e5786f4a9007b751f6
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/labels_correlogram.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/opt.yaml b/yolov5_model/runs/train/6beetle_30_epoch/opt.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..066eafae1c55e07f3d7a67274d612ca4635caf7e
--- /dev/null
+++ b/yolov5_model/runs/train/6beetle_30_epoch/opt.yaml
@@ -0,0 +1,68 @@
+weights: yolov5m.pt
+cfg: ''
+data: /projects/akhot2/group-01-phys371-sp2023/yolov5_model/data/beetles.yaml
+hyp:
+  lr0: 0.01
+  lrf: 0.01
+  momentum: 0.937
+  weight_decay: 0.0005
+  warmup_epochs: 3.0
+  warmup_momentum: 0.8
+  warmup_bias_lr: 0.1
+  box: 0.05
+  cls: 0.5
+  cls_pw: 1.0
+  obj: 1.0
+  obj_pw: 1.0
+  iou_t: 0.2
+  anchor_t: 4.0
+  fl_gamma: 0.0
+  hsv_h: 0.015
+  hsv_s: 0.7
+  hsv_v: 0.4
+  degrees: 0.0
+  translate: 0.1
+  scale: 0.5
+  shear: 0.0
+  perspective: 0.0
+  flipud: 0.0
+  fliplr: 0.5
+  mosaic: 1.0
+  mixup: 0.0
+  copy_paste: 0.0
+epochs: 30
+batch_size: 16
+imgsz: 1280
+rect: false
+resume: false
+nosave: false
+noval: false
+noautoanchor: false
+noplots: false
+evolve: null
+bucket: ''
+cache: null
+image_weights: false
+device: ''
+multi_scale: false
+single_cls: false
+optimizer: SGD
+sync_bn: false
+workers: 40
+project: runs/train
+name: exp
+exist_ok: false
+quad: false
+cos_lr: false
+label_smoothing: 0.0
+patience: 100
+freeze:
+- 0
+save_period: -1
+seed: 0
+local_rank: -1
+entity: null
+upload_dataset: false
+bbox_interval: -1
+artifact_alias: latest
+save_dir: runs/train/exp14
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/results.csv b/yolov5_model/runs/train/6beetle_30_epoch/results.csv
new file mode 100644
index 0000000000000000000000000000000000000000..8b39527d47a000562ca85cd60866716162c6d75a
--- /dev/null
+++ b/yolov5_model/runs/train/6beetle_30_epoch/results.csv
@@ -0,0 +1,31 @@
+               epoch,      train/box_loss,      train/obj_loss,      train/cls_loss,   metrics/precision,      metrics/recall,     metrics/mAP_0.5,metrics/mAP_0.5:0.95,        val/box_loss,        val/obj_loss,        val/cls_loss,               x/lr0,               x/lr1,               x/lr2
+                   0,            0.088528,            0.053824,                   0,             0.36393,             0.69626,             0.43014,             0.12782,            0.066783,            0.024315,                   0,            0.070476,           0.0032804,           0.0032804
+                   1,            0.069395,            0.026505,                   0,             0.29405,             0.94205,             0.29515,             0.10084,            0.069764,            0.019618,                   0,            0.040258,           0.0063955,           0.0063955
+                   2,             0.06626,            0.020283,                   0,             0.38572,             0.76159,             0.39954,             0.11646,             0.06823,            0.017204,                   0,           0.0098197,           0.0092906,           0.0092906
+                   3,            0.058401,            0.018056,                   0,             0.44842,             0.80795,             0.59281,             0.26819,            0.053659,            0.016442,                   0,             0.00901,             0.00901,             0.00901
+                   4,            0.050479,             0.01615,                   0,             0.87631,              0.9702,             0.93333,             0.38929,            0.047041,            0.014822,                   0,             0.00901,             0.00901,             0.00901
+                   5,            0.044084,            0.014618,                   0,             0.99339,             0.99488,             0.99409,             0.53026,            0.031072,            0.013345,                   0,             0.00868,             0.00868,             0.00868
+                   6,            0.038829,             0.01355,                   0,             0.99945,             0.99669,               0.995,             0.68291,            0.035629,            0.011882,                   0,             0.00835,             0.00835,             0.00835
+                   7,            0.035219,            0.013494,                   0,             0.98506,             0.99669,             0.99395,             0.55846,            0.032584,            0.012667,                   0,             0.00802,             0.00802,             0.00802
+                   8,            0.033027,            0.012771,                   0,                   1,             0.99639,               0.995,             0.59871,            0.030749,            0.011781,                   0,             0.00769,             0.00769,             0.00769
+                   9,             0.03076,            0.012084,                   0,             0.99978,             0.99669,               0.995,             0.68194,            0.027393,            0.010798,                   0,             0.00736,             0.00736,             0.00736
+                  10,            0.027931,            0.011738,                   0,             0.99969,             0.99669,               0.995,             0.69653,            0.025421,            0.010677,                   0,             0.00703,             0.00703,             0.00703
+                  11,            0.026893,            0.010864,                   0,              0.9997,             0.99669,               0.995,             0.64308,             0.02588,            0.010726,                   0,              0.0067,              0.0067,              0.0067
+                  12,            0.025891,            0.010558,                   0,              0.9997,             0.99669,               0.995,             0.73511,            0.021744,           0.0096614,                   0,             0.00637,             0.00637,             0.00637
+                  13,            0.024502,            0.010285,                   0,             0.99982,             0.99669,               0.995,             0.68417,            0.025434,            0.009995,                   0,             0.00604,             0.00604,             0.00604
+                  14,            0.023452,            0.010378,                   0,             0.99987,             0.99669,               0.995,             0.81139,            0.016016,           0.0091467,                   0,             0.00571,             0.00571,             0.00571
+                  15,            0.021093,           0.0096709,                   0,             0.99963,             0.99669,               0.995,              0.7844,            0.019651,           0.0093482,                   0,             0.00538,             0.00538,             0.00538
+                  16,            0.020885,           0.0094017,                   0,             0.99968,             0.99669,               0.995,              0.8273,            0.015273,           0.0086163,                   0,             0.00505,             0.00505,             0.00505
+                  17,            0.019271,           0.0088992,                   0,             0.99972,             0.99669,               0.995,             0.82915,            0.016877,           0.0085796,                   0,             0.00472,             0.00472,             0.00472
+                  18,            0.019061,           0.0091101,                   0,             0.99966,             0.99669,               0.995,             0.83786,            0.014578,           0.0085793,                   0,             0.00439,             0.00439,             0.00439
+                  19,            0.017827,           0.0089283,                   0,             0.99973,             0.99669,               0.995,             0.78222,            0.017715,           0.0094559,                   0,             0.00406,             0.00406,             0.00406
+                  20,            0.016731,           0.0081994,                   0,             0.99951,             0.99669,               0.995,             0.86993,            0.012459,             0.00758,                   0,             0.00373,             0.00373,             0.00373
+                  21,            0.015272,           0.0082685,                   0,             0.99963,             0.99669,               0.995,             0.84409,            0.013512,           0.0078769,                   0,              0.0034,              0.0034,              0.0034
+                  22,            0.014758,           0.0076506,                   0,             0.99966,             0.99669,               0.995,             0.87155,             0.01211,            0.007893,                   0,             0.00307,             0.00307,             0.00307
+                  23,            0.014148,           0.0075135,                   0,             0.99971,             0.99669,               0.995,             0.88147,            0.011902,           0.0073956,                   0,             0.00274,             0.00274,             0.00274
+                  24,            0.012989,           0.0074651,                   0,             0.99976,             0.99669,               0.995,             0.87713,            0.011334,           0.0073206,                   0,             0.00241,             0.00241,             0.00241
+                  25,            0.011998,           0.0072684,                   0,             0.99973,             0.99669,               0.995,             0.89481,            0.010161,           0.0070812,                   0,             0.00208,             0.00208,             0.00208
+                  26,            0.011544,           0.0070505,                   0,             0.99976,             0.99669,               0.995,             0.90464,           0.0093077,           0.0065691,                   0,             0.00175,             0.00175,             0.00175
+                  27,            0.010831,           0.0067344,                   0,             0.99969,             0.99669,               0.995,             0.88357,            0.010854,           0.0074362,                   0,             0.00142,             0.00142,             0.00142
+                  28,            0.010046,           0.0065638,                   0,             0.99834,             0.99823,               0.995,             0.90294,           0.0091529,           0.0066082,                   0,             0.00109,             0.00109,             0.00109
+                  29,           0.0094646,           0.0065512,                   0,             0.99952,             0.99669,               0.995,             0.90215,           0.0092059,           0.0066807,                   0,             0.00076,             0.00076,             0.00076
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/results.png b/yolov5_model/runs/train/6beetle_30_epoch/results.png
new file mode 100644
index 0000000000000000000000000000000000000000..66d417da673671addc64708247ba5cb70debeee1
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/results.png differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/train_batch0.jpg b/yolov5_model/runs/train/6beetle_30_epoch/train_batch0.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..33f4363a18b0a13281628bd60da6bc62e3cfcdff
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/train_batch0.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/train_batch1.jpg b/yolov5_model/runs/train/6beetle_30_epoch/train_batch1.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..705ac06d8f923ce19ccbaabda5566763faffa7ac
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/train_batch1.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/train_batch2.jpg b/yolov5_model/runs/train/6beetle_30_epoch/train_batch2.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..148344f8fbc5ff6b3dfd16674b21789c5e7b4593
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/train_batch2.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/val_batch0_labels.jpg b/yolov5_model/runs/train/6beetle_30_epoch/val_batch0_labels.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..f1d8f08cbc272846354768353722e45298e93704
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/val_batch0_labels.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/val_batch0_pred.jpg b/yolov5_model/runs/train/6beetle_30_epoch/val_batch0_pred.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..79b1cf3325b97def8b3b9c3acb339760cc9d2966
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/val_batch0_pred.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/val_batch1_labels.jpg b/yolov5_model/runs/train/6beetle_30_epoch/val_batch1_labels.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..94ede294ae29830b307ca9a1a5e451ac098cc46f
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/val_batch1_labels.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/val_batch1_pred.jpg b/yolov5_model/runs/train/6beetle_30_epoch/val_batch1_pred.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..c1d52f50bcb3172947b4010866386cf6efa99980
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/val_batch1_pred.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/val_batch2_labels.jpg b/yolov5_model/runs/train/6beetle_30_epoch/val_batch2_labels.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..9f9f4a0b9a9c03d67e90ca128885b9dd79595403
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/val_batch2_labels.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/val_batch2_pred.jpg b/yolov5_model/runs/train/6beetle_30_epoch/val_batch2_pred.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..113251e3213eae288650f49937e5121917d5c658
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/val_batch2_pred.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/weights/best.pt b/yolov5_model/runs/train/6beetle_30_epoch/weights/best.pt
new file mode 100644
index 0000000000000000000000000000000000000000..6c2ac0840fe9b40920f1a98a78651208de265e28
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/weights/best.pt differ
diff --git a/yolov5_model/runs/train/6beetle_30_epoch/weights/last.pt b/yolov5_model/runs/train/6beetle_30_epoch/weights/last.pt
new file mode 100644
index 0000000000000000000000000000000000000000..8ba26a8c46870cfffd616cb05ec084205398e390
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_30_epoch/weights/last.pt differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/F1_curve.png b/yolov5_model/runs/train/6beetle_50_epoch/F1_curve.png
new file mode 100644
index 0000000000000000000000000000000000000000..d2f35653524bb6252c5edfd07db9482f707bc08d
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/F1_curve.png differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/PR_curve.png b/yolov5_model/runs/train/6beetle_50_epoch/PR_curve.png
new file mode 100644
index 0000000000000000000000000000000000000000..d8d3124914434b83b6730db7a7ca719e512f5ad1
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/PR_curve.png differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/P_curve.png b/yolov5_model/runs/train/6beetle_50_epoch/P_curve.png
new file mode 100644
index 0000000000000000000000000000000000000000..ffab0c2c649651685adba0571f4458bb0b245e44
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/P_curve.png differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/R_curve.png b/yolov5_model/runs/train/6beetle_50_epoch/R_curve.png
new file mode 100644
index 0000000000000000000000000000000000000000..a6ce8d21f16f2b22b93568e61c42aa58bb9b80d0
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/R_curve.png differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/confusion_matrix.png b/yolov5_model/runs/train/6beetle_50_epoch/confusion_matrix.png
new file mode 100644
index 0000000000000000000000000000000000000000..850b5a86a6d7f348a122e435f25f07c8922076b2
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/confusion_matrix.png differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/events.out.tfevents.1677463961.hal-dgx.41778.0 b/yolov5_model/runs/train/6beetle_50_epoch/events.out.tfevents.1677463961.hal-dgx.41778.0
new file mode 100644
index 0000000000000000000000000000000000000000..fcde1d22d3f78baf15240f6f8ec49c186a476129
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/events.out.tfevents.1677463961.hal-dgx.41778.0 differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/hyp.yaml b/yolov5_model/runs/train/6beetle_50_epoch/hyp.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fa80eb95531dba10a6c94a7651f781f8c99566be
--- /dev/null
+++ b/yolov5_model/runs/train/6beetle_50_epoch/hyp.yaml
@@ -0,0 +1,28 @@
+lr0: 0.01
+lrf: 0.01
+momentum: 0.937
+weight_decay: 0.0005
+warmup_epochs: 3.0
+warmup_momentum: 0.8
+warmup_bias_lr: 0.1
+box: 0.05
+cls: 0.5
+cls_pw: 1.0
+obj: 1.0
+obj_pw: 1.0
+iou_t: 0.2
+anchor_t: 4.0
+fl_gamma: 0.0
+hsv_h: 0.015
+hsv_s: 0.7
+hsv_v: 0.4
+degrees: 0.0
+translate: 0.1
+scale: 0.5
+shear: 0.0
+perspective: 0.0
+flipud: 0.0
+fliplr: 0.5
+mosaic: 1.0
+mixup: 0.0
+copy_paste: 0.0
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/labels.jpg b/yolov5_model/runs/train/6beetle_50_epoch/labels.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..377708dc9d6775b655f6cc29def3941cced5cc0e
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/labels.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/labels_correlogram.jpg b/yolov5_model/runs/train/6beetle_50_epoch/labels_correlogram.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..2c0a2e51387052ffebe9c1e5786f4a9007b751f6
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/labels_correlogram.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/opt.yaml b/yolov5_model/runs/train/6beetle_50_epoch/opt.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1e2ae5a3723133ffae48a56f5160a70587fdf031
--- /dev/null
+++ b/yolov5_model/runs/train/6beetle_50_epoch/opt.yaml
@@ -0,0 +1,68 @@
+weights: yolov5m.pt
+cfg: ''
+data: /projects/akhot2/group-01-phys371-sp2023/yolov5_model/data/beetles.yaml
+hyp:
+  lr0: 0.01
+  lrf: 0.01
+  momentum: 0.937
+  weight_decay: 0.0005
+  warmup_epochs: 3.0
+  warmup_momentum: 0.8
+  warmup_bias_lr: 0.1
+  box: 0.05
+  cls: 0.5
+  cls_pw: 1.0
+  obj: 1.0
+  obj_pw: 1.0
+  iou_t: 0.2
+  anchor_t: 4.0
+  fl_gamma: 0.0
+  hsv_h: 0.015
+  hsv_s: 0.7
+  hsv_v: 0.4
+  degrees: 0.0
+  translate: 0.1
+  scale: 0.5
+  shear: 0.0
+  perspective: 0.0
+  flipud: 0.0
+  fliplr: 0.5
+  mosaic: 1.0
+  mixup: 0.0
+  copy_paste: 0.0
+epochs: 50
+batch_size: 16
+imgsz: 1280
+rect: false
+resume: false
+nosave: false
+noval: false
+noautoanchor: false
+noplots: false
+evolve: null
+bucket: ''
+cache: null
+image_weights: false
+device: ''
+multi_scale: false
+single_cls: false
+optimizer: SGD
+sync_bn: false
+workers: 40
+project: runs/train
+name: exp
+exist_ok: false
+quad: false
+cos_lr: false
+label_smoothing: 0.0
+patience: 100
+freeze:
+- 0
+save_period: -1
+seed: 0
+local_rank: -1
+entity: null
+upload_dataset: false
+bbox_interval: -1
+artifact_alias: latest
+save_dir: runs/train/exp15
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/results.csv b/yolov5_model/runs/train/6beetle_50_epoch/results.csv
new file mode 100644
index 0000000000000000000000000000000000000000..4d399e60802717de4f7cbf6ff89a1f270e058cd1
--- /dev/null
+++ b/yolov5_model/runs/train/6beetle_50_epoch/results.csv
@@ -0,0 +1,51 @@
+               epoch,      train/box_loss,      train/obj_loss,      train/cls_loss,   metrics/precision,      metrics/recall,     metrics/mAP_0.5,metrics/mAP_0.5:0.95,        val/box_loss,        val/obj_loss,        val/cls_loss,               x/lr0,               x/lr1,               x/lr2
+                   0,            0.088528,            0.053824,                   0,             0.36393,             0.69626,             0.43014,             0.12782,            0.066783,            0.024315,                   0,            0.070476,           0.0032804,           0.0032804
+                   1,            0.070198,            0.026512,                   0,             0.26082,             0.80795,             0.26527,            0.092746,            0.068964,            0.018125,                   0,            0.040345,           0.0064828,           0.0064828
+                   2,            0.066207,             0.02049,                   0,             0.27245,             0.71546,              0.2572,            0.070288,            0.071491,            0.016654,                   0,            0.010082,           0.0095532,           0.0095532
+                   3,            0.059773,            0.017667,                   0,             0.76576,             0.93638,             0.84156,             0.37756,            0.047386,            0.015521,                   0,            0.009406,            0.009406,            0.009406
+                   4,            0.050959,            0.016468,                   0,             0.86161,             0.96854,             0.97071,              0.4878,            0.042288,            0.014109,                   0,            0.009406,            0.009406,            0.009406
+                   5,            0.044992,            0.014694,                   0,             0.96438,             0.98628,             0.98956,             0.49829,            0.039764,            0.014064,                   0,            0.009208,            0.009208,            0.009208
+                   6,            0.040632,            0.013923,                   0,               0.998,             0.99669,               0.995,             0.71113,              0.0309,            0.012245,                   0,             0.00901,             0.00901,             0.00901
+                   7,            0.036709,            0.013732,                   0,             0.99782,             0.99669,             0.99493,             0.57276,            0.033958,            0.012635,                   0,            0.008812,            0.008812,            0.008812
+                   8,            0.034904,            0.013066,                   0,             0.99975,             0.99669,               0.995,             0.60096,            0.032441,            0.011878,                   0,            0.008614,            0.008614,            0.008614
+                   9,            0.032545,            0.012388,                   0,                   1,             0.99821,               0.995,             0.73283,             0.02571,            0.011087,                   0,            0.008416,            0.008416,            0.008416
+                  10,            0.030234,             0.01205,                   0,             0.99956,             0.99669,               0.995,             0.74333,            0.025731,            0.010526,                   0,            0.008218,            0.008218,            0.008218
+                  11,            0.028784,            0.011196,                   0,              0.9996,             0.99669,               0.995,             0.67819,            0.025252,            0.010751,                   0,             0.00802,             0.00802,             0.00802
+                  12,            0.028177,            0.010882,                   0,             0.99971,             0.99669,               0.995,             0.72953,            0.021481,           0.0096807,                   0,            0.007822,            0.007822,            0.007822
+                  13,            0.026151,              0.0106,                   0,             0.99967,             0.99669,               0.995,              0.7649,             0.02401,             0.01022,                   0,            0.007624,            0.007624,            0.007624
+                  14,            0.026068,            0.010882,                   0,             0.99965,             0.99669,               0.995,             0.79196,            0.017429,           0.0095111,                   0,            0.007426,            0.007426,            0.007426
+                  15,            0.024487,            0.010256,                   0,             0.99953,             0.99669,               0.995,             0.75388,             0.02204,           0.0098497,                   0,            0.007228,            0.007228,            0.007228
+                  16,            0.024088,            0.010096,                   0,             0.99918,             0.99669,               0.995,             0.82657,            0.017399,           0.0087945,                   0,             0.00703,             0.00703,             0.00703
+                  17,            0.022645,           0.0094456,                   0,             0.99944,             0.99669,               0.995,             0.82731,            0.016641,           0.0090771,                   0,            0.006832,            0.006832,            0.006832
+                  18,            0.022623,           0.0098333,                   0,             0.99963,             0.99669,               0.995,             0.80788,            0.016954,           0.0092353,                   0,            0.006634,            0.006634,            0.006634
+                  19,             0.02177,           0.0098452,                   0,             0.99973,             0.99669,               0.995,             0.75105,             0.02029,            0.010066,                   0,            0.006436,            0.006436,            0.006436
+                  20,            0.020792,           0.0089195,                   0,             0.99946,             0.99669,               0.995,             0.86524,            0.014694,           0.0083042,                   0,            0.006238,            0.006238,            0.006238
+                  21,            0.018946,           0.0091648,                   0,             0.99905,             0.99669,               0.995,             0.78587,            0.015999,            0.008302,                   0,             0.00604,             0.00604,             0.00604
+                  22,            0.019758,           0.0085514,                   0,             0.99868,             0.99669,               0.995,             0.83436,            0.013844,            0.008548,                   0,            0.005842,            0.005842,            0.005842
+                  23,             0.01935,            0.008594,                   0,             0.99937,             0.99669,               0.995,             0.85841,             0.01417,           0.0080636,                   0,            0.005644,            0.005644,            0.005644
+                  24,            0.017881,           0.0084856,                   0,             0.99834,             0.99818,               0.995,             0.84583,            0.014292,           0.0083832,                   0,            0.005446,            0.005446,            0.005446
+                  25,            0.017812,           0.0084428,                   0,             0.99834,             0.99812,               0.995,             0.86264,            0.013375,           0.0082245,                   0,            0.005248,            0.005248,            0.005248
+                  26,            0.017378,           0.0082342,                   0,             0.99952,             0.99669,               0.995,             0.85918,            0.013098,           0.0075458,                   0,             0.00505,             0.00505,             0.00505
+                  27,            0.016688,           0.0080504,                   0,              0.9993,             0.99669,               0.995,             0.84826,            0.012737,           0.0078822,                   0,            0.004852,            0.004852,            0.004852
+                  28,            0.016044,           0.0077721,                   0,             0.99821,             0.99834,               0.995,             0.89064,            0.011334,           0.0074492,                   0,            0.004654,            0.004654,            0.004654
+                  29,            0.015982,           0.0079525,                   0,             0.99949,             0.99669,               0.995,              0.8823,            0.011267,           0.0074983,                   0,            0.004456,            0.004456,            0.004456
+                  30,            0.015273,           0.0076735,                   0,             0.99938,             0.99669,               0.995,             0.88282,            0.012528,           0.0074116,                   0,            0.004258,            0.004258,            0.004258
+                  31,            0.014551,           0.0073114,                   0,             0.99834,             0.99816,               0.995,             0.86489,            0.013552,           0.0076001,                   0,             0.00406,             0.00406,             0.00406
+                  32,            0.014365,           0.0073004,                   0,             0.99917,             0.99669,               0.995,             0.89976,            0.010478,            0.006906,                   0,            0.003862,            0.003862,            0.003862
+                  33,            0.013542,           0.0072057,                   0,             0.99824,             0.99834,               0.995,             0.89118,            0.010427,           0.0069478,                   0,            0.003664,            0.003664,            0.003664
+                  34,            0.013326,            0.007067,                   0,             0.99834,             0.99784,               0.995,             0.89269,            0.010443,           0.0066441,                   0,            0.003466,            0.003466,            0.003466
+                  35,            0.012844,           0.0068992,                   0,                   1,             0.99812,               0.995,             0.89718,            0.010245,           0.0067038,                   0,            0.003268,            0.003268,            0.003268
+                  36,            0.012295,           0.0068102,                   0,                   1,              0.9983,               0.995,             0.90994,           0.0091088,           0.0062706,                   0,             0.00307,             0.00307,             0.00307
+                  37,            0.011708,           0.0065696,                   0,             0.99834,             0.99807,               0.995,             0.90372,           0.0093495,           0.0063505,                   0,            0.002872,            0.002872,            0.002872
+                  38,            0.011409,           0.0064789,                   0,             0.99805,             0.99834,               0.995,             0.90738,           0.0094914,           0.0064437,                   0,            0.002674,            0.002674,            0.002674
+                  39,            0.011077,           0.0061683,                   0,                   1,             0.99823,               0.995,             0.90588,            0.010227,           0.0065655,                   0,            0.002476,            0.002476,            0.002476
+                  40,            0.010378,           0.0061733,                   0,             0.99834,             0.99834,               0.995,              0.9163,           0.0086574,           0.0061479,                   0,            0.002278,            0.002278,            0.002278
+                  41,           0.0099499,            0.005919,                   0,             0.99793,             0.99834,               0.995,             0.91041,           0.0088201,           0.0061828,                   0,             0.00208,             0.00208,             0.00208
+                  42,           0.0095436,           0.0059978,                   0,             0.99813,             0.99834,               0.995,             0.91767,            0.007825,           0.0059817,                   0,            0.001882,            0.001882,            0.001882
+                  43,            0.009298,           0.0056751,                   0,             0.99809,             0.99834,               0.995,              0.9171,           0.0083518,           0.0060314,                   0,            0.001684,            0.001684,            0.001684
+                  44,           0.0088543,           0.0055456,                   0,             0.99809,             0.99834,               0.995,             0.91944,           0.0080352,           0.0058473,                   0,            0.001486,            0.001486,            0.001486
+                  45,            0.008349,           0.0054894,                   0,             0.99796,             0.99834,               0.995,             0.91355,           0.0085525,           0.0058475,                   0,            0.001288,            0.001288,            0.001288
+                  46,           0.0078991,           0.0054318,                   0,             0.99793,             0.99834,               0.995,             0.93464,             0.00724,           0.0055358,                   0,             0.00109,             0.00109,             0.00109
+                  47,           0.0076052,           0.0054812,                   0,             0.99797,             0.99834,               0.995,             0.92933,           0.0075458,           0.0056239,                   0,            0.000892,            0.000892,            0.000892
+                  48,           0.0074448,           0.0052395,                   0,             0.99813,             0.99834,               0.995,             0.92376,           0.0076765,           0.0056267,                   0,            0.000694,            0.000694,            0.000694
+                  49,           0.0072574,           0.0052218,                   0,             0.99789,             0.99834,               0.995,             0.92738,            0.007494,            0.005483,                   0,            0.000496,            0.000496,            0.000496
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/results.png b/yolov5_model/runs/train/6beetle_50_epoch/results.png
new file mode 100644
index 0000000000000000000000000000000000000000..251334bcfe9ce37712e2dad4eb914ba33759d1e4
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/results.png differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/train_batch0.jpg b/yolov5_model/runs/train/6beetle_50_epoch/train_batch0.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..33f4363a18b0a13281628bd60da6bc62e3cfcdff
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/train_batch0.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/train_batch1.jpg b/yolov5_model/runs/train/6beetle_50_epoch/train_batch1.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..705ac06d8f923ce19ccbaabda5566763faffa7ac
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/train_batch1.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/train_batch2.jpg b/yolov5_model/runs/train/6beetle_50_epoch/train_batch2.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..148344f8fbc5ff6b3dfd16674b21789c5e7b4593
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/train_batch2.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/val_batch0_labels.jpg b/yolov5_model/runs/train/6beetle_50_epoch/val_batch0_labels.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..f1d8f08cbc272846354768353722e45298e93704
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/val_batch0_labels.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/val_batch0_pred.jpg b/yolov5_model/runs/train/6beetle_50_epoch/val_batch0_pred.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..aefc8ac2c2634ef52ef876697d6377b9ba8f636b
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/val_batch0_pred.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/val_batch1_labels.jpg b/yolov5_model/runs/train/6beetle_50_epoch/val_batch1_labels.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..94ede294ae29830b307ca9a1a5e451ac098cc46f
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/val_batch1_labels.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/val_batch1_pred.jpg b/yolov5_model/runs/train/6beetle_50_epoch/val_batch1_pred.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..95d6cf36b7f9b083df693be3e1b177e8d7a18909
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/val_batch1_pred.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/val_batch2_labels.jpg b/yolov5_model/runs/train/6beetle_50_epoch/val_batch2_labels.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..9f9f4a0b9a9c03d67e90ca128885b9dd79595403
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/val_batch2_labels.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/val_batch2_pred.jpg b/yolov5_model/runs/train/6beetle_50_epoch/val_batch2_pred.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..8da5aa354e453a6e6845fb8a0adc6a4fe5424409
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/val_batch2_pred.jpg differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/weights/best.pt b/yolov5_model/runs/train/6beetle_50_epoch/weights/best.pt
new file mode 100644
index 0000000000000000000000000000000000000000..fee1940d37e4319a16e3a105ccb397543ef9706c
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/weights/best.pt differ
diff --git a/yolov5_model/runs/train/6beetle_50_epoch/weights/last.pt b/yolov5_model/runs/train/6beetle_50_epoch/weights/last.pt
new file mode 100644
index 0000000000000000000000000000000000000000..3f8b0ab0d496b9d15ba351089b27c95fd988c38a
Binary files /dev/null and b/yolov5_model/runs/train/6beetle_50_epoch/weights/last.pt differ
diff --git a/yolov5_model/runs/train/exp/events.out.tfevents.1677190992.hal-dgx.138854.0 b/yolov5_model/runs/train/wrong_1beetle/events.out.tfevents.1677190992.hal-dgx.138854.0
similarity index 100%
rename from yolov5_model/runs/train/exp/events.out.tfevents.1677190992.hal-dgx.138854.0
rename to yolov5_model/runs/train/wrong_1beetle/events.out.tfevents.1677190992.hal-dgx.138854.0
diff --git a/yolov5_model/runs/train/wrong_1beetle/hyp.yaml b/yolov5_model/runs/train/wrong_1beetle/hyp.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fa80eb95531dba10a6c94a7651f781f8c99566be
--- /dev/null
+++ b/yolov5_model/runs/train/wrong_1beetle/hyp.yaml
@@ -0,0 +1,28 @@
+lr0: 0.01
+lrf: 0.01
+momentum: 0.937
+weight_decay: 0.0005
+warmup_epochs: 3.0
+warmup_momentum: 0.8
+warmup_bias_lr: 0.1
+box: 0.05
+cls: 0.5
+cls_pw: 1.0
+obj: 1.0
+obj_pw: 1.0
+iou_t: 0.2
+anchor_t: 4.0
+fl_gamma: 0.0
+hsv_h: 0.015
+hsv_s: 0.7
+hsv_v: 0.4
+degrees: 0.0
+translate: 0.1
+scale: 0.5
+shear: 0.0
+perspective: 0.0
+flipud: 0.0
+fliplr: 0.5
+mosaic: 1.0
+mixup: 0.0
+copy_paste: 0.0
diff --git a/yolov5_model/runs/train/exp/labels.jpg b/yolov5_model/runs/train/wrong_1beetle/labels.jpg
similarity index 100%
rename from yolov5_model/runs/train/exp/labels.jpg
rename to yolov5_model/runs/train/wrong_1beetle/labels.jpg
diff --git a/yolov5_model/runs/train/exp/labels_correlogram.jpg b/yolov5_model/runs/train/wrong_1beetle/labels_correlogram.jpg
similarity index 100%
rename from yolov5_model/runs/train/exp/labels_correlogram.jpg
rename to yolov5_model/runs/train/wrong_1beetle/labels_correlogram.jpg
diff --git a/yolov5_model/runs/train/exp/opt.yaml b/yolov5_model/runs/train/wrong_1beetle/opt.yaml
similarity index 100%
rename from yolov5_model/runs/train/exp/opt.yaml
rename to yolov5_model/runs/train/wrong_1beetle/opt.yaml
diff --git a/yolov5_model/runs/train/exp/results.csv b/yolov5_model/runs/train/wrong_1beetle/results.csv
similarity index 100%
rename from yolov5_model/runs/train/exp/results.csv
rename to yolov5_model/runs/train/wrong_1beetle/results.csv
diff --git a/yolov5_model/runs/train/exp/train_batch0.jpg b/yolov5_model/runs/train/wrong_1beetle/train_batch0.jpg
similarity index 100%
rename from yolov5_model/runs/train/exp/train_batch0.jpg
rename to yolov5_model/runs/train/wrong_1beetle/train_batch0.jpg
diff --git a/yolov5_model/runs/train/exp/train_batch1.jpg b/yolov5_model/runs/train/wrong_1beetle/train_batch1.jpg
similarity index 100%
rename from yolov5_model/runs/train/exp/train_batch1.jpg
rename to yolov5_model/runs/train/wrong_1beetle/train_batch1.jpg
diff --git a/yolov5_model/runs/train/exp/train_batch2.jpg b/yolov5_model/runs/train/wrong_1beetle/train_batch2.jpg
similarity index 100%
rename from yolov5_model/runs/train/exp/train_batch2.jpg
rename to yolov5_model/runs/train/wrong_1beetle/train_batch2.jpg
diff --git a/yolov5_model/runs/train/exp/weights/best.pt b/yolov5_model/runs/train/wrong_1beetle/weights/best.pt
similarity index 100%
rename from yolov5_model/runs/train/exp/weights/best.pt
rename to yolov5_model/runs/train/wrong_1beetle/weights/best.pt
diff --git a/yolov5_model/runs/train/exp/weights/last.pt b/yolov5_model/runs/train/wrong_1beetle/weights/last.pt
similarity index 100%
rename from yolov5_model/runs/train/exp/weights/last.pt
rename to yolov5_model/runs/train/wrong_1beetle/weights/last.pt
diff --git a/yolov5_model/runs/train/wrong_6beetle/events.out.tfevents.1677453950.hal-dgx.166184.0 b/yolov5_model/runs/train/wrong_6beetle/events.out.tfevents.1677453950.hal-dgx.166184.0
new file mode 100644
index 0000000000000000000000000000000000000000..ab895ecb0fa67c0cf47d722a89ece25fc73c4ff9
Binary files /dev/null and b/yolov5_model/runs/train/wrong_6beetle/events.out.tfevents.1677453950.hal-dgx.166184.0 differ
diff --git a/yolov5_model/runs/train/wrong_6beetle/hyp.yaml b/yolov5_model/runs/train/wrong_6beetle/hyp.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fa80eb95531dba10a6c94a7651f781f8c99566be
--- /dev/null
+++ b/yolov5_model/runs/train/wrong_6beetle/hyp.yaml
@@ -0,0 +1,28 @@
+lr0: 0.01
+lrf: 0.01
+momentum: 0.937
+weight_decay: 0.0005
+warmup_epochs: 3.0
+warmup_momentum: 0.8
+warmup_bias_lr: 0.1
+box: 0.05
+cls: 0.5
+cls_pw: 1.0
+obj: 1.0
+obj_pw: 1.0
+iou_t: 0.2
+anchor_t: 4.0
+fl_gamma: 0.0
+hsv_h: 0.015
+hsv_s: 0.7
+hsv_v: 0.4
+degrees: 0.0
+translate: 0.1
+scale: 0.5
+shear: 0.0
+perspective: 0.0
+flipud: 0.0
+fliplr: 0.5
+mosaic: 1.0
+mixup: 0.0
+copy_paste: 0.0
diff --git a/yolov5_model/runs/train/wrong_6beetle/labels.jpg b/yolov5_model/runs/train/wrong_6beetle/labels.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..2db5f6732508753ea149f2012212db274a84ce3b
Binary files /dev/null and b/yolov5_model/runs/train/wrong_6beetle/labels.jpg differ
diff --git a/yolov5_model/runs/train/wrong_6beetle/labels_correlogram.jpg b/yolov5_model/runs/train/wrong_6beetle/labels_correlogram.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..03b52f67250d40fb85d95ef59d1d87ab4fc0b87b
Binary files /dev/null and b/yolov5_model/runs/train/wrong_6beetle/labels_correlogram.jpg differ
diff --git a/yolov5_model/runs/train/wrong_6beetle/opt.yaml b/yolov5_model/runs/train/wrong_6beetle/opt.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f58f8305eeda97dae21f3025f8177f4ba8d38890
--- /dev/null
+++ b/yolov5_model/runs/train/wrong_6beetle/opt.yaml
@@ -0,0 +1,68 @@
+weights: yolov5m.pt
+cfg: ''
+data: /projects/akhot2/group-01-phys371-sp2023/yolov5_model/data/beetles.yaml
+hyp:
+  lr0: 0.01
+  lrf: 0.01
+  momentum: 0.937
+  weight_decay: 0.0005
+  warmup_epochs: 3.0
+  warmup_momentum: 0.8
+  warmup_bias_lr: 0.1
+  box: 0.05
+  cls: 0.5
+  cls_pw: 1.0
+  obj: 1.0
+  obj_pw: 1.0
+  iou_t: 0.2
+  anchor_t: 4.0
+  fl_gamma: 0.0
+  hsv_h: 0.015
+  hsv_s: 0.7
+  hsv_v: 0.4
+  degrees: 0.0
+  translate: 0.1
+  scale: 0.5
+  shear: 0.0
+  perspective: 0.0
+  flipud: 0.0
+  fliplr: 0.5
+  mosaic: 1.0
+  mixup: 0.0
+  copy_paste: 0.0
+epochs: 30
+batch_size: 16
+imgsz: 1280
+rect: false
+resume: false
+nosave: false
+noval: false
+noautoanchor: false
+noplots: false
+evolve: null
+bucket: ''
+cache: null
+image_weights: false
+device: ''
+multi_scale: false
+single_cls: false
+optimizer: SGD
+sync_bn: false
+workers: 40
+project: runs/train
+name: exp
+exist_ok: false
+quad: false
+cos_lr: false
+label_smoothing: 0.0
+patience: 100
+freeze:
+- 0
+save_period: -1
+seed: 0
+local_rank: -1
+entity: null
+upload_dataset: false
+bbox_interval: -1
+artifact_alias: latest
+save_dir: runs/train/exp8
diff --git a/yolov5_model/runs/train/wrong_6beetle/results.csv b/yolov5_model/runs/train/wrong_6beetle/results.csv
new file mode 100644
index 0000000000000000000000000000000000000000..1be6aebef6f6e081feb8d459782726e628f02619
--- /dev/null
+++ b/yolov5_model/runs/train/wrong_6beetle/results.csv
@@ -0,0 +1,8 @@
+               epoch,      train/box_loss,      train/obj_loss,      train/cls_loss,   metrics/precision,      metrics/recall,     metrics/mAP_0.5,metrics/mAP_0.5:0.95,        val/box_loss,        val/obj_loss,        val/cls_loss,               x/lr0,               x/lr1,               x/lr2
+                   0,             0.10026,            0.054616,                   0,             0.10682,             0.51648,            0.091484,            0.022794,            0.079818,            0.027879,                   0,            0.070476,           0.0032804,           0.0032804
+                   1,            0.081371,            0.030225,                   0,            0.078834,             0.42674,             0.07273,            0.020182,            0.083929,            0.022039,                   0,            0.040258,           0.0063955,           0.0063955
+                   2,            0.078069,            0.025944,                   0,             0.17825,             0.61905,             0.17198,            0.059281,            0.071538,            0.027421,                   0,           0.0098197,           0.0092906,           0.0092906
+                   3,            0.069886,            0.025821,                   0,             0.16174,              0.7481,             0.16129,            0.053783,            0.068933,            0.025629,                   0,             0.00901,             0.00901,             0.00901
+                   4,            0.060441,            0.025751,                   0,             0.48337,             0.59461,             0.50774,             0.13363,            0.062516,            0.025314,                   0,             0.00901,             0.00901,             0.00901
+                   5,            0.055425,            0.024546,                   0,             0.34318,              0.7967,             0.34479,            0.099022,            0.064165,            0.022711,                   0,             0.00868,             0.00868,             0.00868
+                   6,            0.050632,            0.023547,                   0,             0.51361,             0.97436,             0.67168,             0.30281,            0.048885,            0.020909,                   0,             0.00835,             0.00835,             0.00835
diff --git a/yolov5_model/runs/train/wrong_6beetle/train_batch0.jpg b/yolov5_model/runs/train/wrong_6beetle/train_batch0.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..5b0b269cb7887de5337a9f452b83200ca208d1b2
Binary files /dev/null and b/yolov5_model/runs/train/wrong_6beetle/train_batch0.jpg differ
diff --git a/yolov5_model/runs/train/wrong_6beetle/train_batch1.jpg b/yolov5_model/runs/train/wrong_6beetle/train_batch1.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..b2c258d737943bae2d89d08676505a1be3ca61f9
Binary files /dev/null and b/yolov5_model/runs/train/wrong_6beetle/train_batch1.jpg differ
diff --git a/yolov5_model/runs/train/wrong_6beetle/train_batch2.jpg b/yolov5_model/runs/train/wrong_6beetle/train_batch2.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..d2503e1bdd61de86e84d68ff4e1e839bde3596a3
Binary files /dev/null and b/yolov5_model/runs/train/wrong_6beetle/train_batch2.jpg differ
diff --git a/yolov5_model/runs/train/wrong_6beetle/weights/best.pt b/yolov5_model/runs/train/wrong_6beetle/weights/best.pt
new file mode 100644
index 0000000000000000000000000000000000000000..04b7edbb7857f04086e149bda927d7be4d550260
Binary files /dev/null and b/yolov5_model/runs/train/wrong_6beetle/weights/best.pt differ
diff --git a/yolov5_model/runs/train/wrong_6beetle/weights/last.pt b/yolov5_model/runs/train/wrong_6beetle/weights/last.pt
new file mode 100644
index 0000000000000000000000000000000000000000..04b7edbb7857f04086e149bda927d7be4d550260
Binary files /dev/null and b/yolov5_model/runs/train/wrong_6beetle/weights/last.pt differ
diff --git a/yolov5_model/runs/val/6beetle_50_epoch/F1_curve.png b/yolov5_model/runs/val/6beetle_50_epoch/F1_curve.png
new file mode 100644
index 0000000000000000000000000000000000000000..c3a54b05a5f3cce87632ee631458b62402b4008f
Binary files /dev/null and b/yolov5_model/runs/val/6beetle_50_epoch/F1_curve.png differ
diff --git a/yolov5_model/runs/val/6beetle_50_epoch/PR_curve.png b/yolov5_model/runs/val/6beetle_50_epoch/PR_curve.png
new file mode 100644
index 0000000000000000000000000000000000000000..eeb80907cafe5c0946f7d9177e1e9a1c009c0869
Binary files /dev/null and b/yolov5_model/runs/val/6beetle_50_epoch/PR_curve.png differ
diff --git a/yolov5_model/runs/val/6beetle_50_epoch/P_curve.png b/yolov5_model/runs/val/6beetle_50_epoch/P_curve.png
new file mode 100644
index 0000000000000000000000000000000000000000..32a53c0bc4da5bd3e378be2ac580db1ede085301
Binary files /dev/null and b/yolov5_model/runs/val/6beetle_50_epoch/P_curve.png differ
diff --git a/yolov5_model/runs/val/6beetle_50_epoch/R_curve.png b/yolov5_model/runs/val/6beetle_50_epoch/R_curve.png
new file mode 100644
index 0000000000000000000000000000000000000000..b68cb936871f94520658db82fb12100a3c906b08
Binary files /dev/null and b/yolov5_model/runs/val/6beetle_50_epoch/R_curve.png differ
diff --git a/yolov5_model/runs/val/6beetle_50_epoch/confusion_matrix.png b/yolov5_model/runs/val/6beetle_50_epoch/confusion_matrix.png
new file mode 100644
index 0000000000000000000000000000000000000000..0b62afd619492fc7f37e6fb478363ae5dd5675e7
Binary files /dev/null and b/yolov5_model/runs/val/6beetle_50_epoch/confusion_matrix.png differ
diff --git a/yolov5_model/runs/val/6beetle_50_epoch/val_batch0_labels.jpg b/yolov5_model/runs/val/6beetle_50_epoch/val_batch0_labels.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..7b69c6a0b27d4ade8270cececf50a61a628416bc
Binary files /dev/null and b/yolov5_model/runs/val/6beetle_50_epoch/val_batch0_labels.jpg differ
diff --git a/yolov5_model/runs/val/6beetle_50_epoch/val_batch0_pred.jpg b/yolov5_model/runs/val/6beetle_50_epoch/val_batch0_pred.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..93013a3ba8756eb7a9c686495ffd700d136e3ece
Binary files /dev/null and b/yolov5_model/runs/val/6beetle_50_epoch/val_batch0_pred.jpg differ
diff --git a/yolov5_model/runs/val/6beetle_50_epoch/val_batch1_labels.jpg b/yolov5_model/runs/val/6beetle_50_epoch/val_batch1_labels.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..b98ba1e5ff964ec7db2e7f95ce069d30dff76aca
Binary files /dev/null and b/yolov5_model/runs/val/6beetle_50_epoch/val_batch1_labels.jpg differ
diff --git a/yolov5_model/runs/val/6beetle_50_epoch/val_batch1_pred.jpg b/yolov5_model/runs/val/6beetle_50_epoch/val_batch1_pred.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..0f25c40930509ce45cba0f5e88789d9b0e987c57
Binary files /dev/null and b/yolov5_model/runs/val/6beetle_50_epoch/val_batch1_pred.jpg differ
diff --git a/yolov5_model/runs/val/6beetle_50_epoch/val_batch2_labels.jpg b/yolov5_model/runs/val/6beetle_50_epoch/val_batch2_labels.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..e1ae9eab1c9c0d1ba8dd00acb038f20d4fc1d2ff
Binary files /dev/null and b/yolov5_model/runs/val/6beetle_50_epoch/val_batch2_labels.jpg differ
diff --git a/yolov5_model/runs/val/6beetle_50_epoch/val_batch2_pred.jpg b/yolov5_model/runs/val/6beetle_50_epoch/val_batch2_pred.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..8115f2dcec0f358dc7084f2a96e103ed5709dad2
Binary files /dev/null and b/yolov5_model/runs/val/6beetle_50_epoch/val_batch2_pred.jpg differ
diff --git a/yolov5_model/runs/val/exp3/F1_curve.png b/yolov5_model/runs/val/exp3/F1_curve.png
deleted file mode 100644
index 8e395470375b0f08ac7ac022321a5dd6cb398cb7..0000000000000000000000000000000000000000
Binary files a/yolov5_model/runs/val/exp3/F1_curve.png and /dev/null differ
diff --git a/yolov5_model/runs/val/exp3/PR_curve.png b/yolov5_model/runs/val/exp3/PR_curve.png
deleted file mode 100644
index c60a58feccc937df8461864b4fde5aa95dd0621c..0000000000000000000000000000000000000000
Binary files a/yolov5_model/runs/val/exp3/PR_curve.png and /dev/null differ
diff --git a/yolov5_model/runs/val/exp3/P_curve.png b/yolov5_model/runs/val/exp3/P_curve.png
deleted file mode 100644
index d0f37ade44020965914ee7d7b81b1ed0bee58f43..0000000000000000000000000000000000000000
Binary files a/yolov5_model/runs/val/exp3/P_curve.png and /dev/null differ
diff --git a/yolov5_model/runs/val/exp3/R_curve.png b/yolov5_model/runs/val/exp3/R_curve.png
deleted file mode 100644
index 55bab58f5c2725fe13baf953c818ede4ff5ee190..0000000000000000000000000000000000000000
Binary files a/yolov5_model/runs/val/exp3/R_curve.png and /dev/null differ
diff --git a/yolov5_model/runs/val/exp3/confusion_matrix.png b/yolov5_model/runs/val/exp3/confusion_matrix.png
deleted file mode 100644
index c125e36975383e426be79cb522dd210362242251..0000000000000000000000000000000000000000
Binary files a/yolov5_model/runs/val/exp3/confusion_matrix.png and /dev/null differ
diff --git a/yolov5_model/runs/val/exp3/val_batch0_labels.jpg b/yolov5_model/runs/val/exp3/val_batch0_labels.jpg
deleted file mode 100644
index 57fe4ba17b154d5a8ff05b9068f2d2050eb9cfae..0000000000000000000000000000000000000000
Binary files a/yolov5_model/runs/val/exp3/val_batch0_labels.jpg and /dev/null differ
diff --git a/yolov5_model/runs/val/exp3/val_batch0_pred.jpg b/yolov5_model/runs/val/exp3/val_batch0_pred.jpg
deleted file mode 100644
index 9ba113a9b7990e93e3af19fa0dff922aebe29b5a..0000000000000000000000000000000000000000
Binary files a/yolov5_model/runs/val/exp3/val_batch0_pred.jpg and /dev/null differ
diff --git a/yolov5_model/runs/val/exp3/val_batch1_labels.jpg b/yolov5_model/runs/val/exp3/val_batch1_labels.jpg
deleted file mode 100644
index 5e7db3b303b40bdfb56bf1c7f8e9b9be2b6e07d5..0000000000000000000000000000000000000000
Binary files a/yolov5_model/runs/val/exp3/val_batch1_labels.jpg and /dev/null differ
diff --git a/yolov5_model/runs/val/exp3/val_batch1_pred.jpg b/yolov5_model/runs/val/exp3/val_batch1_pred.jpg
deleted file mode 100644
index 6d3d131d79726d6320c79d6b0bfb818c825c7a2a..0000000000000000000000000000000000000000
Binary files a/yolov5_model/runs/val/exp3/val_batch1_pred.jpg and /dev/null differ
diff --git a/yolov5_model/runs/val/exp3/val_batch2_labels.jpg b/yolov5_model/runs/val/exp3/val_batch2_labels.jpg
deleted file mode 100644
index fd2c601a64ca6b395db272b3701377f64f9e2759..0000000000000000000000000000000000000000
Binary files a/yolov5_model/runs/val/exp3/val_batch2_labels.jpg and /dev/null differ
diff --git a/yolov5_model/runs/val/exp3/val_batch2_pred.jpg b/yolov5_model/runs/val/exp3/val_batch2_pred.jpg
deleted file mode 100644
index 662ca0e355208357cb1716fd796d04c67631ea1a..0000000000000000000000000000000000000000
Binary files a/yolov5_model/runs/val/exp3/val_batch2_pred.jpg and /dev/null differ
diff --git a/yolov5_model/runs/val/exp2/F1_curve.png b/yolov5_model/runs/val/wrong_1beetle/F1_curve.png
similarity index 100%
rename from yolov5_model/runs/val/exp2/F1_curve.png
rename to yolov5_model/runs/val/wrong_1beetle/F1_curve.png
diff --git a/yolov5_model/runs/val/exp2/PR_curve.png b/yolov5_model/runs/val/wrong_1beetle/PR_curve.png
similarity index 100%
rename from yolov5_model/runs/val/exp2/PR_curve.png
rename to yolov5_model/runs/val/wrong_1beetle/PR_curve.png
diff --git a/yolov5_model/runs/val/exp2/P_curve.png b/yolov5_model/runs/val/wrong_1beetle/P_curve.png
similarity index 100%
rename from yolov5_model/runs/val/exp2/P_curve.png
rename to yolov5_model/runs/val/wrong_1beetle/P_curve.png
diff --git a/yolov5_model/runs/val/exp2/R_curve.png b/yolov5_model/runs/val/wrong_1beetle/R_curve.png
similarity index 100%
rename from yolov5_model/runs/val/exp2/R_curve.png
rename to yolov5_model/runs/val/wrong_1beetle/R_curve.png
diff --git a/yolov5_model/runs/val/exp2/confusion_matrix.png b/yolov5_model/runs/val/wrong_1beetle/confusion_matrix.png
similarity index 100%
rename from yolov5_model/runs/val/exp2/confusion_matrix.png
rename to yolov5_model/runs/val/wrong_1beetle/confusion_matrix.png
diff --git a/yolov5_model/runs/val/exp2/val_batch0_labels.jpg b/yolov5_model/runs/val/wrong_1beetle/val_batch0_labels.jpg
similarity index 100%
rename from yolov5_model/runs/val/exp2/val_batch0_labels.jpg
rename to yolov5_model/runs/val/wrong_1beetle/val_batch0_labels.jpg
diff --git a/yolov5_model/runs/val/exp2/val_batch0_pred.jpg b/yolov5_model/runs/val/wrong_1beetle/val_batch0_pred.jpg
similarity index 100%
rename from yolov5_model/runs/val/exp2/val_batch0_pred.jpg
rename to yolov5_model/runs/val/wrong_1beetle/val_batch0_pred.jpg
diff --git a/yolov5_model/runs/val/exp2/val_batch1_labels.jpg b/yolov5_model/runs/val/wrong_1beetle/val_batch1_labels.jpg
similarity index 100%
rename from yolov5_model/runs/val/exp2/val_batch1_labels.jpg
rename to yolov5_model/runs/val/wrong_1beetle/val_batch1_labels.jpg
diff --git a/yolov5_model/runs/val/exp2/val_batch1_pred.jpg b/yolov5_model/runs/val/wrong_1beetle/val_batch1_pred.jpg
similarity index 100%
rename from yolov5_model/runs/val/exp2/val_batch1_pred.jpg
rename to yolov5_model/runs/val/wrong_1beetle/val_batch1_pred.jpg
diff --git a/yolov5_model/runs/val/exp2/val_batch2_labels.jpg b/yolov5_model/runs/val/wrong_1beetle/val_batch2_labels.jpg
similarity index 100%
rename from yolov5_model/runs/val/exp2/val_batch2_labels.jpg
rename to yolov5_model/runs/val/wrong_1beetle/val_batch2_labels.jpg
diff --git a/yolov5_model/runs/val/exp2/val_batch2_pred.jpg b/yolov5_model/runs/val/wrong_1beetle/val_batch2_pred.jpg
similarity index 100%
rename from yolov5_model/runs/val/exp2/val_batch2_pred.jpg
rename to yolov5_model/runs/val/wrong_1beetle/val_batch2_pred.jpg