th command not found in google colab

578 views
Skip to first unread message

Binathi Bingi

unread,
May 12, 2019, 12:04:00 PM5/12/19
to torch7
I am trying to run this code from github on google colab.
To execute the code, i have to run the command "th preprocess.lua -config config-preprocess". Whenever I use this command on colab it says, 

th preprocess.lua -config config-preprocess ^ SyntaxError: invalid syntax

I tried installing Lua 5.2 on colab using the instructions in the link http://torch.ch/docs/getting-started.html .I ran the following commands
!git clone https://github.com/torch/distro.git ~/torch --recursive 
cd ~/torch
!./clean.sh
!TORCH_LUA_VERSION=LUA52 ./install.sh
!luarocks install image
When I run the command !luarocks install image. It gives the error
/bin/bash: luarocks: command not found
Reply all
Reply to author
Forward
0 new messages