From 8ae9f72b5eaa59106ad1a5cb1119397f7864f696 Mon Sep 17 00:00:00 2001 From: rifqiharrys Date: Mon, 15 Mar 2021 11:25:22 +0700 Subject: [PATCH] change how to calculate filesize --- sdb_gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdb_gui.py b/sdb_gui.py index 5451560..46fad68 100644 --- a/sdb_gui.py +++ b/sdb_gui.py @@ -989,9 +989,9 @@ def results(self, result_list): global print_result_info print_result_info = ( 'Image Input:\t\t' + self.imglocList.toPlainText() + ' (' + - str(round(img_size / 2**10 / 2**10, 2)) + ' MB)\n' + + str(round(img_size / 2**20, 2)) + ' MB)\n' + 'Sample Data:\t\t' + self.samplelocList.toPlainText() + ' (' + - str(round(sample_size / 2**10 / 2**10, 2)) + ' MB)\n\n' + + str(round(sample_size / 2**20, 2)) + ' MB)\n\n' + print_limit + '\n' + 'Train Data:\t\t' + str(self.trainPercentDSB.value()) + ' %\n' + 'Test Data:\t\t' + str(100 - self.trainPercentDSB.value()) + ' %\n\n' +