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

cannot install objectdete.rockspec #22

Open
kirk86 opened this issue Nov 28, 2016 · 1 comment
Open

cannot install objectdete.rockspec #22

kirk86 opened this issue Nov 28, 2016 · 1 comment

Comments

@kirk86
Copy link

kirk86 commented Nov 28, 2016

Hi I just downloaded the refactoring2 branch and tried to install objdet-scm-1.rockspec

luarocks install objdet-scm-1.rockspec 
Using objdet-scm-1.rockspec... switching to 'build' mode
Cloning into 'object-detection.torch'...
remote: Counting objects: 21, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 21 (delta 0), reused 9 (delta 0), pack-reused 0
Unpacking objects: 100% (21/21), done.
Checking connectivity... done.
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/jmitro/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/user/torch/install/lib/luarocks/rocks/objdet/scm-1"; 
make
   
CMake Error: The source directory "/tmp/luarocks_objdet-scm-1-390/object-detection.torch" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found.  Stop.

Error: Build error: Failed building.

Also the refactoring2 does not include the nnf.lua

@fmassa
Copy link
Owner

fmassa commented Nov 29, 2016

Hi,

If you are trying to install from a downloaded repo, you need to do instead

luarocks make rocks/*

from the downloaded repo.
Last time I remember it was working fine, but I might have missed something.
There is no more need of the nnf.lua file. I changed it to behave as a normal package, everything should go to init.lua.
You need to require the package with a different interface though

local objdet = require 'objdet'
local frcnn = objdet.FRCNN{...}

Let me know if you have problems.

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

No branches or pull requests

2 participants