Update README.md
Browse files
README.md
CHANGED
|
@@ -110,9 +110,9 @@ from utilities import preprocess_image, postprocess_image
|
|
| 110 |
|
| 111 |
im_path = f"{os.path.dirname(os.path.abspath(__file__))}/example_input.jpg"
|
| 112 |
|
| 113 |
-
net = BriaRMBG()
|
| 114 |
-
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 115 |
net = BriaRMBG.from_pretrained("briaai/RMBG-1.4")
|
|
|
|
|
|
|
| 116 |
net.to(device)
|
| 117 |
|
| 118 |
# prepare input
|
|
|
|
| 110 |
|
| 111 |
im_path = f"{os.path.dirname(os.path.abspath(__file__))}/example_input.jpg"
|
| 112 |
|
|
|
|
|
|
|
| 113 |
net = BriaRMBG.from_pretrained("briaai/RMBG-1.4")
|
| 114 |
+
|
| 115 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 116 |
net.to(device)
|
| 117 |
|
| 118 |
# prepare input
|