DeepLabCut-live-GUI icon indicating copy to clipboard operation
DeepLabCut-live-GUI copied to clipboard

blank "Processor_args" causes gui error

Open XieLuanLab opened this issue 9 months ago • 1 comments

Hi,

We meet some problems when set the processor.

When we click "set proc" button in the GUI, the code in lines 1006-1010 fails to execute because self.cfg['processor_args'] is None, as indicated in the variable panel. This issue is from the config file, where "processor_arg" was blank (as shown in top vscod panel). After commenting out lines 1006-1010, the error no longer appears. Is it acceptable to leave these lines commented, or should we initialize processor_args in the JSON file from the start?

Thank you!

error

XieLuanLab avatar May 02 '24 03:05 XieLuanLab

Ok so it looks like because this is the first time your using that processor so the data is not yet saved into the config files. The GUI is set up so that you shouldn't have to manually change the data in the config file. Could you try hitting "edit processor settings" and then just saving them, then hitting "Set Proc" and let me know if this works.

"Is it acceptable to leave these lines commented, or should we initialize processor_args in the JSON file from the start?" This would mean that you cannot feed in arguments to the processor file. You will want to be able to do this if you want to do some closed loop processes such as writing to a teensy or sync step for example.

tomsains avatar May 02 '24 13:05 tomsains