davidhin / linevd

Statement-level deep learning model for automated software vulnerability detection in C/C++ (Accepted in MSR 2022)
MIT License
67 stars 24 forks source link

train_best.py ERROR! #11

Closed goodboyl closed 7 months ago

goodboyl commented 7 months ago

May I ask if the data in "before" is used at "①", but all the data in "before" is vulnerable, i.e. Vul=1. However, when the part with "Vul=0" is selected in "②", the result is "len (nonvul)=0". 图片1

And the following error occurs, it means the "nonvul" is empty~ 屏幕截图 2024-03-14 162705

May I ask if there is a problem with my understanding? Or please tell me how to handle it.🥹

DavideParo commented 5 months ago

@goodboyl Did you happen to resolve that issue?