Update README.md
Browse files
README.md
CHANGED
|
@@ -51,7 +51,7 @@ file = "./image.png" # input image
|
|
| 51 |
|
| 52 |
model = model.BEN_Base().to(device).eval() #init pipeline
|
| 53 |
|
| 54 |
-
model.loadcheckpoints("./
|
| 55 |
image = Image.open(file)
|
| 56 |
foreground = model.inference(image, refine_foreground=False,) #Refine foreground is an extract postprocessing step that increases inference time but can improve matting edges. The default value is False.
|
| 57 |
|
|
@@ -74,7 +74,7 @@ device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
| 74 |
|
| 75 |
model = model.BEN_Base().to(device).eval() #init pipeline
|
| 76 |
|
| 77 |
-
model.loadcheckpoints("./
|
| 78 |
|
| 79 |
file1 = "./image1.png" # input image1
|
| 80 |
file2 = "./image2.png" # input image2
|
|
@@ -113,7 +113,7 @@ file = "./image.png" # input image
|
|
| 113 |
|
| 114 |
model = model.BEN_Base().to(device).eval() #init pipeline
|
| 115 |
|
| 116 |
-
model.loadcheckpoints("./
|
| 117 |
|
| 118 |
|
| 119 |
|
|
|
|
| 51 |
|
| 52 |
model = model.BEN_Base().to(device).eval() #init pipeline
|
| 53 |
|
| 54 |
+
model.loadcheckpoints("./BEN2_Base.pth")
|
| 55 |
image = Image.open(file)
|
| 56 |
foreground = model.inference(image, refine_foreground=False,) #Refine foreground is an extract postprocessing step that increases inference time but can improve matting edges. The default value is False.
|
| 57 |
|
|
|
|
| 74 |
|
| 75 |
model = model.BEN_Base().to(device).eval() #init pipeline
|
| 76 |
|
| 77 |
+
model.loadcheckpoints("./BEN2_Base.pth")
|
| 78 |
|
| 79 |
file1 = "./image1.png" # input image1
|
| 80 |
file2 = "./image2.png" # input image2
|
|
|
|
| 113 |
|
| 114 |
model = model.BEN_Base().to(device).eval() #init pipeline
|
| 115 |
|
| 116 |
+
model.loadcheckpoints("./BEN2_Base.pth")
|
| 117 |
|
| 118 |
|
| 119 |
|