Skip to content

Conversation

@hanjihun2000
Copy link
Contributor

tf.keras.losses.CategoricalCrossentropy should be changed to tf.keras.losses.SparseCategoricalCrossentropy since the pixel classes (labels) are integers, not one-hot encoded. Code is written correct, but the markdown should fix to prevent potential confusion to readers.

Just found that tf.keras.losses.CategoricalCrossentropy should be changed to tf.keras.losses.SparseCategoricalCrossentropy since the pixel classes (labels) are integers, not one-hot encoded. Code is written correct, but the markdown should fix to prevent potential confusion to readers.
@hanjihun2000 hanjihun2000 requested a review from a team as a code owner March 12, 2023 14:37
@github-actions
Copy link

Preview

Preview and run these notebook edits with Google Colab: Rendered notebook diffs available on ReviewNB.com.

Format and style

Use the TensorFlow docs notebook tools to format for consistent source diffs and lint for style:
$ python3 -m pip install -U --user git+https://github.com/tensorflow/docs

$ python3 -m tensorflow_docs.tools.nbfmt notebook.ipynb
$ python3 -m tensorflow_docs.tools.nblint --arg=repo:tensorflow/docs notebook.ipynb
If commits are added to the pull request, synchronize your local branch: git pull origin master

@hanjihun2000
Copy link
Contributor Author

Everything else is all perfect. Thank you for amazing image segmentation tutorial 👍

Copy link
Member

@markmcd markmcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG, thanks!

@github-actions github-actions bot added the lgtm Community-added approval label Mar 20, 2023
@markmcd markmcd added the ready to pull Start merge process label Mar 20, 2023
@copybara-service copybara-service bot merged commit a81ea51 into tensorflow:master Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Community-added approval ready to pull Start merge process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants