int day = 4;
switch (day)
{
case 1:
Console.WriteLine("Monday");
break;
case 2:
Console.WriteLine("Tuesday");
break;
case 3:
Console.WriteLine("Wednesday");
break;
case 4:
Console.WriteLine("Thursday");
break;
case 5:
Console.WriteLine("Friday");
break;
case 6:
Console.WriteLine("Saturday");
break;
case 7:
Console.WriteLine("Sunday");
break;
}
// Outputs "Thursday" (day 4)
import torch
import torchvision
from models.experimental import attempt_load
model = attempt_load("/yolov5-master/runs/train/exp8/weights/best.pt",device= torch.device('cpu'))
model.eval()
input_tensor = torch.randn(1,3,640,640)
torch.onnx.export(model,input_tensor,"/yolov5-master/yolo.onnx")