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

Cannot output accuracy #10

Open
kanwangshijie-sudo opened this issue Apr 17, 2020 · 9 comments
Open

Cannot output accuracy #10

kanwangshijie-sudo opened this issue Apr 17, 2020 · 9 comments

Comments

@kanwangshijie-sudo
Copy link

Hello,I encountered a problem.Following the operation of the README, the training was successful. However, the output is xy_mse, and I want to output the accuracy.Therefore, the xy_mse of the train.py file is changed to acc, But the accuracy cannot be output.

I get the following error:
ValueError:MetricSpec without specified prediction_key requires predictions tensor or single element dict, got {'X': <tf.Tensor 'cycle_gan/transforms/G/Reshape_1:0' shape=(64, 100, 202) dtype=float32>, 'Y': <tf.Tensor 'cycle_gan/transforms/F/Reshape_1:0' shape=(64, 100, 202) dtype=float32>}.
I look forward to your answer,best wishes,thank you.

@aidangomez
Copy link
Contributor

Which version of TF are you running?

@kanwangshijie-sudo
Copy link
Author

Which version of TF are you running?

TF1.4

@kanwangshijie-sudo
Copy link
Author

Which version of TF are you running?

I want to ask how you output the accuracy rate at that time. I changed the xy_mse of the train.py file to acc

@aidangomez
Copy link
Contributor

Have you tried looking at the tensorboard for your run? I think we may log more metrics in the tensorboard than what we print to terminal.

@kanwangshijie-sudo
Copy link
Author

Have you tried looking at the tensorboard for your run? I think we may log more metrics in the tensorboard than what we print to terminal.

Hello, I read the tensorboard, there are X_groundtruth_acc and Y_groundtruth_acc, but there is no final result acc

@aidangomez
Copy link
Contributor

I think those accuracies are the final accuracies they report whether F and G have found the right encode() and decode() maps

@kanwangshijie-sudo
Copy link
Author

I think those accuracies are the final accuracies they report whether F and G have found the right encode() and decode() maps

OK, thank you, but my X_groundtruth_acc and Y_groundtruth_acc are only about 60%, and my data set is vigenere345_brown200,What is going on, the accuracy of your thesis is 75.7%.

@aidangomez
Copy link
Contributor

I would recommend double checking that all the hyperparameters are set as described in paper + appendix and ensure you're using the right timing signal etc.

@Mariam-73
Copy link

Which version of TF are you running?

I want to ask how you output the accuracy rate at that time. I changed the xy_mse of the train.py file to acc

How did you output accuracy?

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

3 participants