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

BUG: <attributeERROR> 'NoneType' object has no attribute 'setPos' #156

Open
limserenahansol opened this issue Jan 20, 2025 · 2 comments
Open

Comments

@limserenahansol
Copy link

Version information:

facemap version: 1.0.7
platform: win32
python version: 3.8.20
torch version: 1.12.1
numpy version: 1.24.4

Describe the issue:

AttributeError: 'NoneType' object has no attribute 'setPos' in FaceMap
hi all,
i runed facemap and after refine keypoints and set MotSVD Rois
but and it has been saved in " noopioidm20011 25-01-17 16-29-15_proc.npy" and I tried to re-open this one to use different model. and now it showed this error, may I ask what I need to do ?
thanks for your help

more details below
File "C:\Users\hsollim\AppData\Local\anaconda3\envs\facemap\lib\site-packages\facemap\gui\gui.py", line 1120, in next_frame
self.update_svd_vtick()
File "C:\Users\hsollim\AppData\Local\anaconda3\envs\facemap\lib\site-packages\facemap\gui\gui.py", line 2033, in update_svd_vtick
self.svd_plot_vtick.setPos(self.cframe)
AttributeError: 'NoneType' object has no attribute 'setPos'
Traceback (most recent call last):
File "C:\Users\hsollim\AppData\Local\anaconda3\envs\facemap\lib\site-packages\facemap\gui\gui.py", line 884, in set_frame_changed
self.jump_to_frame()
File "C:\Users\hsollim\AppData\Local\anaconda3\envs\facemap\lib\site-packages\facemap\gui\gui.py", line 1085, in jump_to_frame
self.next_frame()
File "C:\Users\hsollim\AppData\Local\anaconda3\envs\facemap\lib\site-packages\facemap\gui\gui.py", line 1120, in next_frame
self.update_svd_vtick()
File "C:\Users\hsollim\AppData\Local\anaconda3\envs\facemap\lib\site-packages\facemap\gui\gui.py", line 2033, in update_svd_vtick
self.svd_plot_vtick.setPos(self.cframe)

Error message:

@Atika-Syeda
Copy link
Collaborator

Hi @limserenahansol are you trying to load the file " noopioidm20011 25-01-17 16-29-15_proc.npy"? If so, can you please share whether it has both motsvd and keypoints saved in the file by loading in a notebook (as described here: https://github.com/MouseLand/facemap/blob/main/docs/notebooks/load_visualize_keypoints.ipynb)

@limserenahansol
Copy link
Author

limserenahansol commented Jan 23, 2025 via email

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

2 participants