Skip to content

Commit

Permalink
fix regarding dataset name (#2001)
Browse files Browse the repository at this point in the history
  • Loading branch information
sitamgithub-MSIT authored Dec 10, 2024
1 parent ecc3f91 commit ed03158
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@
"test_ds = load(split=\"sbd_eval\")\n",
"test_ds = preprocess_inputs(test_ds)\n",
"\n",
"images, masks = next(iter(train_ds.take(1)))\n",
"images, masks = next(iter(test_ds.take(1)))\n",
"images = ops.convert_to_tensor(images)\n",
"masks = ops.convert_to_tensor(masks)\n",
"preds = ops.expand_dims(ops.argmax(model.predict(images), axis=-1), axis=-1)\n",
Expand Down
2 changes: 1 addition & 1 deletion guides/keras_hub/semantic_segmentation_deeplab_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ def dict_to_tuple(x):
test_ds = load(split="sbd_eval")
test_ds = preprocess_inputs(test_ds)

images, masks = next(iter(train_ds.take(1)))
images, masks = next(iter(test_ds.take(1)))
images = ops.convert_to_tensor(images)
masks = ops.convert_to_tensor(masks)
preds = ops.expand_dims(ops.argmax(model.predict(images), axis=-1), axis=-1)
Expand Down
2 changes: 1 addition & 1 deletion guides/md/keras_hub/semantic_segmentation_deeplab_v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ better accuracy and result train with more number of epochs.
test_ds = load(split="sbd_eval")
test_ds = preprocess_inputs(test_ds)

images, masks = next(iter(train_ds.take(1)))
images, masks = next(iter(test_ds.take(1)))
images = ops.convert_to_tensor(images)
masks = ops.convert_to_tensor(masks)
preds = ops.expand_dims(ops.argmax(model.predict(images), axis=-1), axis=-1)
Expand Down

0 comments on commit ed03158

Please sign in to comment.