mirror of
https://github.com/gosticks/body-pose-animation.git
synced 2025-10-16 11:45:42 +00:00
remove prints
This commit is contained in:
parent
3b6317e012
commit
787fd9e763
@ -9,7 +9,7 @@ from renderer import *
|
||||
from utils.general import rename_files, get_new_filename
|
||||
|
||||
START_IDX = 1 # starting index of the frame to optimize for
|
||||
FINISH_IDX = 10 # choose a big number to optimize for all frames in samples directory
|
||||
FINISH_IDX = None # choose a big number to optimize for all frames in samples directory
|
||||
|
||||
result_image = []
|
||||
idx = START_IDX
|
||||
|
||||
@ -102,13 +102,11 @@ def save_to_video(
|
||||
# account for possible interpolation
|
||||
frame_idx = int(idx / inter_ratio)
|
||||
overlay = cv2.imread(dataset.get_image_path(frame_idx))
|
||||
print("shape 1:", overlay.shape)
|
||||
overlay = cv2.resize(
|
||||
overlay,
|
||||
dsize=(
|
||||
int(overlay.shape[1] * 0.25), int(overlay.shape[0] * 0.25)
|
||||
))
|
||||
print("shape 2:", overlay.shape)
|
||||
img[0:overlay.shape[0], 0:overlay.shape[1]] = overlay
|
||||
return img
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user