AntonXue commited on
Commit
5eb3024
1 Parent(s): fb1d81d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -1
README.md CHANGED
@@ -6,4 +6,15 @@ tags:
6
 
7
  This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
8
  - Library: [More Information Needed]
9
- - Docs: [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
8
  - Library: [More Information Needed]
9
+ - Docs: [More Information Needed]
10
+
11
+ ## Usage
12
+ ```
13
+ import torch
14
+ from exlib.datasets.cholec import CholecDataset, CholecModel
15
+ model = CholecModel.from_pretrained("BrachioLab/cholecystectomy_organs")
16
+ dataset = CholecDataset(split="test")
17
+ dataloader = torch.utils.data.DataLoader(dataset, batch_size=4, shuffle=True)
18
+ item = next(iter(dataloader))
19
+ out = model(item["image"])
20
+ ```