Closed amrzv closed 1 year ago
I am facing the same issue, I solved the pp_img but pp_txt is still an issue. I set follow configs in lit_coco.py
config.pp_img = f'resize({arg.res})|value_range(-1,1)'
config.pp_txt = 'tokenize(max_len=16, inkey="texts", eos="sticky", pad_value=1)'
Image pp works but for pp_txt I get the following error
Looking forward for your response.
Hi, you can instead use
config.evals.disclf.pp_img & config.evals.disclf.pp_txt
For 'preprocess_ops.tokenize', it's just because you don't register config.pp_modules.
for pp_mod in config.pp_modules: importlib.import_module(f'big_vision.pp.{pp_mod}')
You can restart the session and run again.
Remember to modify 'label': label to 'texts': label as the inkey in config.evals.disclf.pp_txt is 'texts'.
Hi. An AttributeError is raised when running
big_vision/blob/main/big_vision/configs/proj/image_text/lit.ipynb
notebook in colab:P.S: raised here
config.pp_img
. P.S.S: here also will be AttributeError:config.pp_txt