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: 'FrameIndexSplitter' object has no attribute '_id' #61

Open
zamanmub opened this issue Jun 4, 2019 · 5 comments
Open

Comments

@zamanmub
Copy link

zamanmub commented Jun 4, 2019

Hello,
I am trying object detection example, but getting the following error:

File "C:\Program Files\Python37\lib\multiprocessing\spawn.py", line 115, in _main self = reduction.pickle.load(from_parent) File "C:\Users\Mubtaseem Zaman\AppData\Roaming\Python\Python37\site-packages\videoflow\core\node.py", line 40, in __hash__ return self._id AttributeError: 'FrameIndexSplitter' object has no attribute '_id'

@jadielam
Copy link
Collaborator

jadielam commented Jun 4, 2019

@mubtaseemz What version of the code are you using?

@zamanmub
Copy link
Author

zamanmub commented Jun 4, 2019

Thanks for prompt reply. I am using 0.2.2 video flow. Python 3.7. Tensorflow 1.13

@flappy007
Copy link

change self._id to id(self) in the hash function in node.py

@jadielam
Copy link
Collaborator

@flappy007 I have not been able to reproduce this issue.

The decision to implement the hash function in that way is the following: a node object will be accessed by different operating system processes. I don't think that there is a guarantee that the id function will return the same value across processes (but I might be wrong). Because of that I am calling the id() function at object construction time.

@tunght
Copy link

tunght commented Sep 3, 2020

I have the same issue, i'm using Mac and Python3.8
Change self._id to id(self) in the hash function does do the trick, but it also does generate a different value in the new process

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