vert-papers icon indicating copy to clipboard operation
vert-papers copied to clipboard

Error when running code of advpicker

Open LittleMouseInCoding opened this issue 3 years ago • 2 comments

image As shown in the figure, I use the same environment as you suggest, still meet the bug, do you have any solution?

LittleMouseInCoding avatar Sep 27 '22 03:09 LittleMouseInCoding

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.

iofu728 avatar Sep 28 '22 10:09 iofu728

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

LittleMouseInCoding avatar Oct 14 '22 22:10 LittleMouseInCoding