-
Notifications
You must be signed in to change notification settings - Fork 99
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
Not able to read binary file #13
Comments
Hi @navneet1083 Could you please run the "ls -R" command in your main directory of "quantized-cnn", and post the result here? It seems to be some problem with failed-to-open files. |
$ ls -R ./AlexNet: ./AlexNet/Bin.Files: ./AlexNet/Bin.Files/temp: ./AlexNet/Bin.Files/temp/AlexNet.extra: ./bin: ./Bmp.Files: ./Cls.Names: ./cmake-build-debug: ./cmake-build-debug/CMakeFiles: ./ILSVRC12.227x227.IMG: ./include: ./obj: ./src: |
Which version of AlexNet are you running, original or quantized? For the original AlexNet, you need to put all the *convKnl* and *fcntWei* files under the ./AlexNet/Bin.Files directory. P.S.: If this error occurs when you call the UnitTest::UT_CaffePara() function, it is okay since this function converts the *.bin to *.cbn for all *asmtLst* files. The former ones are not provided in this repository to save space, and is not required when you run the quantized AlexNet. |
I am running UnitTest::UT_CaffeEva(); and trying to use Alexnet quantised one. Can i train on new set of BMP images and use that model for inference? If not, could you please share the models which u have trained on (like imagenet, cifar, VOC etc). |
I trained the quantized AlexNet on a subset of ImageNet, and the resulting model is as provided in the repository. I recommend you to print out the file path in each call to FileIO::ReadBinFile(), and find out which file is not correctly loaded. |
I have attached the log files. log.log ===> if kEnblAprxComp = true log2.log ===> if kEnblAprxComp = false (getting segmentation fault @ExecForwardPass) https://www.dropbox.com/sh/muenm5ou8hsuu12/AAAp2NIFXtWRPL5i-APgaMxwa?dl=0 Have i missed some bin file ? |
It seems to be something wrong with the *asmtLst* files. Can you post the result of running these two commands?
|
$ ls -l ./AlexNet/Bin.Files/asmtLst $ md5sum ./AlexNet/Bin.Files/asmtLst |
Your *.cbn files are corrupted. Please use the original files provided in the repository. Below is my md5sum outputs: jxwu@jxwu-titan:~/quantized-cnn$ md5sum ./AlexNet/Bin.Files/*asmtLst* |
After changing file, still getting the segmentation fault. $ md5sum ./AlexNet/Bin.Files/asmtLst $ ./bin/QuanCNN > log.log log file - https://www.dropbox.com/s/nn3v7pzgq2pt5tw/log%20%281%29.log?dl=0 |
Could you please debug the program with gdb, and post the call stack where the segmentation fault took place? P.S.: I re-ran the code just now, and no segmentation fault happened. You may try on a clean repository fetched from the GitHub, and only put the "dataMatTst.single.bin" file into the "./ILSVRC12.227x227.IMG" directory, and see whether there is any problem. |
thanks @jiaxiang-wu. could you please provide the steps involved in training new dataset. (like if i would like to train for full imagenet2016, how can i do it?). Also, is it possible to train for multi-lable-classes like for VOC-dataset (with roi and bonding boxes for multiple objects in an image). |
|
I am not able to read binary file which are in Alexnet/Bin.Files directory, which i downloaded from the url mentioned in README. Getting following error:
static bool FileIO::ReadBinFile(const string&, Matrix*) [with T = float; std::__cxx11::string = std::__cxx11::basic_string]: Assertion `rtnVal == dataCntInBuffer' failed.
It would be great help if you could tell me the cause for this.
The text was updated successfully, but these errors were encountered: