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
JPEG processing fails on Amazon Linux #2760
Comments
Could you provide some sample images that are failing to load? |
any progress? |
Thanks for the reminder! Was just getting to this. Unfortunately, I am unable to reproduce the error, even on AWS:
Is this what you are running? This line works just fine for me: INDArray arr = new NativeImageLoader().asMatrix(new File("/path/to/848fb24e-e48c-11e6-8593-7844516347e5.jpg"));
System.out.println(arr.shapeInfoToString()); This outputs as expected:
|
No, I am using a later version: |
Can you try it with the specific AMI Deep Learning AMI - Amazon Linux - 1.5 (MXNet with MKL Support) (ami-41570b32) |
I'll be doing that, but in the meantime could you show me your pom.xml file? |
|
Looks fine. So, could you show the content of |
it exits before I can check the contents of /proc//maps. |
I managed to check what is in /proc and there is noting for the process id. Which AMI are you using. |
from what i can see it looks like the jpeg library yo are using is different from what is available on amazon linux. can you show me a way to rectify this? maybe i should just use python instead as i an't get this to work at all |
File parentDir = new File(args[0] + "/images/train/"); Where is that directory? ↑ |
@saudet It is quite big, where do you want me to upload to? |
@saudet I have put it on google drive: https://drive.google.com/open?id=0B3La2rDhbx8ySjNxQUlXNHdRVzA |
Works perfectly fine here. Loads all images, and starts training. |
Here is the exact command I used:
|
can you put link to AMI you are using please? |
Just one from here: https://aws.amazon.com/amazon-linux-ami/ |
That one involves installing CUDa by hand. |
Could you give me a URL to that one? |
So, it turns out that ami-41570b32 is available from https://aws.amazon.com/marketplace/pp/B01M0AXXQB if we choose the EU (Ireland) region. So I tried that out. Precisely I
/path/to/apache-maven-3.3.9/bin/mvn compile exec:java -Dexec.mainClass=io.regularization.leafclassifier.ResNetTrainer -Dexec.args=/path/to/images/ And everything went perfectly fine. So there is no problem at all with this instance as well. This AWS image is interesting though. Maybe we should document the above steps somewhere @tomthetrainer ? |
Going to assume user error here. Closing this. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am trying to consume images for classification task and the code runs fine on OS X.
I am getting the below stacktrace on Amazon Linux though:
I am using Deep Learning AMI - Amazon Linux - 1.5 (MXNet with MKL Support) (ami-41570b32) on AWS EC2.
The text was updated successfully, but these errors were encountered: