anibali / docker-torch Goto Github PK
View Code? Open in Web Editor NEWA Docker image for Lua Torch
License: MIT License
A Docker image for Lua Torch
License: MIT License
Hello, I'm trying to load a pre-trained torch7 model with the following script
net = torch.load(loadFile)
print(net)```
and I am getting the following error:
```/root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/torch/File.lua:343: unknown Torch class <nn.Sequencer>
stack traceback:
[C]: in function 'error'
/root/torch/install/share/lua/5.1/torch/File.lua:343: in function 'readObject'
/root/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load'
loadModel.lua:2: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670```
I suspect that I need some additional components that do not exit in the docker-torch image. Can you confirm this and if it is possible to add the required components to the docker image?
Thanks in advance,
There seems to be an issue with libcudnn:
Step 26 : COPY libcudnn.so.4 /lib/libcudnn.so.4
lstat libcudnn.so.4: no such file or directory
I can't find any reference to cuDNN being downloaded so I guess something must have gotten lost in somewhere or am I missing something? I noticed that Kaixhin uses a different setup for his cuDNN containers:
# Install CUDA repo (needed for cuDNN)
ENV CUDA_REPO_PKG=cuda-repo-ubuntu1404_7.5-18_amd64.deb
RUN wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/$CUDA_REPO_PKG && \
dpkg -i $CUDA_REPO_PKG
# Install cuDNN v4
ENV ML_REPO_PKG=nvidia-machine-learning-repo_4.0-2_amd64.deb
RUN wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1404/x86_64/$ML_REPO_PKG && \
dpkg -i $ML_REPO_PKG && \
apt-get update && apt-get install -y libcudnn4 libcudnn4-dev
Btw - thanks for this excellent Torch docker. I've had issues with the docker --device setup but with this it seems to work out of the box!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.