Fix compatibility with numpy > 1.20
This commit is contained in:
parent
d182787c83
commit
f4d860907c
1 changed files with 2 additions and 2 deletions
|
@ -135,10 +135,10 @@ class TemporalSceneGraph(object):
|
|||
position_cube = np.full((total_timesteps, N, 2), np.nan)
|
||||
|
||||
adj_cube = np.zeros((total_timesteps, N, N), dtype=np.int8)
|
||||
dist_cube = np.zeros((total_timesteps, N, N), dtype=np.float)
|
||||
dist_cube = np.zeros((total_timesteps, N, N), dtype=float)
|
||||
|
||||
node_type_mat = np.zeros((N, N), dtype=np.int8)
|
||||
node_attention_mat = np.zeros((N, N), dtype=np.float)
|
||||
node_attention_mat = np.zeros((N, N), dtype=float)
|
||||
|
||||
for node_idx, node in enumerate(nodes):
|
||||
if online:
|
||||
|
|
Loading…
Reference in a new issue