nielsr HF staff commited on
Commit
ec45193
1 Parent(s): e0e74b8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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