Ege Oezsoy
commited on
Commit
·
0cdd25f
1
Parent(s):
034b461
Adjustments
Browse files- config.json +0 -0
- endovit_demo.py +1 -1
config.json
ADDED
File without changes
|
endovit_demo.py
CHANGED
@@ -45,7 +45,7 @@ images = torch.stack([process_single_image(image_path) for image_path in image_p
|
|
45 |
|
46 |
device = "cuda"
|
47 |
dtype = torch.float16
|
48 |
-
model, loading_info = load_model_from_huggingface("egeozsoy/EndoViT", "
|
49 |
model = model.to(device, dtype)
|
50 |
print(loading_info)
|
51 |
output = model.forward_features(images.to(device, dtype))
|
|
|
45 |
|
46 |
device = "cuda"
|
47 |
dtype = torch.float16
|
48 |
+
model, loading_info = load_model_from_huggingface("egeozsoy/EndoViT", "pytorch_model.bin")
|
49 |
model = model.to(device, dtype)
|
50 |
print(loading_info)
|
51 |
output = model.forward_features(images.to(device, dtype))
|