allenai / allenai/gpv-1

File path error when evaluating on RefCOCOp

Ouverte
#2 0 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
Jupyter Notebook
Étoiles
93
Forks
14
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I got and `OSError: No such file or directory` when evaluating on RefCOCOp, which seems to be caused by the inconsistency between [line 37](https://github.com/allenai/gpv-1/blob/4a5c1f212d115d4146bab2a691ce40fc07de4222/exp/gpv/compute_predictions.py#L37) and [line164](https://github.com/allenai/gpv-1/blob/4a5c1f212d115d4146bab2a691ce40fc07de4222/exp/gpv/compute_predictions.py#L164). I solved this problem by change line 37 and line 38 to the following code

```py
boxes_h5py = h5py.File(os.path.join(
eval_dir,f'{cfg.eval.task}_{cfg.task_configs.data_split}_{cfg.eval.subset}_boxes.h5py'),'w')
```

## Command

command to reproduce the error

```sh
# Set up env and prepare data following guidance, here I set the `download_coco_test_images` to False

# Evaluate
bash exp/gpv/scripts/eval.sh gpv_coco_sce RefCocop val '' ${work_dir}/GPV/exp_output ${work_dir}/GPV

```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.