I am try this project. I am like idea and good description. But I am can not do anything valuable. In many places here one pattern used: load all data into memory, calculate all results, save all results. All. Not pieces in cycle. It has advantage of clear and simple code ... but I am try train "in the wild" and can not do it even with 12 seconds video! My computer have 24GB RAM. I am create docker image, run command and see as memory consumption raised to 80-90% and swap, swap, swap... My main SSD has usage 90% and command progress almost freeze. At least split_video.py, preprocess.py and what most unfortunate train.py has this flaw.
P.S. How many RAM you have? At first I am rewrite split_video.py try 7 minutes video and preprocess.py drop down to swap at 23% of progress. At second try I am use 12 seconds video, preprocess.py OK but train.py drop down to swap even before any progress bar appeared.
I am try this project. I am like idea and good description. But I am can not do anything valuable. In many places here one pattern used: load all data into memory, calculate all results, save all results. All. Not pieces in cycle. It has advantage of clear and simple code ... but I am try train "in the wild" and can not do it even with 12 seconds video! My computer have 24GB RAM. I am create docker image, run command and see as memory consumption raised to 80-90% and swap, swap, swap... My main SSD has usage 90% and command progress almost freeze. At least split_video.py, preprocess.py and what most unfortunate train.py has this flaw.
P.S. How many RAM you have? At first I am rewrite split_video.py try 7 minutes video and preprocess.py drop down to swap at 23% of progress. At second try I am use 12 seconds video, preprocess.py OK but train.py drop down to swap even before any progress bar appeared.