mirror of
https://github.com/xuebinqin/DIS.git
synced 2024-12-02 03:03:56 +01:00
dis v2
This commit is contained in:
parent
b9e31bdc26
commit
85a9a1be60
@ -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"])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user