a-lakh / DT2-ACBS

This repository contains the source code of our ICCV 2021 paper, Learning of Visual Relations: The Devil is in the Tails.
MIT License
2 stars 0 forks source link

unable to open file: name = './datasets/vg/imdb_1024.h5' #1

Open G200005 opened 4 months ago

G200005 commented 4 months ago

When I train the model I encounter the following error, Unable to open file (unable to open file: name = './datasets/vg/imdb_1024.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0) I hope you will see my question and reply, thanks.

a-lakh commented 4 months ago

This file is part of the dataset setup. I think you might have missed setting up the dataset. dataset prep

I can help more if you can describe what stage you are training.

G200005 commented 4 months ago

Thank you for your reply. I have solved this problem, but I have a new problem. I am doing a model evaluation using the following command python test.py --test_task 1 --init_weight_path /mypath/pretrained_model/updated_distill_KD_gnd_a0.2_t10_last_model.pth ,but the page stays at the current stage for more than 30 minutes without change. image And I would like to ask, if I need to specify the GPU 's id, is it possible to modify this code? image

G200005 commented 4 months ago

I get some errors when I test the model using the following command. The error message is terminate called after throwing an instance of 'std::runtime_error' what(): NCCL Error 1: unhandled cuda error Aborted (core dumped) The command is CUDA_VISIBLE_DEVICES=2,3 python test.py --test_task 1 --cuda --init_weight_path /mypath/pretrained_model/updated_distill_KD_gnd_a0.2_t10_last_model.pth

suexin27 commented 3 months ago

I downloaded from this link, https://svl.stanford.edu/projects/scene-graph/dataset/imdb_1024.h5, but still can not open, how do you solve?

image
a-lakh commented 3 months ago

Sorry for the late reply! Let me take a look into this and try to reproduce the error.

suexin27 commented 3 months ago

抱歉回复迟了!让我看一下并尝试重现该错误。

hi~Could you please provide the file imdb_1024.h5 again? After testing below, I find that the file type is recognized as HTML document, ASCII text, with very long lines, not HDF5 file.

image image