Skip to content

Commit

Permalink
AIMANE 1.1.0 - Quality of Life & Add Finish accuracy settings (Hotfix3)
Browse files Browse the repository at this point in the history
* [Server] Fix bug when pressing Train before Prepare dataset (Blank dataset) will give error
  • Loading branch information
Nicezki committed Jul 31, 2023
1 parent 7e7bacd commit ae66dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/aimane.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def load_mnist(self, path, usercontent=False):
def train(self):
self.sysmane.write_status("Training model starting...", stage="Training model", percentage=0)
# Check if the dataset is prepared and have dataset in it. check if count.txt exists inside the dataset pa
if not os.path.exists(self.dataset_path or not os.path.exists("{}/dataset".format(self.dataset_path or not os.path.exists("{}/count.txt".format(self.dataset_path))))):
if not os.path.exists(self.dataset_path) or not os.path.exists("{}/dataset".format(self.dataset_path)) or not os.path.exists("{}/count.txt".format(self.dataset_path)):
self.sysmane.write_status("[ERROR] Dataset is not prepared.")
return "Dataset is not prepared."
else:
Expand Down

0 comments on commit ae66dbb

Please sign in to comment.