Open turkeyphant opened 4 years ago
Changing longer_side_len
in argument.xml
should do the trick.
See https://github.com/vt-vl-lab/3d-photo-inpainting/blob/master/DOCUMENTATION.md for details.
You may also want to look at this: https://github.com/vt-vl-lab/3d-photo-inpainting/issues/40#issuecomment-639470366
Without it you may get soft results. I ended up doing it like this (main.py
):
image_width = image.shape[1]
target_w = min(image_width, config["longer_side_len"])
run_depth(
[sample["ref_img_fi"]],
config["src_folder"],
config["depth_folder"],
config["MiDaS_model_ckpt"],
MonoDepthNet,
MiDaS_utils,
target_w=target_w,
)
Is there any way to configure the output to produce video files of arbitrary size? Or to match the input image?