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

Training.py error #13

Open
thundersoft90 opened this issue May 4, 2024 · 3 comments
Open

Training.py error #13

thundersoft90 opened this issue May 4, 2024 · 3 comments

Comments

@thundersoft90
Copy link

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

@jaketae
Copy link
Owner

jaketae commented May 5, 2024

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

@thundersoft90
Copy link
Author

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 ?

@jaketae
Copy link
Owner

jaketae commented May 12, 2024

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

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