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

和hugging face上的效果不一样。 #28

Open
chenjun2hao opened this issue Jan 24, 2024 · 2 comments
Open

和hugging face上的效果不一样。 #28

chenjun2hao opened this issue Jan 24, 2024 · 2 comments

Comments

@chenjun2hao
Copy link

同一张图像,同样的参数,用仓库的代码和hugging face demo推理的可视化结果不一样,hugging face是做了什么优化修改嘛?

@chenjun2hao
Copy link
Author

参数是按hugging face demo中的设置的。hugging face app.py下载下来跑还是和hugging face上的不一样。。。

@shenyunhang
Copy link
Owner

huggingface demo是有加了以下参数:

"model.model_vision.select_box_nums_for_evaluation=500",
"model.model_vision.text_feature_bank_reset=True",
"model.model_vision.backbone.net.xattn=False",
"model.model_vision.transformer.encoder.pytorch_attn=True",
"model.model_vision.transformer.decoder.pytorch_attn=True",

这里可以看到huggingface demo的具体调用方法。

如果结果还是不一样,可能和环境有关系。

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

No branches or pull requests

2 participants