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

AttributeError when updating summary value during training #39

Closed
weinberz opened this issue Oct 6, 2019 · 9 comments
Closed

AttributeError when updating summary value during training #39

weinberz opened this issue Oct 6, 2019 · 9 comments
Assignees

Comments

@weinberz
Copy link

weinberz commented Oct 6, 2019

I generated a fresh N2V installation following the instructions in the readme, for TensorFlow 1.14 and Python 3.6.

When training, right after the first epoch, I would get an AttributeError ("'float' object has no attribute 'item'") from line 302 of nv_standard.py. Changing that line to:

summary_value.simple_value = value

in a local copy of N2V fixed the issue. Not sure if this is due to my setup or something else but thought I'd report.

Please let me know if other info about my setup or N2V config would be helpful!

@tibuch
Copy link
Collaborator

tibuch commented Oct 10, 2019

Hello @weinberz,

Thank you for reporting this issue. Unfortunately we are not able to reproduce it.

Does the issue come up if you run one of our examples or is it a completely different run? Are you currently working on the latest master or on the latest release?

Thank you for your help.

@weinberz
Copy link
Author

This was happening for me both on the latest release and on a fresh install from the latest master commit.

This was NOT on one of the examples - I substituted my own TIFs in. I suppose thinking about it, it could be an issue with the bit-depth of the files used maybe? I'll test this and get back to you.

@fontcala
Copy link

I get the exact same error with my own TIFs

@tibuch
Copy link
Collaborator

tibuch commented Oct 11, 2019

What are the dimensions of the TIFs you are using?
Would it be possible to get such a TIF or maybe even a minimal example showcasing the bug?

Hope we can figure out where this issue is coming from! 🤞

@fontcala
Copy link

fontcala commented Oct 15, 2019

Hello, I could reproduce this with your data and a new installation following the instructions.

Environment details after following the instructions:
conda_list_env.txt

Here is a renamed notebook file with the error trace:
01_training_rename.txt

Should the problem lie on my side, please let me know.

Edit: The workaround above does the trick

@turekg
Copy link
Contributor

turekg commented Oct 16, 2019

I've solved this issue by downgrading keras from to 2.3.1 to 2.2.5. I will do some more debugging and update master branch as needed

@turekg
Copy link
Contributor

turekg commented Oct 16, 2019

Will be pushing updated version 0.1.9 to pip. No code changes, just updated README and failsafe setup.py

turekg pushed a commit that referenced this issue Oct 16, 2019
…atically installed if not explicitly specified
@turekg
Copy link
Contributor

turekg commented Oct 17, 2019

new version released

@turekg turekg closed this as completed Oct 17, 2019
@fontcala
Copy link

My tests with the new version are successful. Thank you.

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

4 participants