facebookresearch / mmf

A modular framework for vision & language multimodal research from Facebook AI Research (FAIR)
https://mmf.sh/
Other
5.49k stars 935 forks source link

Error when trying to add new images to TextVQA #1116

Closed soonchangAI closed 3 years ago

soonchangAI commented 3 years ago

❓ Questions and Help

Hi, I am trying to add new images for M4C TextVQA according to issue 663. I started out by trying on 10 images of TextVQA download from the website. I'm doing it only for training. For validation and test, the config file still points to TextVQA. The builder.py and dataset.py were copied from TextVQA (with dataset name change only) When I ran the code, there's following error. I noticed there is similar errors for Windows machine, tried that fix, didn't work.

My extracted features are saved in a directory. Example of feature filename for an image00c359f294f7dcd9.npy. But not in a train directory. Is it causing this problem?


Traceback (most recent call last):
  File "/home/cybertron/anaconda3/envs/mmf/bin/mmf_run", line 33, in <module>
    sys.exit(load_entry_point('mmf', 'console_scripts', 'mmf_run')())
  File "/home/cybertron/mmf/mmf_cli/run.py", line 129, in run
    nprocs=config.distributed.world_size,
  File "/home/cybertron/anaconda3/envs/mmf/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 230, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
  File "/home/cybertron/anaconda3/envs/mmf/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 188, in start_processes
    while not context.join():
  File "/home/cybertron/anaconda3/envs/mmf/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 150, in join
    raise ProcessRaisedException(msg, error_index, failed_process.pid)
torch.multiprocessing.spawn.ProcessRaisedException: 

-- Process 0 terminated with the following error:
Traceback (most recent call last):
  File "/home/cybertron/mmf/mmf/datasets/databases/readers/feature_readers.py", line 253, in _load
    image_id = int(split.split("_")[-1])
ValueError: invalid literal for int() with base 10: 'train/006d10667d17b924'