YoadTew / zero-shot-image-to-text

Implementation of Zero-Shot Image-to-Text Generation for Visual-Semantic Arithmetic
262 stars 42 forks source link

in model/ZeroCLIP.py tmp_weights in 290 row is not used #8

Open hl123-123 opened 1 year ago

hl123-123 commented 1 year ago

i want to know the meaning about the tmp_weights .tmp_weight is not used for loss grad in the code

shams2023 commented 1 year ago

我想知道代码中没有用于损失等级的 tmp_weights .tmp_weight 的含义

感谢您的工作! 我在运行代码时遇到了这个问题:UnboundLocalError:赋值前引用的局部变量“上下文”。 请问如何解决这个问题?再次感谢。我希望你能花时间帮助我解决它。谢谢。 image