yulinliu101 / DeepTP

A deep generative model to predict aircraft actual trajectories using high dimensional weather data
https://arxiv.org/abs/1812.11670
MIT License
78 stars 26 forks source link

Unable to run the Run_RNN_model_lite.py script. Index error #5

Closed ClementJaccarino closed 4 years ago

ClementJaccarino commented 4 years ago

I have been trying for a couple of weeks to launch your script in order to test a little bit more the result you have with your project. I have fix all the issues I encounter in the run_feature_cube.py script and I did setup a python environment with the right version of Tensorflow to run the model.

The issues I have now come from an index error the _nextbatch() function in the _datasetslite.py script and more precisely from this line :

_269 - batch_inputs_feature_cubes = self.train_featurecubes[self.idx:endidx, :, :, :, :]

IndexError: too many indices for array: array is 1-dimensional, but 5 were indexed

The error come from the reading of the file _featurecubes.npz and I am not sure why the array is only a 1 dimensional array when it should be a 5 dimensional array.

I am using Python 3.7.9 and I didn't do any major changes to the run_features_cube.py script. Do you have any advice for me in order to run you project properly ?