Closed jdsteen627 closed 1 year ago
We are looking into this. Thanks for pointing out the issue.
Hi, Can you please install latest version of MMF using
pip uninstall -y mmf
pip install mmf@https://github.com/facebookresearch/mmf/tarball/master
That should fix this issue.
Still getting AssertionError: train.jsonl doesn't exist in /root/.cache/torch/mmf/data/datasets/hateful_memes/defaults/images #887
I'm also facing the same issue. I have a fresh install from the directory.
I'm also facing the same issue. I have a fresh install from the directory.
I found that it is because the mmf_convert method added /data to the path while unzipping. Hence, the structure of the zip file should look like hateful_memes/data/img or ateful_memes/data/test.jsonl Here is their source code about the path:
for file in files_needed:
exists = exists or PathManager.exists(os.path.join(folder, "data", file))
I'm having the same issue. @woquinocoin is this worked?
I rearranged and compressed as mentioned, but didn't work for me
For me, it was extracted in the "hateful_memes" folder instead of the "data" directory pointed to in the code. I changed the exists = exists or PathManager.exists(os.path.join(folder, "data", file)) to exists = exists or PathManager.exists(os.path.join(folder, "hateful_memes", file)) and it worked.
Thanks @Noman-Tanveer! Your solution worked for me. They probably changed the directory name containing the data without making modifications to the cli methods.
I rearranged and compressed as mentioned, but didn't work for me
try to use this dataset I re-ziped: https://drive.google.com/file/d/1qkp3G7Ua_ePz1tBKI6tF2tjCqf6_O2d-/view?usp=sharing
Still getting AssertionError: train.jsonl doesn't exist in /root/.cache/torch/mmf/data/datasets/hateful_memes/defaults/images #887
I am getting the same issue. Even though train.jsonl is in the path /root/.cache/torch/mmf/data/datasets/hateful_memes/defaults/images, the system is failing the assertion. Any help or suggestion to solve the issue will be appreciated.
Can anybody please help me with the fix for the issue. Please refer the link for more details: https://github.com/rizavelioglu/hateful_memes-hate_detectron/issues/3#issue-1209723871
I'm having the same issue. Waiting for solutions
@AnjumJ123 @Hao-YunDeng Try to unzip the file then compress it again after renaming the folder from hateful_memes
to data
this works for me.
I rearranged and compressed as mentioned, but didn't work for me
try to use this dataset I re-ziped: https://drive.google.com/file/d/1qkp3G7Ua_ePz1tBKI6tF2tjCqf6_O2d-/view?usp=sharing
sorry the link does not work now. Could you please share me with the dataset? I need the images in the dataset. I promise to only use it for research purposes and will not distribute it to any third parties.
Still getting AssertionError: train.jsonl doesn't exist in /root/.cache/torch/mmf/data/datasets/hateful_memes/defaults/images #887
I am getting the same issue. Even though train.jsonl is in the path /root/.cache/torch/mmf/data/datasets/hateful_memes/defaults/images, the system is failing the assertion. Any help or suggestion to solve the issue will be appreciated.
@AnjumJ123 were you able to fix it? I'm facing the same issue.
Still getting AssertionError: train.jsonl doesn't exist in /root/.cache/torch/mmf/data/datasets/hateful_memes/defaults/images #887
I am getting the same issue. Even though train.jsonl is in the path /root/.cache/torch/mmf/data/datasets/hateful_memes/defaults/images, the system is failing the assertion. Any help or suggestion to solve the issue will be appreciated.
@AnjumJ123 were you able to fix it? I'm facing the same issue.
I was battling through these same issues last night. This is what worked for me.
mmf_convert_hm --zip_file=data.zip --password=password --bypass_checksum=1
to "mmf-ify" the data (per the "Prerequisites" section here)FWIW, I'm on a PC and using mmf=1.0.0rc12
. I installed mmf
according to the mmf docs, specifically with the pip install --editable .
option (which came with its own set of challenges)
🐛 Bug
The hateful memes notebook example fails due to issues with extracting the zip file.
Command
To Reproduce
Steps to reproduce the behavior: