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

Segmentation fault (core dumped) when creating imageset #7055

Open
SimonWang2014 opened this issue May 18, 2022 · 0 comments
Open

Segmentation fault (core dumped) when creating imageset #7055

SimonWang2014 opened this issue May 18, 2022 · 0 comments

Comments

@SimonWang2014
Copy link

Issue summary

Failed to create my own image set, Segmentation fault (core dumped).

Steps to reproduce

create_imagenet.sh config:

set -e

EXAMPLE=data
DATA=/scratch/Teaching/hw01220/dogs/NewImages
TOOLS=/opt/caffe/build/tools

TRAIN_DATA_ROOT=/scratch/Teaching/hw01220/dogs/NewImages/train_img/
VAL_DATA_ROOT=/scratch/Teaching/hw01220/dogs/NewImages/val_img/

....

GLOG_logtostderr=1 $TOOLS/convert_imageset \
    --resize_height=$RESIZE_HEIGHT \
    --resize_width=$RESIZE_WIDTH \
    --shuffle \
    $TRAIN_DATA_ROOT \
    $DATA/train.txt \
    $EXAMPLE/cars_train_lmdb

echo "Creating val lmdb..."

GLOG_logtostderr=1 $TOOLS/convert_imageset \
    --resize_height=$RESIZE_HEIGHT \
    --resize_width=$RESIZE_WIDTH \
    --shuffle \
    $VAL_DATA_ROOT \
    $DATA/val.txt \
    $EXAMPLE/cars_val_lmdb

The format of the train.txt and val.txt:

63_scratch6.jpg 63

output:

(22:09 hw01220@manfred imagenet) > ./create_imagenet.sh 
Creating train lmdb...
I0518 22:09:31.906777 2695928 convert_imageset.cpp:86] Shuffling data
I0518 22:09:32.294107 2695928 convert_imageset.cpp:89] A total of 17493 images.
I0518 22:09:32.348204 2695928 db_lmdb.cpp:35] Opened lmdb data/cars_train_lmdb
Segmentation fault (core dumped)

System configuration

  • Operating system: Ubuntu 20.04
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

1 participant