![]() |
ProPainter Vapoursynth filter - Printable Version +- Selur's Little Message Board (https://forum.selur.net) +-- Forum: Talk, Talk, Talk (https://forum.selur.net/forum-5.html) +--- Forum: Small Talk (https://forum.selur.net/forum-7.html) +--- Thread: ProPainter Vapoursynth filter (/thread-3720.html) |
RE: ProPainter Vapoursynth filter - jamesharding26 - 25.10.2024 I realise now that you have it actively working in Hybrid, is there any chance I could have access to a dev where it's operating? I tried the latest dev in your experimental folder but cannot find propainter in the 'other' tab. Sorry if I've missed something obvious. RE: ProPainter Vapoursynth filter - Selur - 25.10.2024 You, just need the normal version with the torch-addon. (linked on the download page) Cu Selur RE: ProPainter Vapoursynth filter - Dan64 - 28.10.2024 (25.10.2024, 11:38)jamesharding26 Wrote: Hi all, This was a change applied by Selur in this post: #22 I think that Selur can suggest a fix for this issue. Dan RE: ProPainter Vapoursynth filter - Selur - 28.10.2024 Ahh,... that was needed since the way pytorch changed how the version was encoded. This should work with new pytorch versions 2.6.* for older version your probably need to change the code, see: https://github.com/sczhou/CodeFormer/pull/281/commits/0b196490e6a701a08fb53c48fbe3d02bb40536dc Cu Selur RE: ProPainter Vapoursynth filter - Dan64 - 29.10.2024 If you are using Windows, it is safe to edit the file: "C:\Users\James\AppData\Local\Programs\Python\Python312\Lib\site-packages\vspropainter\model\misc.py", line 57 and set IS_HIGH_VERSION = False When IS_HIGH_VERSION is True the filter check if is available the mps backend, but this backend is useful only on MacOS, so if you are using Windows you can skip this check. Dan RE: ProPainter Vapoursynth filter - Dan64 - 29.10.2024 Released a new version that should fix this issue: https://github.com/dan64/vs-propainter/releases/tag/v1.12.1 Dan RE: ProPainter Vapoursynth filter - Selur - 20.07.2025 @Dan64: I'm trying to remove the logo mentioned here of this clip. I created a video mask Code I used to create the logo: clip = clip.resize.Bicubic(format=vs.RGBS) Problem is when using: # Inpainting using ProPainter ![]() the mask clip properly covers the logo: ![]() If I reduce the length to 20, logo is gone until 160,... I first thought this could this be a bug in the length&co parameter handling, for the edge case where the end of the clip is approached, in the wrapper. To test my theory, I added clip + core.std.Reverse(clip).std.Trim(1), created a new mask clip and used that to look at frame 149+. That didn't help, it even seemed to make it worse. Then I thought maybe the scene threshold was the issue, so I set that to 0, but that also didn't help. Last thing I tried was disabling the mask region, but that also didn't really help either. Do you think this is a problem of: a. finding the right parameters b. a bug in the wrapper c. ProPainter just strangely failing ? Cu Selur RE: ProPainter Vapoursynth filter - Dan64 - 20.07.2025 Hello Selur, theoretically clip mask should work (see attached sample), but I never used it on long clips. It seems that ProPainter is not able to manage properly the clip mask when it becomes almost static. You can try to split the movie in 2 parts, the moving part (till frame 99) and the static part (from 100 till 202). It could be also possible that ProPainter is not able to properly manage moving masks when are not available enough frames to perform the inference. In effect in the attached sample the player is simply going from right to left and then form left to right and in this case the inference is very simple. Dan RE: ProPainter Vapoursynth filter - Dan64 - 20.07.2025 It seems that the problem is on the clip mask. If you extract the frame 165 from the mask and copy it as transparent selection over the frame 165 rendered by ProPainter. You obtain the following frame. As you can see the letter I of the mask is over the letter F the rendered image. Try to check the coordinates they are different. For the tests is better to don't use the crop region and use the full frame, but with half size, something like this clipMask = clipMask.resize.Spline36(width=640, height=360) Dan RE: ProPainter Vapoursynth filter - Selur - 21.07.2025 That makes sense, I did not take the future masking into account => so I will have to look into a better method to create the masking clip. Thanks! Cu Selur |