SingularTrajectory icon indicating copy to clipboard operation
SingularTrajectory copied to clipboard

KeyError: 'biwi_eth.txt:Zone'

Open iMissZzz opened this issue 11 months ago • 2 comments

I encountered this problem when I reproduced your code:

Traceback (most recent call last): File "trainval.py", line 29, in trainer = ModelTrainer(base_model=PredictorModel, model=SingularTrajectory, hook_func=hook_func, File "/home/github_repo/SingularTrajectory/utils/trainer.py", line 256, in init super().init(args, hyper_params) File "/home/github_repo/SingularTrajectory/utils/trainer.py", line 192, in init self.loader_train = get_dataloader(self.dataset_dir, 'train', obs_len, pred_len, batch_size=batch_size, skip=skip) File "/home/github_repo/SingularTrajectory/utils/dataloader.py", line 32, in get_dataloader dataset_phase = TrajectoryDataset(data_set, obs_len=obs_len, pred_len=pred_len, skip=skip) File "/home/github_repo/SingularTrajectory/utils/dataloader.py", line 210, in init self.vector_field[scene_name] = np.load(os.path.join(parent_dir, "vectorfield", scene_img_map[scene_name] + "_vector_field.npy")) KeyError: 'biwi_eth.txt:Zone' And similarly KeyError: 'biwi_hotel.txt:Zone'

iMissZzz avatar Apr 03 '25 09:04 iMissZzz

Hi @iMissZzz,

Thanks for your interest in my work! It looks like you're referring to the Zone.Identifier. The Windows system automatically generates this alternate data stream file if you download files from the internet. You can safely remove it using the following command:

find . -name "*:Zone.Identifier" -type f -delete

Hope this helps you!

InhwanBae avatar Apr 04 '25 06:04 InhwanBae

So much thanks! the problem sloved!

iMissZzz avatar Apr 04 '25 11:04 iMissZzz

I'm closing this issue for now. Feel free to open another issue if you have any further questions!

InhwanBae avatar Jun 30 '25 05:06 InhwanBae