Closed zchrissirhcz closed 6 years ago
On thing is just that DIGITS uses it's own pre processing for resizing, here is something about it: https://github.com/NVIDIA/DIGITS/issues/1369
You have to change the size before doing the database in DIGITS and before training it, it means change the sizes of the final images before doing the database or change the code of DIGITS for resizing the images because DIGITS uses scipy.image.resize. Ok if you only want to use Python than it's ok but there is now corresponding possibility in c++ for resizing images.
@ZeroCool11000 Thanks for your reminding. Actually I would like to see curve plots during training, so I find DIGITS and use it. I personnally like the resizing step directly handle by myself or in a relatively easy seeing manner. So now I change to use VisualDL, which is like a Tensorboard tool for many frameworks including Caffe, and this plotting tool only handle my extracted scalar data to plot without changing them.
Hi, I'm new to DIGITS and like its WebUI.
I trained a classification model with AlexNet and Kaggle's cats and dogs dataset. By altering the learning rate, my training curves show that after the 1st epoch the validation's accuracy is nearly 100% and keeps that until the last epoch (10-th).
Then I can test a single image via the "Classify One Image" via my local DIGITS web page, and get its probabilities to each class(dog, cat).
However, I'd like to use the trained model in other condition, not on DIGITS. For example, classification is just one component in my whole program. So I'd like to get the exactly the same output in my own code. I tried to use pycaffe to load that trained model and do test on the whole epoch of my validation images. However, the accuracy is low (~50% vs ~100%). So I just wondering how to get it via pycaffe.
(Note, I transformed the mean.binaryproto to mean.npy, but still ~50% accuracy)
My code is like this:
Anyone can help me out? Thanks.