Oscar icon indicating copy to clipboard operation
Oscar copied to clipboard

AssertionError: run_captioning always expects test_yaml to be in data_dir

Open josh-cooper opened this issue 5 years ago • 2 comments

https://github.com/microsoft/Oscar/blob/1044e6ee7899d885ce60b1719380da960b27adfb/oscar/run_captioning.py#L328 Assertion fails since when called on #L858 the yaml path is always joined to args.data_dir. This is contrary to the reproduciton example given in the model zoo.

josh-cooper avatar Oct 25 '20 07:10 josh-cooper

I just removed the line and it works.

brightbsit avatar Feb 02 '21 04:02 brightbsit

https://github.com/microsoft/Oscar/blob/1044e6ee7899d885ce60b1719380da960b27adfb/oscar/run_captioning.py#L328

Assertion fails since when called on #L858 the yaml path is always joined to args.data_dir. This is contrary to the reproduciton example given in the model zoo.

give proper location of the dataset file --data_dir 'oscar/datasets/coco_caption' .this helped me

Manoj-Alexander avatar Aug 20 '21 17:08 Manoj-Alexander