Skip to content

Commit 1609f00

Browse files
committed
suggested fix
1 parent a7f41cc commit 1609f00

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

samples/04_gis_analysts_data_scientists/image_scene_classification_using_feature_classifier.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"cell_type": "markdown",
9999
"metadata": {},
100100
"source": [
101-
"Next, we will create an output_path variable containing the path of the images folder."
101+
"Next, we will create an data_path variable containing the path of the images folder."
102102
]
103103
},
104104
{
@@ -107,7 +107,7 @@
107107
"metadata": {},
108108
"outputs": [],
109109
"source": [
110-
"output_path = os.path.join(os.getcwd(), \"NWPU-RESISC45\")"
110+
"data_path = os.path.join(os.getcwd(), \"NWPU-RESISC45\")"
111111
]
112112
},
113113
{
@@ -151,7 +151,7 @@
151151
"outputs": [],
152152
"source": [
153153
"data = prepare_data(\n",
154-
" path=output_path, dataset_type=\"Imagenet\", batch_size=128, val_split_pct=0.2\n",
154+
" path=data_path, dataset_type=\"Imagenet\", batch_size=128, val_split_pct=0.2\n",
155155
")"
156156
]
157157
},
@@ -602,7 +602,7 @@
602602
"outputs": [],
603603
"source": [
604604
"with open(\n",
605-
" os.path.join(output_path, \"models\", model_name, model_name + \".emd\"), \"r+\"\n",
605+
" os.path.join(data_path, \"models\", model_name, model_name + \".emd\"), \"r+\"\n",
606606
") as emd_file:\n",
607607
" data = json.load(emd_file)\n",
608608
" data[\"CropSizeFixed\"] = 0\n",

0 commit comments

Comments
 (0)