Csound Csound-dev Csound-tekno Search About

lua integration with torch

Date2016-12-28 22:42
FromMatti Koskinen
Subjectlua integration with torch
hi,

this question is more to Mike (and others,too). Have you tried integration of lua opcodes and torch. I’m workin in a project, that uses torch for image classification, and building csound yesterday, luajit is found from the torch installatioh. As my own, don’t know nowt what kind of project, it’s in theory possible to use torch for AI. Might give some interesting sound/melody combinations. neural audio-style-transform could possibly be hacked to run the lua opcodes for the beginning.

tnx

-m

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-28 22:55
FromMichael Gogins
SubjectRe: lua integration with torch
What is torch and why are you using it?

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Dec 28, 2016 at 5:42 PM, Matti Koskinen  wrote:
> hi,
>
> this question is more to Mike (and others,too). Have you tried integration of lua opcodes and torch. I’m workin in a project, that uses torch for image classification, and building csound yesterday, luajit is found from the torch installatioh. As my own, don’t know nowt what kind of project, it’s in theory possible to use torch for AI. Might give some interesting sound/melody combinations. neural audio-style-transform could possibly be hacked to run the lua opcodes for the beginning.
>
> tnx
>
> -m
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-28 23:05
FromMichael Gogins
SubjectRe: lua integration with torch
OK, I think I see what it is: http://torch.ch/. Machine learning for
LuaJIT. Very interesting.

I think once Torch is installed, since it is for LuaJIT, you can use
it with the Csound Lua opcodes which include built in LuaJIT. You also
can just use Csound and Torch in your own Lua programs that you run
using LuaJIT, either the one from luajit.org, or the one in the Csound
Windows installer, or the one that comes with Torch, which one should
not matter -- as long, of course, as LuaJIT uses the same CPU
architecture as Csound, now 64 bits by default.

Thanks for the information,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Dec 28, 2016 at 5:55 PM, Michael Gogins
 wrote:
> What is torch and why are you using it?
>
> Regards,
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Dec 28, 2016 at 5:42 PM, Matti Koskinen  wrote:
>> hi,
>>
>> this question is more to Mike (and others,too). Have you tried integration of lua opcodes and torch. I’m workin in a project, that uses torch for image classification, and building csound yesterday, luajit is found from the torch installatioh. As my own, don’t know nowt what kind of project, it’s in theory possible to use torch for AI. Might give some interesting sound/melody combinations. neural audio-style-transform could possibly be hacked to run the lua opcodes for the beginning.
>>
>> tnx
>>
>> -m
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-28 23:09
FromMatti Koskinen
SubjectRe: lua integration with torch
> On 29 Dec 2016, at 00:55, Michael Gogins  wrote:
> 
> What is torch and why are you using it?
> 
> Regards,
> Mike
> 
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
> 

torch is written in lua and it’s used mainly for neural networks. It’s on github (OSS), and e.g. Facebook and Twitter use it to don’t now what purposes, but recently read news, that FB is developing with torch filters to block inappropriate content. Torch uses heavily cuda to speed up the calculations, training the network and then prediction.

-m

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-28 23:10
FromMatti Koskinen
SubjectRe: lua integration with torch
> On 29 Dec 2016, at 01:05, Michael Gogins  wrote:
> 
> OK, I think I see what it is: http://torch.ch/. Machine learning for
> LuaJIT. Very interesting.
> 
> I think once Torch is installed, since it is for LuaJIT, you can use
> it with the Csound Lua opcodes which include built in LuaJIT. You also
> can just use Csound and Torch in your own Lua programs that you run
> using LuaJIT, either the one from luajit.org, or the one in the Csound
> Windows installer, or the one that comes with Torch, which one should
> not matter -- as long, of course, as LuaJIT uses the same CPU
> architecture as Csound, now 64 bits by default.
> 
> Thanks for the information,
> Mike
> 
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com

you found it while I was writing :-)

-m

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here