object-detection.torch icon indicating copy to clipboard operation
object-detection.torch copied to clipboard

cannot install objectdete.rockspec

Open kirk86 opened this issue 8 years ago • 1 comments

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

kirk86 avatar Nov 28 '16 20:11 kirk86

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.

fmassa avatar Nov 29 '16 22:11 fmassa