Closed delaroob closed 9 months ago
Hi,
You need to have at least 2 categories of behaviors, for example, 'levego' and 'background', to let the Categorizer learn something. Let me know if this solves your issue. Thanks!
Hello,
Thank you for the quick reply, I'm sure it will work. It has been augmenting training examples for 4 hours now, but I guess that is normal since I'm working with CPU. I was wondering if there was any way to transfer the training part to Colab or something?
Hi,
The step of augmenting training examples only uses CPU and RAM (memory). The reason it takes long time might be the memory is running low. Seems you are using Windows system, you probably can mount virtual memory (https://www.windowscentral.com/how-change-virtual-memory-size-windows-10) to a hard drive (like D:) that is not C:\ drive and has a lot of free space (>100GB). This will give you more virtual RAM and should help to increase the speed.
The next step is training, which can utilize GPU for acceleration. If you are working with CPU and not satisfied with the speed, you probably can further reduce the input shape from the current 32 to 16. It seems the behavior classification task is easy in your case (you only have two behavior categories), so 16 might already give you good accuracy.
The GUI does not work for Colab. To run LabGym on Colab, you need to import and run the LabGym functions one by one. We currently don't have a documentation on how to script run LabGym functions but will have that ready in near future.
By the way, I saw you currently chose 'Categorizer with both Animation Analyzer and Pattern Recognizer' for the Categorizer type. But you probably can try to choose 'Categorizer with only Pattern Recognizer' when specifying the type of the Categorizer. This will significantly increase the processing speed at augmentation, training and analyzing steps.
Okay, so I tried mounting more virtual memory to a D drive with like 200GB free storage, but it says that "the computer is fast enough and it is unlikely to provide additional benefit" (also its a portable harddrive so im not even sure if it could work), so I guess the 9GB RAM will have to do the heavy lifting:).
Anyway, I changed the input shape to 16 and chose the categorizer with only pattern recognizer as you suggested, and it has already finished the augmenting, so I hope the rest will also go well. Thank you so much for your help!
Hello everyone,
I am trying to train a behaviour classifier to recognize a specific behavior (named "levego" in the project), without Detector. However, something does not seem to work during training and I can't figure out what the problem is. I did everything according to the user guide (or at least as far as I am concerned:D), which I also documented and will attach below. I am working with Windows 10, and created a venv named labgym where I installed all the packages (see the list below).
I succesfully labeled some frames (around 100), and judging by the output the data preparation also went well, but at training, even at the very first epoch, the ETA, accuracy, and loss metrics all show as 0. As a result, the training process triggers early stopping after the 5th epoch.
I would appreciate any help (and thank you so much for the code!). Please let me know if any additional information is needed to resolve this issue.
"Below"
Package list in venv named labgym:
File structure:
Workflow with terminal outputs:
initializing
Preparing data and labeling
Included body parts and background too, selected STD 0, and started generating behaviour examples.
Did not resize the frames
...training
So the output here was quiet suspicious (ETA 0s, loss 0, accuracy 0 and stopping just after 5 epochs…)
But I wanted to try it out since at this point i had no idea what else to do with it. As of now, I am not even sure where to look.