mirror of
https://github.com/xuebinqin/DIS.git
synced 2024-11-26 08:43:17 +01:00
use crossplatform paths instead of unix-style
This commit is contained in:
parent
f3837183a3
commit
9a188586a3
@ -17,9 +17,11 @@ from models import *
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
dataset_path="../demo_datasets/your_dataset" #Your dataset path
|
||||
model_path="../saved_models/IS-Net/isnet-general-use.pth" # the model path
|
||||
result_path="../demo_datasets/your_dataset_result" #The folder path that you want to save the results
|
||||
root_path=os.path.abspath(__file__)
|
||||
root_path=os.path.dirname(os.path.dirname(root_path))
|
||||
dataset_path=os.path.join(root_path, "demo_datasets", "your_dataset") # Your dataset path
|
||||
model_path=os.path.join(root_path, "saved_models", "IS-Net", "isnet-general-use.pth") # the model path
|
||||
result_path=os.path.join(root_path, "demo_datasets", "your_dataset_result") # The folder path that you want to save the results
|
||||
input_size=[1024,1024]
|
||||
net=ISNetDIS()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user