Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about DANtesting.py problem #45

Open
qmj123 opened this issue Dec 3, 2018 · 10 comments
Open

about DANtesting.py problem #45

qmj123 opened this issue Dec 3, 2018 · 10 comments

Comments

@qmj123
Copy link

qmj123 commented Dec 3, 2018

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 qmj123 changed the title about CameraDemo.py problem about DANtesting.py problem Dec 4, 2018
@MarekKowalski
Copy link
Owner

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

@qmj123
Copy link
Author

qmj123 commented Dec 6, 2018

Ok!Too stupid! Thank you ! Thank you !

@qmj123
Copy link
Author

qmj123 commented Dec 6, 2018

I download these dataset but have problem that
image

@MarekKowalski
Copy link
Owner

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

Marek

@qmj123
Copy link
Author

qmj123 commented Dec 8, 2018

ok! Thanks!

@Tomhouxin
Copy link

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):

1 similar comment
@Tomhouxin
Copy link

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):

@MarekKowalski
Copy link
Owner

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

@Tomhouxin
Copy link

yes, I use :
image

@MarekKowalski
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants