kristinbranson / JAABA

Janelia Animal Behavior Detector
Other
75 stars 30 forks source link

Reference to non-existent field 'labels' when importing .lbl file from APT #345

Closed harshk95 closed 2 years ago

harshk95 commented 2 years ago

Hi, I have a DLC project that we imported into APT and want to run JAABA on. When I import the .lbl file into JAABA using 'Import from APT project'

Reference to non-existent field 'labels'. Error in APTProject>initialize (line 246) s = apt.labels{ndx}; Error in APTProject>APTProject_OpeningFcn (line 171) handles = initialize(handles); Error in gui_mainfcn (line 220) feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:}); Error in APTProject (line 40) [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); Error in ProjectSetup>uibuttongroup1_SelectionChangedFcn (line 1070) aptStruct = APTProject('lbl_file',lbl_file); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in ProjectSetup (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ProjectSetup('uibuttongroup1_SelectionChangedFcn',get(hObject,'SelectedObject'),eventdata,guidata(get(hObject,'SelectedObject'))) Error using uiwait (line 81) Error while evaluating ButtonGroup SelectionChangedFcn.

Would appreciate any help Thanks!

mkabra commented 2 years ago

Hi,

I've pushed a fix. Can you pull the latest version from the git repo and try again?

Mayank

On Sat, Sep 4, 2021 at 10:51 PM harshk95 @.***> wrote:

External Email: Use Caution

Hi, I have a DLC project that we imported into APT and want to run JAABA on. When I import the .lbl file into JAABA using 'Import from APT project'

Reference to non-existent field 'labels'. Error in APTProject>initialize (line 246) s = apt.labels{ndx}; Error in APTProject>APTProject_OpeningFcn (line 171) handles = initialize(handles); Error in gui_mainfcn (line 220) feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:}); Error in APTProject (line 40) [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); Error in ProjectSetup>uibuttongroup1_SelectionChangedFcn (line 1070) aptStruct = APTProject('lbl_file',lbl_file); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in ProjectSetup (line 42) gui_mainfcn(gui_State, varargin{:}); Error in

matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ProjectSetup('uibuttongroup1_SelectionChangedFcn',get(hObject,'SelectedObject'),eventdata,guidata(get(hObject,'SelectedObject'))) Error using uiwait (line 81) Error while evaluating ButtonGroup SelectionChangedFcn.

Would appreciate any help Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/kristinbranson/JAABA/issues/345__;!!Eh6p8Q!WeRr90Lc9oNDbVUwoHb2_8qGb30l5EIlBzgYgw4OnZqy2VjA8DQTYZAP-8YcOcqy0tU$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AAJNKY7GRTPQML3DE5IJH5LUAJIS3ANCNFSM5DNPJ3ZQ__;!!Eh6p8Q!WeRr90Lc9oNDbVUwoHb2_8qGb30l5EIlBzgYgw4OnZqy2VjA8DQTYZAP-8YcPUsma38$ . Triage notifications on the go with GitHub Mobile for iOS https://urldefense.com/v3/__https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!Eh6p8Q!WeRr90Lc9oNDbVUwoHb2_8qGb30l5EIlBzgYgw4OnZqy2VjA8DQTYZAP-8YcVVbD2sg$ or Android https://urldefense.com/v3/__https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!Eh6p8Q!WeRr90Lc9oNDbVUwoHb2_8qGb30l5EIlBzgYgw4OnZqy2VjA8DQTYZAP-8YcIJV7Dtg$.

harshk95 commented 2 years ago

Thanks it works now!

luneo-1 commented 1 year ago

I also want to use JAABA to label and classification mice behaviour. Now, I only have a Deeplabcut results, I want to know how about JAABA

mkabra commented 1 year ago

Currently, there is no way to import Deeplabcut results into JAABA. You could try to import Deeplabcut labels into APT and train a new tracker and then import the APT trk result files into JAABA.

Mayank

On Wed, Jul 27, 2022 at 8:05 PM luneo-1 @.***> wrote:

External Email: Use Caution

I also want to use JAABA to label and classification mice behaviour. Now, I only have a Deeplabcut results, I want to know how about JAABA

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/kristinbranson/JAABA/issues/345*issuecomment-1196843489__;Iw!!Eh6p8Q!ETlz1MymBdz1c8egeIIbTrCDTr9jHqTUSjEmhrqO9Cdz6riLtJh6NgqXR_1-8nSoSAG71GMcpaKB1c9tsEEKoEqe7ik$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AAJNKY5JV4E6MHR4ZJYZ3U3VWFCKFANCNFSM5DNPJ3ZQ__;!!Eh6p8Q!ETlz1MymBdz1c8egeIIbTrCDTr9jHqTUSjEmhrqO9Cdz6riLtJh6NgqXR_1-8nSoSAG71GMcpaKB1c9tsEEK0qzd1Fg$ . You are receiving this because you commented.Message ID: @.***>