Open iAceLee opened 8 years ago
Maybe you can try to do finetuning (load vgg16 weights) and retrain for your own task. See: https://github.com/tflearn/models. You may get better performances.
Also for your network, could you try to use Adam instead of Momentum?
network = regression(network, optimizer='adam', loss='categorical_crossentropy', learning_rate=0.001)
@iAceLee here's some notes one why it's advisable sometimes to NOT train such CNN from scratch, and thus the need for fine-tuning. Might be useful! http://cs231n.github.io/transfer-learning/
Hello Aymeric, I am sorry to bother U again. Last few days I've asked U a question about multi-GPUs support and the low training accuracy, U said to me that maybe it's because my dataset's problem. However my teacher trained this dataset on Caffe and it converges very well......
Here is the specific describe of my problem:
My dataset consists of 7 kinds of cloth pictures(about 400*400 pixels), each kind contains about 4800 training pics and 1000 validations. I use the TFLearn's example---alexnet for ox17---as my network architectures, and changed some parameters based on it. My code is showed below:
All I did is changed the way image read and the number of output kinds. I have also changed the batchsize to different value(64, 128 etc.), but it didn't work. The accuracy remains in 14% to 19% all the time.
Is there any obvious mistake I've made? About a week spent on it. It's going to drive me crazy T^T
Thank u all.
p.s. there is not any error occured when I am running it. everything seems OK except for the incredable low accuracy.