I made a patch to reduce artefatcs #274
Replies: 8 comments 22 replies
-
This is for "forward fill" only, right? |
Beta Was this translation helpful? Give feedback.
-
Yes, but row flow is supposed to be a model based on forward fill data, right? So the results are similar. I assume that this could be used to improve the training data to make row flow usable with higher values in the future. |
Beta Was this translation helpful? Give feedback.
-
I tested it with an intensity of 10, and the stereoscopic effect was greatly enhanced—it’s truly amazing! |
Beta Was this translation helpful? Give feedback.
-
Thank you. I assume that this patch fixes for this comment. Line 19 in 3397eab This type of artifact is a rare case when tested on images, but can occur frequently on video because of the large number of frames in the video.
I think backward warp( Here is illustration of iw3's image warp methods in my understanding
If 3D strength=10 is really needed, I will train a row_flow model for 3D strength=5-10 next time and switch the model to be used according to the setting. |
Beta Was this translation helpful? Give feedback.
-
train a row_flow model for 3D strength=5-10 next time ,please! |
Beta Was this translation helpful? Give feedback.
-
@math-artist You can try using the dev branch or overwriting the following file to |
Beta Was this translation helpful? Give feedback.
-
you will all was get artifacts in the background of your 3D The high you set your 3D strength because a depth map is one image movie studios create two images a foreground plate and a background plate which the 3d depth models can not do so with two plates you don't have a issue artifacts in the background you have separate the foreground and background so for me l set my 3d strength at 1.5 and l get a good depth 3d full tb and l input at 1080p and output at 4k l don't use forward_fill it is not as good as row_flow_v3_sym which l find better and to the person who what's you to include 3d 6-10 strength must understand the your program as limitation to it |
Beta Was this translation helpful? Give feedback.
-
I'm trying to understand this stuff. So what's the difference between @nagadomi's code and @math-artist's code? These are related to using... Method? (which one?) These sound like they are for helping reduce artifacts but for which conditions? |
Beta Was this translation helpful? Give feedback.
-
The title says it all. I wanted to increase the forward fill function with a 3D strength up to 10, because when placing the screen closer to our face, the perceived depth decrease. So, this is an attempt to get good depth at close range.
To do that, I patched the results of ordered_index_copy. The problem is that when the divergence is high, pixels can move and expand so much that they can skip a pixel indice. If that pixel is painted by an object under, it's not managed by the inpainting function.
The patch finds those isolated pixels with an arbitrary value:
gap = int(order_max * 0.1)
and fill them with the neighbours of higher order.I haven't really tested the performance impact but it works great on my side.
Also, the problem with the algo is that each source pixel is associated to only one destination pixel. If there was a way to conceptualize a different approach where one pixel could have more than one destination, we would not have those artefacts.
Because the patch only looks for isolated pixels, this prevent artefatcs for about 2X the divergence, but values higher than 10 will generate artefatcs.
Beta Was this translation helpful? Give feedback.
All reactions