luoyetx / deep-landmark

Predict facial landmarks with Deep CNNs powered by Caffe.
BSD 3-Clause "New" or "Revised" License
282 stars 156 forks source link

The test with the landmark.py you applied is not accurate. #16

Open XiaXuehai opened 8 years ago

XiaXuehai commented 8 years ago

I use the landmark and the caffemodel you applied to test the image,and the result wasn't accurate. and I see the classification.cpp caffe applied.The input testing image should minus mean_file.Do you think it's a factor of inaccuracy.

luoyetx commented 8 years ago

The code here process the image. The model here is still not comparable to the original paper.

XiaXuehai commented 8 years ago

THX. But the mean_file in caffe's example is the mean of the training image.And it's not the same as the following:

def _processImage(self, imgs):
        imgs = imgs.astype(np.float32)
        for i, img in enumerate(imgs):
            m = img.mean()
            s = img.std()
            imgs[i] = (img - m) / s
        return imgs

Does it affect the result?

luoyetx commented 8 years ago

@XiaXuehai Yes. Caffe support an external mean_file for data layer. But I didn't use it. Actually, I did the image processing in my own code and give a raw data input to the network.

hugowangyj commented 8 years ago

Hello, luoyetx, what's your lowest loss on the test dataset? I find mine is a large gap with the paper.

luoyetx commented 8 years ago

@hugowangyj You can find some data in this pdf.

hugowangyj commented 8 years ago

Yes, but it is still a large lag behind the original paper. Have you the latest results?