Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update fixed change for vl_ltr #2828

Open
wants to merge 14 commits into
base: dev_hackathon4
Choose a base branch
from

Conversation

psky1111
Copy link
Contributor

@psky1111 psky1111 commented Jun 5, 2023

following the requirements and finish adjustments

no pre-commit will do next commit
@paddle-bot
Copy link

paddle-bot bot commented Jun 5, 2023

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented Jun 5, 2023

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Collaborator

@TingquanGao TingquanGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还有一些问题,麻烦再看下

ppcls/arch/backbone/model_zoo/vl_ltr.py Outdated Show resolved Hide resolved
ppcls/arch/backbone/__init__.py Outdated Show resolved Hide resolved
ppcls/arch/backbone/model_zoo/vl_ltr.py Outdated Show resolved Hide resolved
ppcls/arch/backbone/model_zoo/vl_ltr.py Outdated Show resolved Hide resolved
Comment on lines +23 to +24
cache_root: "cached"
pretrained_clip: "vit"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是什么意思?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已经在相关yaml文件中加入注释. 这里cache_root是在训练时保存的token缓存. 会自动生成"cached/"这个目录.

ppcls/data/dataloader/imagenetLT_dataset.py Outdated Show resolved Hide resolved
@@ -65,11 +65,12 @@ class MixupOperator(BatchOperator):

"""

def __init__(self, class_num, alpha: float=1.):
def __init__(self, class_num, alpha: float=1., is_batch=False):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉is_batch不太好,是不是可以换个变量名?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已经更改变量名字

ppcls/loss/vltloss.py Outdated Show resolved Hide resolved
@psky1111
Copy link
Contributor Author

psky1111 commented Jun 26, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants