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

SNLI_VE Inference Error #407

Closed
Pefect96 opened this issue Jul 18, 2023 · 3 comments
Closed

SNLI_VE Inference Error #407

Pefect96 opened this issue Jul 18, 2023 · 3 comments

Comments

@Pefect96
Copy link

When I modify the model path and run the evaluate_snli_ve_base.sh or evaluate_snli_ve.sh to test the performance, I meet the following error:

Traceback (most recent call last):
File "/home/dev/OFA-main/run_scripts/snli_ve/../../evaluate.py", line 203, in
cli_main()
File "/home/dev/OFA-main/run_scripts/snli_ve/../../evaluate.py", line 193, in cli_main
distributed_utils.call_main(
File "/home/dev/OFA-main/fairseq/fairseq/distributed/utils.py", line 374, in call_main
distributed_main(cfg.distributed_training.device_id, main, cfg, kwargs)
File "/home/dev/OFA-main/fairseq/fairseq/distributed/utils.py", line 348, in distributed_main
main(cfg, **kwargs)
File "/home/dev/OFA-main/run_scripts/snli_ve/../../evaluate.py", line 168, in main
if torch.any(scores) and isinstance(scores[0], tuple):
TypeError: any(): argument 'input' (position 1) must be Tensor, not list

@Pefect96
Copy link
Author

I have solved this problem, it seems that I modified the code earlier due to version problems.

@Yeemkt
Copy link

Yeemkt commented Nov 6, 2023

e

When I modify the model path and run the evaluate_snli_ve_base.sh or evaluate_snli_ve.sh to test the performance, I meet the following error:

Traceback (most recent call last): File "/home/dev/OFA-main/run_scripts/snli_ve/../../evaluate.py", line 203, in cli_main() File "/home/dev/OFA-main/run_scripts/snli_ve/../../evaluate.py", line 193, in cli_main distributed_utils.call_main( File "/home/dev/OFA-main/fairseq/fairseq/distributed/utils.py", line 374, in call_main distributed_main(cfg.distributed_training.device_id, main, cfg, kwargs) File "/home/dev/OFA-main/fairseq/fairseq/distributed/utils.py", line 348, in distributed_main main(cfg, **kwargs) File "/home/dev/OFA-main/run_scripts/snli_ve/../../evaluate.py", line 168, in main if torch.any(scores) and isinstance(scores[0], tuple): TypeError: any(): argument 'input' (position 1) must be Tensor, not list

may i ask what u have changed? the run_script?
i only changed a few parameters in the evaluate_refcoco.sh,and it comes
"RuntimeError: Boolean value of Tensor with more than one value is ambiguous"

@JJJYmmm
Copy link

JJJYmmm commented Apr 24, 2024

e

When I modify the model path and run the evaluate_snli_ve_base.sh or evaluate_snli_ve.sh to test the performance, I meet the following error:
Traceback (most recent call last): File "/home/dev/OFA-main/run_scripts/snli_ve/../../evaluate.py", line 203, in cli_main() File "/home/dev/OFA-main/run_scripts/snli_ve/../../evaluate.py", line 193, in cli_main distributed_utils.call_main( File "/home/dev/OFA-main/fairseq/fairseq/distributed/utils.py", line 374, in call_main distributed_main(cfg.distributed_training.device_id, main, cfg, kwargs) File "/home/dev/OFA-main/fairseq/fairseq/distributed/utils.py", line 348, in distributed_main main(cfg, **kwargs) File "/home/dev/OFA-main/run_scripts/snli_ve/../../evaluate.py", line 168, in main if torch.any(scores) and isinstance(scores[0], tuple): TypeError: any(): argument 'input' (position 1) must be Tensor, not list

may i ask what u have changed? the run_script? i only changed a few parameters in the evaluate_refcoco.sh,and it comes "RuntimeError: Boolean value of Tensor with more than one value is ambiguous"

#441

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

3 participants