how add more trajetory to continuation for make unique animation in this same code:…
- User
how add more trajetory to continuation for make unique animation in this same code: depth_feat_model_ckpt: checkpoints/depth-model.pth rgb_feat_model_ckpt: checkpoints/color-model.pth MiDaS_model_ckpt: MiDaS/model.pt use_boostmonodepth: True fps: 40 num_frames: 160 x_shift_range: [0.00, 0.00, -0.03, -0.04, 0.05] y_shift_range: [0.00, 0.00, -0.03, -0.00, 0.03] z_shift_range: [-0.03, -0.03, -0.03, -0.03, 0,05] traj_types: ['double-straight-line', 'double-straight-line', 'circle', 'circle'] video_postfix: ['dolly-zoom-in', 'zoom-in', 'circle', 'swing'] specific: '' longer_side_len: 960 src_folder: image depth_folder: depth mesh_folder: mesh video_folder: video load_ply: False save_ply: True inference_video: True gpu_ids: 0 offscreen_rendering: True img_format: '.jpg' depth_format: '.npy' require_midas: True depth_threshold: 0.04 ext_edge_threshold: 0.002 sparse_iter: 5 filter_size: [7, 7, 5, 5, 5] sigma_s: 4.0 sigma_r: 0.5 redundant_number: 12 background_thickness: 70 context_thickness: 140 background_thickness_2: 70 context_thickness_2: 70 discount_factor: 1.00 log_depth: True largest_size: 512 depth_edge_dilate: 10 depth_edge_dilate_2: 5 extrapolate_border: True extrapolation_thickness: 60 repeat_inpaint_edge: True crop_border: [0.03, 0.03, 0.05, 0.03] anti_flickering: True
- Assistant
- User
Traceback (most recent call last): File "/content/3d-photo-inpainting/main.py", line 35, in sample_list = get_MiDaS_samples(config['src_folder'], config['depth_folder'], config, config['specific']) File "/content/3d-photo-inpainting/utils.py", line 842, in get_MiDaS_samples assert len(config['traj_types']) == len(config['x_shift_range']) ==
AssertionError: The number of elements in 'traj_types', 'x_shift_range', 'y_shift_range', 'z_shift_range' and 'video_postfix' should be equal. - Assistant
- User
Traceback (most recent call last): File "/content/3d-photo-inpainting/main.py", line 35, in sample_list = get_MiDaS_samples(config['src_folder'], config['depth_folder'], config, config['specific']) File "/content/3d-photo-inpainting/utils.py", line 850, in get_MiDaS_samples sx, sy, sz = path_planning(config['num_frames'], config['x_shift_range'][traj_idx], config['y_shift_range'][traj_idx], File "/content/3d-photo-inpainting/utils.py", line 52, in path_planning return xs, ys, zs UnboundLocalError: local variable 'xs' referenced before assignment
- Assistant