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

Remove duplicate files #90

Open
psyhtest opened this issue Apr 7, 2017 · 1 comment
Open

Remove duplicate files #90

psyhtest opened this issue Apr 7, 2017 · 1 comment
Assignees

Comments

@psyhtest
Copy link
Member

psyhtest commented Apr 7, 2017

The CK-Caffe repository contains several duplicate files:

$ find $CK_REPOS/ck-caffe -name *binaryproto -exec ls -la {} \;
-rw-r--r-- 1 anton dvdt 602126 Apr  7 19:09 /home/anton/CK/ck-caffe/package/caffemodel-resnet101/ResNet_mean.binaryproto
-rw-r--r-- 1 anton dvdt 602126 Apr  7 19:09 /home/anton/CK/ck-caffe/package/caffemodel-resnet50/ResNet_mean.binaryproto
-rw-r--r-- 1 anton dvdt 602126 Apr  7 19:09 /home/anton/CK/ck-caffe/package/caffemodel-resnet152/ResNet_mean.binaryproto
-rw-r--r-- 1 anton dvdt 786446 Jan 13 09:00 /home/anton/CK/ck-caffe/program/caffe-classification-cuda/imagenet_mean.binaryproto
-rw-r--r-- 1 anton dvdt 786446 Jan 23 14:15 /home/anton/CK/ck-caffe/program/caffe/for_classification_demo/imagenet_mean.binaryproto
-rw-r--r-- 1 anton dvdt 786446 Jan 23 14:15 /home/anton/CK/ck-caffe/program/caffe-classification-opencl/imagenet_mean.binaryproto
-rw-r--r-- 1 anton dvdt 786446 Nov  8 16:34 /home/anton/CK/ck-caffe/program/caffe-classification/imagenet_mean.binaryproto
$ find $CK_REPOS/ck-caffe -name synset_words.txt -exec ls -la {} \;
-rw-r--r-- 1 anton dvdt 31675 Jan 13 09:00 /home/anton/CK/ck-caffe/program/caffe-classification-cuda/synset_words.txt
-rw-r--r-- 1 anton dvdt 31675 Jan 23 14:15 /home/anton/CK/ck-caffe/program/caffe/for_classification_demo/synset_words.txt
-rw-r--r-- 1 anton dvdt 31675 Jan 23 14:15 /home/anton/CK/ck-caffe/program/caffe-classification-opencl/synset_words.txt
-rw-r--r-- 1 anton dvdt 31675 Nov  8 16:34 /home/anton/CK/ck-caffe/program/caffe-classification/synset_words.txt

These should be moved into separate entries, with dependencies set up on them.

@psyhtest
Copy link
Member Author

psyhtest commented Apr 11, 2017

This should also solve the current problem e.g. with program:caffe-classification-cuda:

$ ck run program:caffe-classification-cuda
...
0) default ($#BIN_FILE#$ $<<CK_CAFFE_MODEL_FILE>>$ $<<CK_CAFFE_MODEL_WEIGHTS>>$ $#up_dir#$imagenet_mean.binaryproto $#up_dir#$synset_words.txt $#dataset_path#$$#dataset_filename#$)
1) use_continuous ($#BIN_FILE#$ $<<CK_CAFFE_MODEL_FILE>>$ $<<CK_CAFFE_MODEL_WEIGHTS>>$ $<<CK_CAFFE_IMAGENET_MEAN_BIN>>$ $<<CK_CAFFE_IMAGENET_SYNSET_WORDS_TXT>>$ --continuous $<<CK_CAFFE_IMAGENET_VAL>>$ $<<CK_CAFFE_IMAGENET_VAL_TXT>>$)
2) use_external_image ($#BIN_FILE#$ $<<CK_CAFFE_MODEL_FILE>>$ $<<CK_CAFFE_MODEL_WEIGHTS>>$ $#up_dir#$imagenet_mean.binaryproto $#up_dir#$synset_words.txt $<<CK_CAFFE_PATH_TO_IMAGE>>$)

where the commands 0 and 2 refer to the up_dir which is not correct for the ResNet's...

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

No branches or pull requests

2 participants