You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.
Hello, I followed this link https://github.com/cedrickchee/pytorch-android to build an android app with a ResNet18 that does binary classification. I changed the app to take a still image when a button is clicked. Currently my model doesn't work well, I'm assuming because I'm not doing the same pre processing as in pytorch, and I don't know how to do it on the android app. On PyTorch I had transforms.Resize(256),
transforms.CenterCrop(224),
transforms.ToTensor(),
transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225]), and I'm assuming I should do the same thing on android for the model to work well. I also don't know what the b_mean, g_mean, r_mean in the cpp file in the original code below mean. Should I replace those with the means that I need [0.485, 0.456, 0.406] or are these just to get the format rgb? Thank you so much for help. `
float b_mean = 104.00698793f;
float g_mean = 116.66876762f;
float r_mean = 122.67891434f;
Hello, I followed this link https://github.com/cedrickchee/pytorch-android to build an android app with a ResNet18 that does binary classification. I changed the app to take a still image when a button is clicked. Currently my model doesn't work well, I'm assuming because I'm not doing the same pre processing as in pytorch, and I don't know how to do it on the android app. On PyTorch I had transforms.Resize(256),
transforms.CenterCrop(224),
transforms.ToTensor(),
transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225]), and I'm assuming I should do the same thing on android for the model to work well. I also don't know what the b_mean, g_mean, r_mean in the cpp file in the original code below mean. Should I replace those with the means that I need [0.485, 0.456, 0.406] or are these just to get the format rgb? Thank you so much for help. `
float b_mean = 104.00698793f;
float g_mean = 116.66876762f;
float r_mean = 122.67891434f;
`
The text was updated successfully, but these errors were encountered: