Skip to content

Commit

Permalink
Upload by id
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot authored Oct 19, 2023
1 parent 23e9d19 commit a2fb608
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def change_framerate(api: sly.Api, target_fps, result_project_name):

if fps_info.fps_equals(target_fps):
sly.logger.debug(f'Preserving existing frame rate for video {video_info.name!r}')
api.video.upload_hash(res_dataset.id, video_info.name, video_info.hash)
api.video.upload_id(res_dataset.id, video_info.name, video_info.id)
# api.video.upload_hash(res_dataset.id, video_info.name, video_info.hash)
else:
curr_dirs = [os.path.join(d, dataset.name) for d in (src_dir, res_dir)]
for d in curr_dirs:
Expand Down

0 comments on commit a2fb608

Please sign in to comment.