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

age_gender demo fails with segmentation fault #27

Open
kaisark opened this issue Mar 30, 2018 · 1 comment
Open

age_gender demo fails with segmentation fault #27

kaisark opened this issue Mar 30, 2018 · 1 comment

Comments

@kaisark
Copy link

kaisark commented Mar 30, 2018

The age_gender demo fails with segmentation fault. Looks like the download links were updated recently:

nvidia@tegra-ubuntu:~/torch-opencv-demos/age_gender$ th demo.lua camera
Looking for haarcascades/haarcascade_frontalface_default.xml...
--2018-03-30 01:30:31-- https://github.com/eveningglow/age-and-gender-classification/raw/master/model/age_net.caffemodel
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/eveningglow/age-and-gender-classification/master/model/age_net.caffemodel [following]
--2018-03-30 01:30:31-- https://raw.githubusercontent.com/eveningglow/age-and-gender-classification/master/model/age_net.caffemodel
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.200.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.200.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 45661480 (44M) [application/octet-stream]
Saving to: 'age_net.caffemodel'

age_net.caffemodel 100%[================================================================================================================>] 43.55M 2.98MB/s in 15s

2018-03-30 01:30:47 (2.99 MB/s) - 'age_net.caffemodel' saved [45661480/45661480]

--2018-03-30 01:30:47-- https://github.com/eveningglow/age-and-gender-classification/raw/master/model/gender_net.caffemodel
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/eveningglow/age-and-gender-classification/master/model/gender_net.caffemodel [following]
--2018-03-30 01:30:47-- https://raw.githubusercontent.com/eveningglow/age-and-gender-classification/master/model/gender_net.caffemodel
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.200.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.200.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 45649168 (44M) [application/octet-stream]
Saving to: 'gender_net.caffemodel'

gender_net.caffemodel 100%[================================================================================================================>] 43.53M 2.98MB/s in 15s

2018-03-30 01:31:03 (3.00 MB/s) - 'gender_net.caffemodel' saved [45649168/45649168]

--2018-03-30 01:31:03-- https://github.com/eveningglow/age-and-gender-classification/raw/master/model/deploy_age2.prototxt
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/eveningglow/age-and-gender-classification/master/model/deploy_age2.prototxt [following]
--2018-03-30 01:31:03-- https://raw.githubusercontent.com/eveningglow/age-and-gender-classification/master/model/deploy_age2.prototxt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.200.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.200.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2324 (2.3K) [text/plain]
Saving to: 'deploy_age.prototxt'

deploy_age.prototxt 100%[================================================================================================================>] 2.27K --.-KB/s in 0s

2018-03-30 01:31:03 (13.0 MB/s) - 'deploy_age.prototxt' saved [2324/2324]

--2018-03-30 01:31:03-- https://github.com/eveningglow/age-and-gender-classification/raw/master/model/deploy_gender2.prototxt
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/eveningglow/age-and-gender-classification/master/model/deploy_gender2.prototxt [following]
--2018-03-30 01:31:03-- https://raw.githubusercontent.com/eveningglow/age-and-gender-classification/master/model/deploy_gender2.prototxt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.200.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.200.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2324 (2.3K) [text/plain]
Saving to: 'deploy_gender.prototxt'

deploy_gender.prototxt 100%[================================================================================================================>] 2.27K --.-KB/s in 0.001s

2018-03-30 01:31:04 (3.88 MB/s) - 'deploy_gender.prototxt' saved [2324/2324]

--2018-03-30 01:31:04-- https://www.dropbox.com/s/wa61ihl8l9z89e8/age_gender_mean.t7
Resolving www.dropbox.com (www.dropbox.com)... 162.125.6.1, 2620:100:601c:1::a27d:601
Connecting to www.dropbox.com (www.dropbox.com)|162.125.6.1|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://dl.dropboxusercontent.com/content_link/JSnZf8bzbYYjQqCC6Uk6kC2IH2ehxZwHTvY62E9JLVZLUZDDIb36lW4hDlYZ44N7/file [following]
--2018-03-30 01:31:04-- https://dl.dropboxusercontent.com/content_link/JSnZf8bzbYYjQqCC6Uk6kC2IH2ehxZwHTvY62E9JLVZLUZDDIb36lW4hDlYZ44N7/file
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 162.125.6.6, 2620:100:601c:6::a27d:606
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|162.125.6.6|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1573007 (1.5M) [application/octet-stream]
Saving to: 'age_gender_mean.t7'

age_gender_mean.t7 100%[================================================================================================================>] 1.50M 2.45MB/s in 0.6s

2018-03-30 01:31:06 (2.45 MB/s) - 'age_gender_mean.t7' saved [1573007/1573007]

Successfully loaded ./gender_net.caffemodel
MODULE data UNDEFINED
warning: module 'data [type 5]' not found
conv1: 96 3 7 7
conv2: 256 96 5 5
conv3: 384 256 3 3
fc6: 1 1 18816 512
fc7: 1 1 512 512
fc8: 1 1 512 2
Segmentation fault

@shrubb
Copy link
Collaborator

shrubb commented Mar 30, 2018

Looks like the package responsible for loading Caffe nets fails on Jetsons:
szagoruyko/loadcaffe#35
I don't have one so can't reproduce :(

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

2 participants