Skip to content

Commit

Permalink
Merge pull request #41 from MasoudKaviani/patch-1
Browse files Browse the repository at this point in the history
np.int has deprecated and caused error
  • Loading branch information
shepnerd committed Jul 23, 2023
2 parents 4f7ae6c + 8f0c8f3 commit de1e082
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def load_video(path):
video_reader = decord.VideoReader(path, num_threads=1, ctx=decord.cpu(0))
decord.bridge.set_bridge('torch')
video_len = len(video_reader)
video = video_reader.get_batch(np.linspace(0, video_len - 1, 8).astype(np.int)).byte()
video = video_reader.get_batch(np.linspace(0, video_len - 1, 8).astype(np.intc)).byte()
video = video.permute(3, 0, 1, 2)

input_mean = [0.48145466, 0.4578275, 0.40821073]
Expand Down

0 comments on commit de1e082

Please sign in to comment.