Views
No views yet
1import numpy as np, torch, torch.nn as nn, torchvision.models as tvm
2# paste the model class from the training notebook, then:
3means = np.load("train_means.npy")
4model = NutriConsistNetV2(means) # for the v2 file
5# model = NutriConsistNet() # for the e2 file
6model.load_state_dict(torch.load("nutriconsistnet_v2.pt", map_location="cpu"))
7model.eval()