Skip to content

Commit

Permalink
decided to reset batch size for RAM < 16GB
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Oct 13, 2024
1 parent 452524f commit 2f5937b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,7 @@ window.onload = async () => {
// Reset defaults for tensorflow batchsize. If removing, update change handler for batch-size
if (config.tensorflow.batchSizeWasReset !== true && config.tensorflow.batchSize === 32) {
const RAM = parseInt(DIAGNOSTICS['System Memory'].replace(' GB', ''));
if (!RAM || RAM < 9){
if (!RAM || RAM < 16){
config.tensorflow.batchSize = 8;
generateToast({message: `The new default CPU backend batch size of 8 has been applied.
This should result in faster prediction due to lower memory requirements.
Expand Down

0 comments on commit 2f5937b

Please sign in to comment.