Comments (21)
If you want image.display to work in torch, you simply don't use $th filename.lua
. You execute $qlua filename.lua
. filename.lua
will still be a torch script.
from distro.
Tested.
itorch
use itorch.image(image.lena())
to display images.
from distro.
qlua is the solution indeed
from distro.
@russellfei Qt interface only works in qlua! this is not at all an issue.
We have nothing in the works for Qt5. Lots of time and effort have to be invested, for something that might not be much of an addition.
from distro.
Thanks @russellfei
from distro.
;-)
from distro.
The above steps, with small differences, works for me using your steps in qlua
.
The differences are, I install dependencies before installing torch, and I use torch/distro
(this repo) and not soumith/torch-distro
. There aren't any changes between them that should affect this, though.
from distro.
@alexbw but the soumith/torch-distro
is directed to torch/distro
(soumith authored that before torch/distro
is released, so I kept typing that url to find it ;-)
qlua
and macqlua
works fine for me.
However, the other tools don't, that's quite strange.
from distro.
@soumith Well, in culuricello's video, there's some interface like torch qtconsole
, but I didn't find identical one.
Question
according to what you said, how iTorch
and th
using image.display
function?
Dependening on gfx.js
?
So the image.display
is overrided in different binary tools, isn't it?
from distro.
@russellfei I have same problem and I am unable to solve it. how did you overcome this problem? did you install another package to run itorch?
from distro.
@psabouri sorry for late reply.
If you checked my note above, you should keep in mind that iTorch
is based on both torch
and ipython
(actually penlight
package should also be included, but it's installed by default).
You need to have ipython
toolset installed first, and torch
(Be patient to add your torch path to environment variables -- it is essential to make torch
work)
If you still have any questions about torch
, just reply here, ;-)
from distro.
when I use (require 'qt'),it remind me that module 'qt' not found, but how to install qt, my system is ubuntu 14
from distro.
try qlua
if you followed scripts on torch/ezinstall (the easiest way to deploy torch ecosystem).
Otherwise, search ask ubuntu
for how to install qt 4, there are plenty of helpful web pages.
from distro.
I got that solution is to use qlua to execute my file but why doesn't qt work with 'th' interpreter ?? How do i display images with th interpreter??
from distro.
@Mindboggler
If you want to display images with th
, you should use other display utilities such as gfx.go
Or, you can use qlua
.
th
is just a cmd utility without display function.
from distro.
peace
from distro.
@russellfei I have the same problem. I am using I Torch notebook, and trying out image.display(image.lena())
I get an error which says that "module 'qt' not found”. I verified that my itorch was using luajit and not the qt console. Is something wrong with my itorch setup? I am using anaconda python.
from distro.
@ramakrishnavedantam928 read the itorch documentation. I dont see why you expect image.display to work in itorch?
from distro.
@Mindboggler Thanks - but how do i use qlua from within a torch script (filename.lua) that calls:
image.display(some_image)?
from distro.
Thanks @Mindboggler.
from distro.
Thanks @eriche2016
from distro.
Related Issues (20)
- macOS - Lua2.1 - File not found lua-cjson-2.1devel-1.rockspec HOT 2
- Error occur when execute install.bat
- error installing torch 7 on fedora 29
- OpenSuSE install-deps outdated
- Error: File not found: lua-cjson-2.1devel-1.rockspec HOT 3
- Install script causes `$LD_LIBRARY_PATH` to include `cwd`. HOT 1
- Update wineditline version
- Install on debian 10 HOT 1
- cublas runtime error : the GPU program failed to execute at /root/torch/extra/cutorch/lib/THC/THCBlas.cu:246
- Segmentation Fault while loading torch HOT 1
- invalid option: --with-wxmac when installing bash install-deps HOT 4
- install.bat freezes on Windows 10 HOT 4
- ./install.sh -> Configuring incomplete, errors occurred! HOT 2
- No results matching query were found. HOT 1
- Ubuntu 20.04 HOT 6
- bash insatll-deps does not work on ubuntu. bash: install-deps: No such file or directoryu
- pip install pytorch HOT 1
- CUDA_cublas_device_LIBRARY (ADVANCED)
- Installing torch on Ubuntu 20.04?
- ./install.sh fails in Mac OS Monterey 12.5 ( M1 Pro ) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distro.