Views
No views yet
1import torch
2from models.model import U_RWKV
3
4# Load model
5model = U_RWKV()
6checkpoint = torch.load('model.pth')
7model.load_state_dict(checkpoint['model_state_dict'])
8model.eval()
9
10# Inference
11with torch.no_grad():
12 output = model(input_image)