Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanTUD committed Sep 26, 2024
1 parent 26f1f13 commit aec3ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion explain.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ function explain_error_msg (_err) {
} else if(_err.includes("Failed to compile fragment shader")) {
explanation = "This may mean that the batch-size and/or filter-size and/or image dimension resize-sizes are too large.";
} else if(_err.includes("target expected a batch of elements where each example")) {
explanation = "The last number of neurons in the last layer may not match the number of categories.<br><br>It may also be possible that you chose a wrong Loss function. If the number of neurons match, try chosing other losses, like categoricalCrossentropy.<br><br>You may also have only one category, but you need at least two.";
explanation = "The last number of neurons in the last layer may not match the number of categories.<br><br>It may also be possible that you chose a wrong Loss function. If the number of neurons match, try choosing other losses, like categoricalCrossentropy.<br><br>You may also have only one category, but you need at least two.";
} else if(_err.includes("but got array with shape 0,")) {
explanation = "Have you forgotten to add your own training data?";
} else if(_err.includes("texShape is undefined")) {
Expand Down

0 comments on commit aec3ea1

Please sign in to comment.