AntonXue's picture
Update README.md
1a3ca51 verified
|
raw
history blame contribute delete
No virus
697 Bytes
metadata
tags:
  - pytorch_model_hub_mixin
  - model_hub_mixin
datasets:
  - BrachioLab/cholecystectomy

This model has been pushed to the Hub using the PytorchModelHubMixin integration:

  • Library: [More Information Needed]
  • Docs: [More Information Needed]

Usage

import torch
from exlib.datasets.cholec import CholecDataset, CholecModel
model = CholecModel.from_pretrained("BrachioLab/cholecystectomy_gonogo")
dataset = CholecDataset(split="test")
dataloader = torch.utils.data.DataLoader(dataset, batch_size=4, shuffle=True)
item = next(iter(dataloader))
out = model(item["image"])