![]() |
Improving CodeFormer videos - Printable Version +- Selur's Little Message Board (https://forum.selur.net) +-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html) +--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html) +--- Thread: Improving CodeFormer videos (/thread-3574.html) |
RE: Improving CodeFormer videos - Dan64 - 16.02.2024 The new dev version is working now. But I'm unable to use FeMaSR tensor-RT with CodeFormer. If I use them separately (in different scripts) they are working, but together no. Did you changed CUDA library recently ? RE: Improving CodeFormer videos - Selur - 16.02.2024 Not really, fi you lookt at Hybrid\64bit\Vapoursynth\torch_dependencies\bin you can see that those libraries are all rather old. No clue where the problem is, might be some issue with FP16,.. will to some testing. Or some incompatibility between CodeFormer and TRT,... as you can seee there also have been isues with FeMaSR and TRT,... https://github.com/HolyWu/vs-femasr/issues => I'll remove the trt options,.. Cu Selur RE: Improving CodeFormer videos - Dan64 - 18.02.2024 (13.02.2024, 22:31)Selur Wrote:Quote: It is theoretically possible to extend "VsViewer" so that can be launched using the command line like "VSpipe" ?if your rewrite most of it,... yes Hello Selur, I applied some changes to vsViewer released in your github repo: https://github.com/Selur/vsViewer/tree/master The usage is the following vsViewer --nogui [optional] --y4m [optional] --i [python script] --enc [encoder path] --cmd [encode command] I like the Gui enabled version please try it, in case of no-Gui I was unable to write any message on Console (I have only a limited knowledge of Qt). I attached an archive with only the changed files and with a build in debug mode of vsViewer. I tried to don't apply too many changes, more important this version is compatible with the version release with Hybrid. I hope that this modded version can be useful (you can abandon "vspipe" and all the encoding will be under your control) ![]() Dan RE: Improving CodeFormer videos - Selur - 18.02.2024 Likes I wrote before I don't really see any meaningful benefit from using vsViewer instead of vspipe. vsViewer was a mod of https://github.com/YomikoR/VapourSynth-Editor which mainly added IPC functionality. I later modified the source to be Qt6 compatible. That vsViewer even can encode stuff is a remnant from the original. Looking at your changes: bool initialized = m_pJob->initialize(); ![]() is something missing? Cu Selur RE: Improving CodeFormer videos - Dan64 - 18.02.2024 m_pJob->initialize() is necessary to initialize the job. I should check the return and eventually manage the exception. But this part has not been implemented. Aldo I don't found a way to write to console when no-Gui mode. ![]() RE: Improving CodeFormer videos - Selur - 18.02.2024 There isn't a (good) way unless your program is compiled for command line only or it does open a terminal (on Linux&Co this is Windows is not shown, on Windows it is). (add "CONFIG += console" to the .pro file) Usually this isn't really a problem, since writing to std::out from a gui, doesn't make much sense. One point of having a gui is not to have to deal with std::out. ![]() Cu Selur RE: Improving CodeFormer videos - Dan64 - 18.02.2024 I think that the best use is with the IPC comunication already implanted in Hybrid (*). In this way you can capture all the messages and monitor the progress with more precision. Regarding "vspipe" there are several post in the forum regarding the fact that a given script works in "vsViewer" but fails in the encoder. Dan (*) If necessary I can apply the extension to the code for you. RE: Improving CodeFormer videos - Selur - 18.02.2024 Quote:Regarding "vspipe" there are several post in the forum regarding the fact that a given script works in "vsViewer" but fails in the encoder.That usually happens if: a. the script in vsViewer is different b. if using an encoder eats more system resouces and causes the system to crash c. some anti virus software interferes with the pipe (same would happen with vsviewer) d. user changed components that write to std::out. usually if preview work encoding works too unless I messed somewhere up. ![]() Cu Selur RE: Improving CodeFormer videos - Dan64 - 25.02.2024 (16.02.2024, 21:42)Selur Wrote: Not really, fi you lookt at Hybrid\64bit\Vapoursynth\torch_dependencies\bin you can see that those libraries are all rather old. Hello Selur, I installed the last version 2024.02.24.1, but the FeMaSR is not working on my PC. I got the error message: Python exception: "slow_conv2d_cpu" not implemented for 'Half' I performed some tests and I think that should be better add support to RealESRGAN 2Xplus/4Xplus and realesr-general You can find a comparison here: https://imgsli.com/MjQyNDU0 To simplify the list, tensor-rt could be added as an option. Dan P.S. I attached the log RE: Improving CodeFormer videos - Selur - 25.02.2024 File "E:\VideoTest\Deoldify\tempPreviewVapoursynthFile17_09_44_253.vpy", line 54, in My guess it that your are running out of VRAM while throwing feeding ddcolor with 2400x1632 content. Otherwis the script: # Imports CodeFormer+FeMaSR + ddcolor works here, untill I use a too high resolution. I leave the options as they are for the time being, since as it is now it works and lowering the ComboBox option count and at the same time having to add an additional CheckBox and model entry doesn't really simplify things. Cu Selur |