timm
PyTorch
medical
Image Feature Extraction
Ege Oezsoy commited on
Commit
0cdd25f
1 Parent(s): 034b461

Adjustments

Browse files
Files changed (2) hide show
  1. config.json +0 -0
  2. 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", "endovit.pth")
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))