QualityScaler icon indicating copy to clipboard operation
QualityScaler copied to clipboard

Linux Support

Open Joly0 opened this issue 3 years ago • 12 comments
trafficstars

Hey, this project looks interesting and works good on windows, though it would be great, if this could be used on linux aswell. A great usecase for this would be inside a docker container which one can access through vnc or similar. This could aswell be run on a small Linux server ( with a nvidia gpu for cuda), rather than the main machine, without consuming storage and cpu/gpu resources, leaving the main system free for different work (as the process can take quite long for larger files)

Joly0 avatar Jun 01 '22 20:06 Joly0

Hi, thank you :D

Yes, the project can evolve in many ways, i choosed Windows just because with Pytorch-directml in version 2.0.0 just released it is now compatible with all Gpus :)

Djdefrag avatar Jun 03 '22 08:06 Djdefrag

Thanks for your reply, but isnt it possible to adjust it, so it could work in linux? Linux (and even docker containers) can use gpu´s and pytorch-directml is, as far as i can see, is available for linux aswell

Joly0 avatar Jun 03 '22 09:06 Joly0

Btw, a simple py script that could use some arguments, without the gui, would be suitible for use in linux, so in my opinion, there is no need for a gui in linux, which maybe might make it simpler?

Joly0 avatar Jun 03 '22 09:06 Joly0

yes, of course :D

Djdefrag avatar Jun 03 '22 09:06 Djdefrag

image @Joly0 GUI works on Linux with minor changes to code. It's likely Pytorch-directml should be replaced by torch on Linux. There are also some windll dependencies that are a problem. Upscaling itself fails for me though.

faveoled avatar Jun 04 '22 15:06 faveoled

Wow! Thank you @faveoled! Can you share some info how did you do it? Wine maibe? :D

In version 1.5 i was using Pytorch + cuda, so something can be found there; in fact it only needs to change the code from ".to("dml")" in ".to("cuda")"

Djdefrag avatar Jun 04 '22 16:06 Djdefrag

@Djdefrag No wine. Tkinter is cross platform, no issue here. Just installed necessary packages and commented out windll calls.

faveoled avatar Jun 04 '22 16:06 faveoled

Perfect, maybe i can integrate a if statement for windll calls only if os is Windows, thank you :D

Djdefrag avatar Jun 04 '22 16:06 Djdefrag

Anything new about this?

Joly0 avatar Jul 14 '22 19:07 Joly0

I'm interested in this as well! I tried running on linux with wine, but it doesn't work at all. I would really like to use this app and can't right now!

l3td33r avatar Jul 31 '22 02:07 l3td33r

@Djdefrag Any progress on this one? It would be super usefull, if this could be run on linux

Joly0 avatar Aug 17 '22 21:08 Joly0

HI @Joly0, no news about this sorry. I recently changed jobs and can't devote much time to these side projects.

To make it work there are two things to do on linux:

  1. Change from pytorch-directml to pytorch (will work only on nvidia cards and cpu)
  2. Change input filepaths, for example change the "/" in the paths with os.sep()

I think that all need to make it run on linux. I m really sorry i can't work to the project

Djdefrag avatar Aug 18 '22 07:08 Djdefrag

Hey, did anything change regarding linux support? I would really appreciate to have this to work in linux

Joly0 avatar Oct 25 '22 17:10 Joly0

Samee

l3td33r avatar Oct 25 '22 17:10 l3td33r

I've found a similar project called Upscayl: https://github.com/upscayl/upscayl Works for me on Linux.

faveoled avatar Oct 25 '22 17:10 faveoled

Hi :D,

sadly no news about linux version. The pytorch library used is specifically for Windows to be able to use AI on any gpus :(

Djdefrag avatar Oct 25 '22 18:10 Djdefrag

@Djdefrag any news about Linux support?

ProgrammingLife avatar Dec 07 '22 16:12 ProgrammingLife

I've found a similar project called Upscayl: https://github.com/upscayl/upscayl Works for me on Linux.

I tinkered quite alot with it for docker, but i didnt get it to work, so it isnt really a proper alterantive

Joly0 avatar Dec 19 '22 14:12 Joly0

Alongside Linux support, at least some CLI support for macOS would be welcome, as well, especially with the newer m-series chips being leveraged effectively for AI processing. There may be some success attempting to push the program as a .exe through WINE but it would be nice to avoid any potential failure points or inefficiencies resulting from that.

ChristianMGr93 avatar Dec 28 '22 20:12 ChristianMGr93

Hi @ChristianMGr93,

pytorch-directml, the library used to execute the AI is only compatible with Windows because it uses Directx12 API.

This means that a macOS port is not possible, but I'm working for a Linux port via some sort of translation from Directx12 to Vulkan but with no success at the moment :(

Djdefrag avatar Jan 01 '23 08:01 Djdefrag