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

When I run train.py #1

Open
hawk90 opened this issue Mar 18, 2019 · 1 comment
Open

When I run train.py #1

hawk90 opened this issue Mar 18, 2019 · 1 comment

Comments

@hawk90
Copy link

hawk90 commented Mar 18, 2019

pytorch version: 0.4.0
pandas version: 0.24.1

python3 train.py config/example.yaml 123
-->
Experiment:
example_sd_123
Training Set:
Total 2 files
Malware Count : 1
Goodware Count: 1
Validation Set:
Total 2 files
Malware Count : 1
Goodware Count: 1
Traceback (most recent call last):
File "train.py", line 151, in
history['tr_loss'].append(loss.cpu().data.numpy()[0])
IndexError: too many indices for array

@hawk90
Copy link
Author

hawk90 commented Mar 18, 2019

I changed it.

File "train.py", line 151, in
history['tr_loss'].append(loss.cpu().data.numpy()[0])
--> history['tr_loss'].append(loss.cpu().data.numpy())

File "train.py", line 183, in
history['val_loss'].append(loss.cpu().data.numpy()[0])
--> history['val_loss'].append(loss.cpu().data.numpy())

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

1 participant