Max Meyer
commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
|
| 5 |
-
# BEN - Background Erase Network
|
| 6 |
|
| 7 |
BEN is a deep learning model designed to automatically remove backgrounds from images, producing both a mask and a foreground image.
|
| 8 |
- MADE IN AMERICA
|
|
@@ -20,7 +20,7 @@ file = "./image2.jpg" # input image
|
|
| 20 |
|
| 21 |
model = model.BEN_Base().to(device).eval() #init pipeline
|
| 22 |
|
| 23 |
-
model.loadcheckpoints("./BEN/
|
| 24 |
image = Image.open(file)
|
| 25 |
mask, foreground = model.inference(image)
|
| 26 |
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
|
| 5 |
+
# BEN - Background Erase Network (Base Model)
|
| 6 |
|
| 7 |
BEN is a deep learning model designed to automatically remove backgrounds from images, producing both a mask and a foreground image.
|
| 8 |
- MADE IN AMERICA
|
|
|
|
| 20 |
|
| 21 |
model = model.BEN_Base().to(device).eval() #init pipeline
|
| 22 |
|
| 23 |
+
model.loadcheckpoints("./BEN/BEN_Base.pth")
|
| 24 |
image = Image.open(file)
|
| 25 |
mask, foreground = model.inference(image)
|
| 26 |
|