Fix compatibility with numpy > 1.20

This commit is contained in:
Ruben van de Ven 2023-10-04 21:16:02 +02:00
parent d182787c83
commit f4d860907c

View file

@ -135,10 +135,10 @@ class TemporalSceneGraph(object):
position_cube = np.full((total_timesteps, N, 2), np.nan) position_cube = np.full((total_timesteps, N, 2), np.nan)
adj_cube = np.zeros((total_timesteps, N, N), dtype=np.int8) 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_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): for node_idx, node in enumerate(nodes):
if online: if online: