-
Notifications
You must be signed in to change notification settings - Fork 102
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
Error with Ex. 5 Image Captioning #6
Comments
@thommiano : Can you try expanding |
@anguyen8 I tried using both |
@thommiano : Thanks for letting me know! How about this version of caffe_lrcn? I had someone try and report that this works. |
@anguyen8 The one you linked to works with examples 1 through 4, but not 5. This makes me think that there could be an issue with my version of of CUDA or CuDNN, or that there could be a conflict with some other file path in another file. This other issue appears to be closely related. |
@thommiano : yes, could be one of those reasons. I have never tried CUDA 8 with Caffe and I don't seem to be able to reproduce your problem. My setup is cuda 7.5/cudnn 4.0 here. Perhaps trying in CPU mode? |
CPU mode on caffe and caffe_lrcn works for example 1 through 4, but not 5. I believe I found the source of the error. The caffe cmake file has I tried rebuilding the caffe_lrcn with the two new architectures to make it available for CUDA 8, but ran into the following error:
In the meantime, I've tried rebuilding an image with CUDA 7.0 and CUDA 7.5, but I'm getting incompatibilities issues, i.e., I think this is still a Caffe issue, though, because I can use this display driver to run CUDA 7.0 with Torch. |
@thommiano Btw, you could comment out this line entirely: |
@anguyen8 Ah, ok! I was wondering about that . . . thanks for letting me know. |
@anguyen8 I forked your version of caffe_lrcn, updated the cmake file to include support for CUDA 8, and successfully (I think?) rebuilt caffe_lrcn: https://github.com/thommiano/caffe_lrcn I just noticed that despite what I set the settings.py caffe file path to (even if it's not a real file path), examples 1-4 still run... This makes me think that somehow it's failing to see the actual caffe_lrcn directory that I'm pointing it to. Any thoughts? Do I need to update my environment if the path in settings.py has changed? |
@thommiano : oh, ok good finding. It seems you've been accidentally using a different Caffe. and see if there is any path to some Caffe version there? |
I've been facing a similar issue. I compiled
|
@agermanidis What version of CUDA and nvidia display driver are you using? |
@thommiano I'm using CPU mode above. I also repeated the process on an EC2 GPU instance with CUDA 7.5, ran into the same issue. |
@agermanidis When you ran with CUDA 7.5 on the EC2 instance did the other examples work? You said you compiled caffe_lrcn, did you manually compile it (i.e., using make or cmake), or did you download it from the download.sh file provided in the ppgn repo? |
I manually compiled with make. I was under the impression that the |
@agermanidis Oops, yep you're right. I should have asked, did you download from the provided caffe_lrcn source. Did you compile from this source or from another source? |
@thommiano Compiled from @anguyen8's repo |
@agermanidis : just double-checking, does this repo work for you? (it's the exact copy on my local) |
@anguyen8: Still facing the same issue with your copy... I ended up making the script work by deleting the line with the check in |
Ok something just crazy happened to me. I was having all the issues you have and struggeling to find an answer. I tried everything I found online and what you are saying here, nothing worked. Last hope, I downloaded the anh repo in order to build it again WHILE building caffe again with standard settings for gpu .... and now it works . Even when I recompiled exactly with the same settings that were giving me issues before.. So no big help here, maybe just download the repo, place it in the same folder as the other repo, and cross your fingers. |
@kenkroft : Thanks for letting me know! At least a few people got it working (while some others didn't). |
@agermanidis Could you provide me with some morge info? I found the embed_layer.cpp file but don't know what to do with it. And when i changed it I just need to build caffe again with the make command? |
@jannesss delete the line CHECK(!propagate_down[0]) << "Can't backpropagate to EmbedLayer input.” in embed_layer.cpp. It worked for me. |
@anguyen8 I'm trying to run the fifth example, but I encounter the following error:
Which is followed by:
And then:
I cloned the the caffe_lrcn from the source you linked, and I updated the settings.py file accordingly:
caffe_root = "~/caffe_lrcn/python"
where I have my tree structured as the following:I don't have any problems running the other four examples. Also, I'm getting the
Failed to initialize libdc1394
error because I'm running this in a Docker container, and others have reported a similar problem, though it usually doesn't appear to cause any problems.Any thoughts? Thanks!
The text was updated successfully, but these errors were encountered: