Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify np.int -> int #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions data/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, data_root, seq_name, parser, log, split='train', phase='train
assert False, 'error'

self.gt = np.genfromtxt(label_path, delimiter=delimiter, dtype=str)
frames = self.gt[:, 0].astype(np.float32).astype(np.int)
frames = self.gt[:, 0].astype(np.float32).astype(int)
fr_start, fr_end = frames.min(), frames.max()
self.init_frame = fr_start
self.num_fr = fr_end + 1 - fr_start
Expand Down Expand Up @@ -88,7 +88,7 @@ def get_valid_id(self, pre_data, fut_data):
return valid_id

def get_pred_mask(self, cur_data, valid_id):
pred_mask = np.zeros(len(valid_id), dtype=np.int)
pred_mask = np.zeros(len(valid_id), dtype=int)
for i, idx in enumerate(valid_id):
pred_mask[i] = cur_data[cur_data[:, 1] == idx].squeeze()[-1]
return pred_mask
Expand Down