Closed whybfq closed 6 months ago
def process(image: torch.Tensor) -> torch.Tensor: with torch.no_grad(): return model(tensor)
should the last line change to return model(image)
Yes that's a typo, nice catch
use the model
def process(image: torch.Tensor) -> torch.Tensor: with torch.no_grad(): return model(tensor)
should the last line change to return model(image)