AC-VRNN
AC-VRNN copied to clipboard
IsADirectoryError: [Errno 21] Is a directory when running heatmap.py
I use eth data, and when I run heatmap.py, it occurs that:
Traceback (most recent call last):
File "/mnt/e/AC-VRNN-master/dataset_processing/heatmap.py", line 286, in
My definition is : if name == 'main': compute_mean_displacement_eth_ucy(data_dir='/mnt/e/AC-VRNN-master/datasets/eth', delim='\t') compute_local_heatmaps_eth_ucy(data_dir='/mnt/e/AC-VRNN-master/datasets/eth', out_dir='local_hm_5x5', delim='\t')
Thanks.
Are you using the dataset version provided here https://github.com/huang-xx/STGAT/tree/master/STGAT/datasets? Moreover, you have to pass the path to the global directory containing all ETH/UCY datasets. compute_mean_displacement_eth_ucy(data_dir='/mnt/e/AC-VRNN-master/datasets', delim='\t') compute_local_heatmaps_eth_ucy(data_dir='/mnt/e/AC-VRNN-master/datasets', out_dir='local_hm_5x5', delim='\t')
Are you using the dataset version provided here https://github.com/huang-xx/STGAT/tree/master/STGAT/datasets? Moreover, you have to pass the path to the global directory containing all ETH/UCY datasets. compute_mean_displacement_eth_ucy(data_dir='/mnt/e/AC-VRNN-master/datasets', delim='\t') compute_local_heatmaps_eth_ucy(data_dir='/mnt/e/AC-VRNN-master/datasets', out_dir='local_hm_5x5', delim='\t')
There is still a problem.
In dataloader_utils.py, the function of read_file is the main reason. Especially with open(_path, 'r') as f:
it also occurs that:
Exception has occurred: IsADirectoryError
[Errno 21] Is a directory: '/mnt/e/AC-VRNN-master/datasets/eth'
File "/mnt/e/AC-VRNN-master/dataset_processing/dataloader_utils.py", line 34, in read_file
with open(_path, 'r') as f:
File "/mnt/e/AC-VRNN-master/dataset_processing/heatmap.py", line 90, in compute_mean_displacement_eth_ucy
data = read_file(path, delim)
File "/mnt/e/AC-VRNN-master/dataset_processing/heatmap.py", line 288, in
Is it OK in your conmuter? Thanks.
And how to generate npy document?Thanks.
I have the same issue. Were you able to fix it?