-
Notifications
You must be signed in to change notification settings - Fork 24
Description
****This my error when I try to test the model , please give me solution and guidelines
(myenv) C:\Users\30863\Function-level-Vulnerability-Detection-master>python main.py --config config\config.yaml --test --trained_model C:\Users\30863\Function-level-Vulnerability-Detection-master\result\models\test_model_01_0.920_0.334828.h5
Using TensorFlow backend.
2022-08-04 16:53:45.929112: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_100.dll'; dlerror: cudart64_100.dll not found
2022-08-04 16:53:45.929253: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
[INFO] Start testing process....
[INFO] Loading data from C:\Users\30863\Function-level-Vulnerability-Detection-master\data/....
[INFO] The length of the loaded data list is : 622
[INFO] Pad the sequence to unified length...
[INFO] Patition the data ....
[INFO] There are 125 total samples in the test set. 9 vulnerable samples.
Traceback (most recent call last):
File "main.py", line 34, in
helper.exec()
File "C:\Users\30863\Function-level-Vulnerability-Detection-master\src\helper.py", line 346, in exec
test_set_x, test_set_y, test_set_id = self.loadTestSet()
File "C:\Users\30863\Function-level-Vulnerability-Detection-master\src\helper.py", line 332, in loadTestSet
return test_set_x, test_set_y, test_list_id
UnboundLocalError: local variable 'test_list_id' referenced before assignment