-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to test the model on my own photo? #3
Comments
I have same question. And I used 3D_Photography(3d-photo-inpainting in git) to generate a file in mat format containing color and depth information. But the final video is severely distorted. I don't know how I understand the params in mat file, such as w/h/full_w/full_h. |
Thanks for your interest. Here is what the parameters mean in our provided mat files:
Suppose your input image is 640x480, and extrapolation_thickness in argument.yml is set to 40, then h=480, w=640, full_h=480+40x2=560, full_w=640+40x2=720. Regarding the LDI, the pixels at the top-left and bottom-right corners will have uv=(-40, -40) and (519, 679), respectively. FOV can be an educated guess or estimated using LeReS as we did in our paper. Hope this helps. |
Why does LDI make UV move to negaticve coordinative like(-60, 60).
…------------------ 原始邮件 ------------------
发件人: "fmu2/3d_photo_stylization" ***@***.***>;
发送时间: 2022年7月19日(星期二) 晚上8:08
***@***.***>;
***@***.******@***.***>;
主题: Re: [fmu2/3d_photo_stylization] How to test the model on my own photo? (Issue #3)
Thanks for your interest. Here is what the parameters mean in our provided mat files:
uv: pixel coordinates
z: per-pixel depth values from 3dphoto
rgb: per-pixel color values
h, w: size of input image to 3dphoto
full_h, full_w: size of 3dphoto output after extrapolation (i.e., out-painting).
fov: camera field of view in degrees. Default: 60
Suppose your input image is 640x480, and extrapolation_thickness in argument.yml is set to 40, then h=480, w=640, full_h=480+40x2=560, full_w=640+40x2=720. Regarding the LDI, the pixels at the top-left and bottom-right corners will have uv=(-40, -40) and (519, 679), respectively. FOV can be an educated guess or estimated using LeReS as we did in our paper. Hope this helps.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
The image center remains unchanged. We simply extend pixels beyond the borders to account for extrapolation. You can think of it as padding the input image with extrapolated pixels. |
Thanks a lot for your reply. It's helpful. But the final video didn't achieve the best effect. I think I have missed some content. In 3DP, I can get the color and position of points after inpainting. And I put them as "uvz" and "rgb". But there are extra parameters named "faces". I don't know how to use the "faces". Are they necessary? |
Can you post the command you used to generate the file in mat format? It seems it can only do npy and png formats. |
May I ask how to obtain the mat file? |
No description provided.
The text was updated successfully, but these errors were encountered: