You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very great work! But when I want to change the setting in get_camera_parameters, I found some problems.
I have defined a new function to obtain K basic on focal to replace get_camera_focal_parameters( ) :
`
def get_camera_focal_parameters(img_size, focal, p_x=None, p_y=None, device=torch.device('cuda')):
K = torch.eye(3)
# Get focal length.
K[0,0], K[1,1] = focal, focal
# Set principal point
if p_x is not None and p_y is not None:
K[0,-1], K[1,-1] = p_x * img_size, p_y * img_size
else:
K[0,-1], K[1,-1] = img_size//2, img_size//2
# Add batch dimension
K = K.unsqueeze(0).to(device)
return K
`
I use focal = 5000. But I got a small body result like this:
Could you tell me how to solve it? Maybe elsewhere needs to be modified?
The text was updated successfully, but these errors were encountered:
Hi, thanks your interest in our work.
Do you know what is the field-of-view that you are using here for example?
We trained our model with field-of-view in the range 50:70 degrees so if you give higher of smaller field-of-view the reconstruction will need improvement. I recommend to use a field of view close to 60 degree for good reconstruction.
Very great work! But when I want to change the setting in get_camera_parameters, I found some problems.
I have defined a new function to obtain K basic on focal to replace get_camera_focal_parameters( ) :
`
def get_camera_focal_parameters(img_size, focal, p_x=None, p_y=None, device=torch.device('cuda')):
K = torch.eye(3)
# Get focal length.
K[0,0], K[1,1] = focal, focal
`
![image](https://private-user-images.githubusercontent.com/117157532/350881122-7a3142ee-82a6-45e3-84cd-d9623176b25d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNDQzMzksIm5iZiI6MTcyNjA0NDAzOSwicGF0aCI6Ii8xMTcxNTc1MzIvMzUwODgxMTIyLTdhMzE0MmVlLTgyYTYtNDVlMy04NGNkLWQ5NjIzMTc2YjI1ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQwODQwMzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00Zjk4YTllMTMyNTMyZjFkYjZiZGFjY2QyODgzMTI4ZThiNzM1MDk0ZTFiMjA3ZWZmZTgwNDVjYTViNjVmM2Q0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.PgTwnmKFLDaDlZsDWiEhi56uD9fFYzmrcA90tAP6_vU)
I use focal = 5000. But I got a small body result like this:
Could you tell me how to solve it? Maybe elsewhere needs to be modified?
The text was updated successfully, but these errors were encountered: