DeepAlignmentNetwork icon indicating copy to clipboard operation
DeepAlignmentNetwork copied to clipboard

about DANtesting.py problem

Open qmj123 opened this issue 7 years ago • 10 comments

Hi,When I run CameraDemo.py,there has a problem that F:\code\DeepAlignmentNetwork-master\DeepAlignmentNetwork> python .\DANtesting.py Loading network... Input shape: (None, 1, 112, 112) Network being tested: ..\DAN.npz Normalization is set to: corners Failure threshold is set to: 0.08 Processing common subset of the 300W public test set (test sets of LFPW and HELEN) E:\anaconda\lib\site-packages\numpy\core\fromnumeric.py:2957: RuntimeWarning: Mean of empty slice. out=out, **kwargs) Average error: nan Processing challenging subset of the 300W public test set (IBUG dataset) Average error: nan Showing results for the entire 300W pulic test set (IBUG dataset, test sets of LFPW and HELEN Average error: nan Traceback (most recent call last): File ".\DANtesting.py", line 35, in tests.AUCError(fullsetErrs, failureThreshold, showCurve=showCED) File "F:\code\DeepAlignmentNetwork-master\DeepAlignmentNetwork\tests.py", line 52, in AUCError ced = [float(np.count_nonzero([errors <= x])) / nErrors for x in xAxis] File "F:\code\DeepAlignmentNetwork-master\DeepAlignmentNetwork\tests.py", line 52, in ced = [float(np.count_nonzero([errors <= x])) / nErrors for x in xAxis] ZeroDivisionError: float division by zero What is the reason? Can you help me ? Thank you !

qmj123 avatar Dec 03 '18 02:12 qmj123

Hi,

It sounds like the datasets were not generated correctly, division by 0 suggests that there are no images in the dataset. Did you download the images from the ibug website and extract them to the correct directory as described in the readme?

Marek

MarekKowalski avatar Dec 05 '18 08:12 MarekKowalski

Ok!Too stupid! Thank you ! Thank you !

qmj123 avatar Dec 06 '18 12:12 qmj123

I download these dataset but have problem that image

qmj123 avatar Dec 06 '18 13:12 qmj123

Have you tried debugging this? Does a key like that exist in the dictionary? Do the file extensions match?

Marek

MarekKowalski avatar Dec 07 '18 22:12 MarekKowalski

ok! Thanks!

qmj123 avatar Dec 08 '18 05:12 qmj123

hi, when I run CameraDemp.py, get Error: Loading network... Input shape: (None, 1, 112, 112) ERROR (theano.gof.opt): Optimization failure due to: local_abstractconv_check ERROR (theano.gof.opt): node: AbstractConv2d{convdim=2, border_mode='half', subsample=(1, 1), filter_flip=True, imshp=(None, 1, 112, 112), kshp=(64, 1, 3, 3), filter_dilation=(1, 1), num_groups=1, unshared=False}(inputs, W) ERROR (theano.gof.opt): TRACEBACK: ERROR (theano.gof.opt): Traceback (most recent call last):

Tomhouxin avatar Jun 12 '19 08:06 Tomhouxin

hi, when I run CameraDemp.py, get Error: Loading network... Input shape: (None, 1, 112, 112) ERROR (theano.gof.opt): Optimization failure due to: local_abstractconv_check ERROR (theano.gof.opt): node: AbstractConv2d{convdim=2, border_mode='half', subsample=(1, 1), filter_flip=True, imshp=(None, 1, 112, 112), kshp=(64, 1, 3, 3), filter_dilation=(1, 1), num_groups=1, unshared=False}(inputs, W) ERROR (theano.gof.opt): TRACEBACK: ERROR (theano.gof.opt): Traceback (most recent call last):

Tomhouxin avatar Jun 12 '19 08:06 Tomhouxin

Hey,

This looks like a theano issue to me. Do you use the version I specified in the readme? Have you tried searching theano-related GitHub issues? Also, what is in the traceback?

Thanks,

Marek

MarekKowalski avatar Jun 16 '19 20:06 MarekKowalski

yes, I use : image

Tomhouxin avatar Jun 17 '19 01:06 Tomhouxin

Hi, Did you try running some other theano examples to determine whether the issue is in the DAN code (this repo) or with your Theano installation in general?

Thanks,

Marek

MarekKowalski avatar Jun 18 '19 20:06 MarekKowalski