This commit is contained in:
Xuebin Qin 2022-07-17 16:19:20 -07:00
parent b9e31bdc26
commit 85a9a1be60
2 changed files with 2 additions and 2 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -709,9 +709,9 @@ if __name__ == "__main__":
print("building model...") print("building model...")
hypar["model"] = ISNetDIS() #U2NETFASTFEATURESUP() hypar["model"] = ISNetDIS() #U2NETFASTFEATURESUP()
hypar["early_stop"] = 20 ## stop the training when no improvement in the past 20 validation periods, smaller numbers can be used here e.g., 5 or 10. hypar["early_stop"] = 20 ## stop the training when no improvement in the past 20 validation periods, smaller numbers can be used here e.g., 5 or 10.
hypar["model_save_fre"] = 20 ## valid and save model weights every 2000 iterations hypar["model_save_fre"] = 2000 ## valid and save model weights every 2000 iterations
hypar["batch_size_train"] = 2 ## batch size for training hypar["batch_size_train"] = 8 ## batch size for training
hypar["batch_size_valid"] = 1 ## batch size for validation and inferencing hypar["batch_size_valid"] = 1 ## batch size for validation and inferencing
print("batch size: ", hypar["batch_size_train"]) print("batch size: ", hypar["batch_size_train"])