Downloads · 30 days
0
arunapb/nutriconsistnet
nutriconsistnet is a machine learning model from arunapb. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-4.0.
Predicts total calories, mass, fat, carb and protein of a plate from ONE overhead RGB photo.
Downloads · 30 days
0
Access
Public
Updated Jul 14, 2026
Repo size
98.6 MB
Likes
0
Public
Click a slice to open those files.
.pt98.6 MB · 100%
From the Hugging Face model README
Predicts total calories, mass, fat, carb and protein of a plate from ONE overhead RGB photo.
Calories MAE: 44.7 kcal (17.5%) Mass MAE: 26.2 g (13.2%) Fat MAE: 3.4 g (26.5%) Carb MAE: 5.0 g (25.2%) Protein MAE: 4.3 g (24.6%) Atwater violation of final predictions: 8.3 kcal
import numpy as np, torch, torch.nn as nn, torchvision.models as tvm
# paste the model class from the training notebook, then:
means = np.load("train_means.npy")
model = NutriConsistNetV2(means) # for the v2 file
# model = NutriConsistNet() # for the e2 file
model.load_state_dict(torch.load("nutriconsistnet_v2.pt", map_location="cpu"))
model.eval()