Yushi-Hu / tifa

TIFA: Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering
https://tifa-benchmark.github.io/
Apache License 2.0
129 stars 7 forks source link

what is the "ast_indexer" and how to change the path of it? #2

Closed bigbrother001 closed 1 year ago

bigbrother001 commented 1 year ago

Thanks for your great work! when I runing the code it will tell me modelscope - INFO - Loading ast index from /home/nudt/.cache/modelscope/ast_indexer

however, this path is not convenient for me, how can I make it load from the project directory?

Yushi-Hu commented 1 year ago

I think this is because of the cache directory of Modelscope. You can change it by setting the environment variable

export MODELSCOPE_CACHE = "[PATH YOU want]"

bigbrother001 commented 1 year ago

Thanks very much!