suggested fix
"cell_type": "markdown",
"metadata": {},
"source": [
- "Next, we will create an output_path variable containing the path of the images folder."
+ "Next, we will create an data_path variable containing the path of the images folder."
]
},
{
"metadata": {},
"outputs": [],
"source": [
- "output_path = os.path.join(os.getcwd(), \"NWPU-RESISC45\")"
+ "data_path = os.path.join(os.getcwd(), \"NWPU-RESISC45\")"
]
},
{
"outputs": [],
"source": [
"data = prepare_data(\n",
- " path=output_path, dataset_type=\"Imagenet\", batch_size=128, val_split_pct=0.2\n",
+ " path=data_path, dataset_type=\"Imagenet\", batch_size=128, val_split_pct=0.2\n",
")"
]
},
"outputs": [],
"source": [
"with open(\n",
- " os.path.join(output_path, \"models\", model_name, model_name + \".emd\"), \"r+\"\n",
+ " os.path.join(data_path, \"models\", model_name, model_name + \".emd\"), \"r+\"\n",
") as emd_file:\n",
" data = json.load(emd_file)\n",
" data[\"CropSizeFixed\"] = 0\n",
