zsgnet-pytorch icon indicating copy to clipboard operation
zsgnet-pytorch copied to clipboard

problem while reproducing referit dataset

Open YBYBZhang opened this issue 3 years ago • 3 comments

Thank you for your great work. I meet some problems when I reproduced the result on referit dataset. I use the same config with this file. However, the validation accuracy is only 50% after 20 epochs while it should be 58% in the paper. I think maybe the config is different among different datasets. Looking forward to your help !

YBYBZhang avatar Oct 20 '20 07:10 YBYBZhang

Hello, @1170300521 sorry for the delayed reply (for some reason this didn't turn up in my notifs).

I recall using lr=1e-4 for 10 epochs, and 1e-5 for another 10 epochs.

I might have access to the logs, so let me know if you are having trouble reproducing the result.

TheShadow29 avatar Jan 26 '21 05:01 TheShadow29

@1170300521 @TheShadow29 I am having difficulty reproducing the result. I am trying to reproduce the result on Flickr30k. Everything went fine till...

I ran python code/main_dist.py flickr30k_retina_29Jul19.pth --ds_to_use='refclef' --resume=True --only_valid=True --only_test=True

and got an error:

Traceback (most recent call last):
  File "code/main_dist.py", line 101, in <module>
    fire.Fire(main_dist)
  File "/home/tejanm/anaconda3/lib/python3.8/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/home/tejanm/anaconda3/lib/python3.8/site-packages/fire/core.py", line 466, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/home/tejanm/anaconda3/lib/python3.8/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "code/main_dist.py", line 83, in main_dist
    cfg = update_from_dict(cfg, kwargs, key_maps)
  File "/home/tejanm/zsgnet-pytorch/code/extended_config.py", line 83, in update_from_dict
    assert subkey in d, f'key {full_key} doesnot exist'
AssertionError: key only_valid doesnot exist

Can you please help?

tejan-rgb avatar Sep 26 '21 22:09 tejan-rgb

@tejan-rgb Can you try changing only_valid to only_val?

TheShadow29 avatar Sep 27 '21 20:09 TheShadow29