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

Acc. always 0% #3

Open
kemalcanbora opened this issue Jul 24, 2018 · 8 comments
Open

Acc. always 0% #3

kemalcanbora opened this issue Jul 24, 2018 · 8 comments

Comments

@kemalcanbora
Copy link

when I try build model I get always acc: 0.000 best_acc:0.000

num_epochs=50,
is_train=True,
use_gpu=True

@rabinpoudyal
Copy link

@kemalcanbora My code did not even run. It gives me following error can you suggest me what happened?
raceback (most recent call last):
File "ml_src/build_models.py", line 22, in
target_dims = get_attribute_dims(label_values_file)
File "/home/rabin/Desktop/apparel-styles/ml_src/preprocessing.py", line 80, in get_attribute_dims
label_values = load_label_values(label_values_file)
File "/home/rabin/Desktop/apparel-styles/ml_src/preprocessing.py", line 67, in load_label_values
with open(label_values_file, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data/label_values.json'

@kemalcanbora
Copy link
Author

if you run on terminal it's normal.You have to give it the full path for example: /pc/rabin/pyproject/data/bla/data/label_values.json

@gizioo
Copy link

gizioo commented Aug 10, 2018

You are probably using a newer version of the libraries.
In classifiers.py change lines 183:184 to

running_loss += loss.data.item()
running_corrects += torch.sum(preds == labels.data).item()

@sujit420
Copy link

@kemalcanbora My code did not even run. It gives me following error can you suggest me what happened?
raceback (most recent call last):
File "ml_src/build_models.py", line 22, in
target_dims = get_attribute_dims(label_values_file)
File "/home/rabin/Desktop/apparel-styles/ml_src/preprocessing.py", line 80, in get_attribute_dims
label_values = load_label_values(label_values_file)
File "/home/rabin/Desktop/apparel-styles/ml_src/preprocessing.py", line 67, in load_label_values
with open(label_values_file, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data/label_values.json'

Did u find that file?? I am running with same issue

@sujit420
Copy link

if you run on terminal it's normal.You have to give it the full path for example: /pc/rabin/pyproject/data/bla/data/label_values.json

where i can get that file??

@kemalcanbora
Copy link
Author

apparel-styles/ml_src/data/label_values.json

@sujit420
Copy link

apparel-styles/ml_src/data/label_values.json

Thanks @kemalcanbora

@yiming-lzx
Copy link

when I try build model I get always acc: 0.000 best_acc:0.000

num_epochs=50,
is_train=True,
use_gpu=True

i got the same problem, how can you solve it?

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

5 participants