Giter VIP home page Giter VIP logo

Comments (21)

Schrodinger1926 avatar Schrodinger1926 commented on June 26, 2024 8

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.

russellfei avatar russellfei commented on June 26, 2024 4

Tested.
itorch use itorch.image(image.lena()) to display images.

from distro.

eriche2016 avatar eriche2016 commented on June 26, 2024 2

qlua is the solution indeed

from distro.

soumith avatar soumith commented on June 26, 2024 1

@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.

christopher5106 avatar christopher5106 commented on June 26, 2024 1

Thanks @russellfei

from distro.

culurciello avatar culurciello commented on June 26, 2024

;-)

from distro.

alexbw avatar alexbw commented on June 26, 2024

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.

russellfei avatar russellfei commented on June 26, 2024

@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.

russellfei avatar russellfei commented on June 26, 2024

@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.

psabouri avatar psabouri commented on June 26, 2024

@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.

russellfei avatar russellfei commented on June 26, 2024

@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.

jiangfeng15 avatar jiangfeng15 commented on June 26, 2024

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.

russellfei avatar russellfei commented on June 26, 2024

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.

Schrodinger1926 avatar Schrodinger1926 commented on June 26, 2024

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.

russellfei avatar russellfei commented on June 26, 2024

@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.

Schrodinger1926 avatar Schrodinger1926 commented on June 26, 2024

peace

from distro.

vrama91 avatar vrama91 commented on June 26, 2024

@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.

soumith avatar soumith commented on June 26, 2024

@ramakrishnavedantam928 read the itorch documentation. I dont see why you expect image.display to work in itorch?

from distro.

svkerr avatar svkerr commented on June 26, 2024

@Mindboggler Thanks - but how do i use qlua from within a torch script (filename.lua) that calls:
image.display(some_image)?

from distro.

svkerr avatar svkerr commented on June 26, 2024

Thanks @Mindboggler.

from distro.

yiran-THU avatar yiran-THU commented on June 26, 2024

Thanks @eriche2016

from distro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.