deep-malware-detection icon indicating copy to clipboard operation
deep-malware-detection copied to clipboard

Training.py error

Open thundersoft90 opened this issue 1 year ago • 3 comments

Hi,

When I tried to execute train.py I encounter error as follows

D:\x_malwdetc\x_mawdetc\src\deep_malware_detection>python train.py --benign_dir="D:\x_malwdetc\x_mawdetc\src\bin\raw\dll-headersiz" --malware_dir="D:\x_malwdetc\x_mawdetc\src\bin\raw\dasmalwerk-headersiz" Traceback (most recent call last): File "D:\x_malwdetc\x_mawdetc\src\deep_malware_detection\train.py", line 4, in import models File "D:\x_malwdetc\x_mawdetc\src\deep_malware_detection\models.py", line 1, in import torch File "C:\Users\x\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\torch_init_.py", line 141, in raise err OSError: [WinError 126] Belirtilen modül bulunamadı. Error loading "C:\Users\x\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\torch\lib\shm.dll" or one of its dependencies.

Would you help me to resolve this issue ? Thanks in advance

thundersoft90 avatar May 04 '24 17:05 thundersoft90

The error is not coming from this library or code. Can you double check that you are able to import PyTorch in your virtual environment?

>>> import torch

jaketae avatar May 05 '24 06:05 jaketae

By the way, in files uploading to the neural network, which parameter is considered in learning process to determine whether it is benignware or malware ? For instance is it done by PE format or something else ?

thundersoft90 avatar May 05 '24 12:05 thundersoft90

It's the PE format. The README contains some references I used for the implementation.

jaketae avatar May 12 '24 19:05 jaketae