mirror of
https://github.com/netfun2000/dddd_trainer.git
synced 2026-08-12 21:09:39 +08:00
更新文档
This commit is contained in:
+2
-1
@@ -33,6 +33,7 @@ class Train:
|
||||
|
||||
self.resize = [int(self.conf['Model']['ImageWidth']), int(self.conf['Model']['ImageHeight'])]
|
||||
self.word = self.conf['Model']['Word']
|
||||
self.ImageChannel = self.conf['Model']['ImageChannel']
|
||||
logger.info("\nTaget:\nmin_Accuracy: {}\nmin_Epoch: {}\nmax_Loss: {}".format(self.target_acc, self.min_epoch,
|
||||
self.max_loss))
|
||||
|
||||
@@ -147,7 +148,7 @@ class Train:
|
||||
time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime(self.now_time))))
|
||||
, input_names, output_names, dynamic_ax)
|
||||
with open(os.path.join(self.models_path, "charsets.json"), 'w', encoding="utf-8") as f:
|
||||
f.write(json.dumps({"charset": self.net.charset, "image": self.resize, "word": self.word}, ensure_ascii=False))
|
||||
f.write(json.dumps({"charset": self.net.charset, "image": self.resize, "word": self.word, 'channel': self.ImageChannel}, ensure_ascii=False))
|
||||
logger.info("\nExport Finished!Using Time: {}min".format(
|
||||
str(int(int(self.now_time) - int(self.start_time)) / 60)))
|
||||
exit()
|
||||
|
||||
Reference in New Issue
Block a user