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

Error when running code of advpicker #48

Open
LittleMouseInCoding opened this issue Sep 27, 2022 · 2 comments
Open

Error when running code of advpicker #48

LittleMouseInCoding opened this issue Sep 27, 2022 · 2 comments

Comments

@LittleMouseInCoding
Copy link

image

As shown in the figure, I use the same environment as you suggest, still meet the bug, do you have any solution?
@iofu728
Copy link
Contributor

iofu728 commented Sep 28, 2022

Hi @LittleMouseInCoding, it seems that the sp_data_ne is a empty list.
You can replace the https://github.com/microsoft/vert-papers/blob/master/papers/AdvPicker/get_xl_data.py#L254 to

sp_data_ne = TensorDataset(*[torch.stack(ii) if ii else torch.tensor([])  for ii in sp_data_ne])

or increase the args.threshold.

@LittleMouseInCoding
Copy link
Author

I changed the code as you suggested, and still can not reproduce the reported result.

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