use crossplatform paths instead of unix-style

This commit is contained in:
2trvl 2023-03-28 00:43:04 +03:00
parent f3837183a3
commit 9a188586a3

View File

@ -17,9 +17,11 @@ from models import *
if __name__ == "__main__": if __name__ == "__main__":
dataset_path="../demo_datasets/your_dataset" #Your dataset path root_path=os.path.abspath(__file__)
model_path="../saved_models/IS-Net/isnet-general-use.pth" # the model path root_path=os.path.dirname(os.path.dirname(root_path))
result_path="../demo_datasets/your_dataset_result" #The folder path that you want to save the results 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] input_size=[1024,1024]
net=ISNetDIS() net=ISNetDIS()