Spaces:
Runtime error
Runtime error
File size: 350 Bytes
988a945 307f250 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
from PIL import Image
import os
import torch
import torch.nn.functional as F
import torchvision.transforms as transforms
import torchvision
import numpy as np
import yaml
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
|