uctb / UCTB

An Open Source Spatio-Temporal Prediction Package
MIT License
190 stars 43 forks source link

DataSet class initializer does not support relative path #17

Closed FangJiangyi closed 2 years ago

FangJiangyi commented 2 years ago

For the same pkl file, the absolute path can be used to load data successfully but the relative path cannot be used. Absolute file path image Relative file path image I suspect that it's because function os.path.isfile does not accept relative path as parameter.

FangJiangyi commented 2 years ago

I found that it was me that mistake path relative to parent working directory(executing shell) for path relative to project's root directory.So, when I change the string argument to '../Public_Datasets/Pedestrian/60_minutes/Pedestrian_Melbourne.pkl', the problem solved.