Feeding YOLOv4 image data into LSTM layer?
You can save the extracted features coming out of YOLOv4 and save it to pickle file and use them for later.
You can also find related information in this project made by Jason Brownlee
https://machinelearningmastery.com/develop-a-deep-learning-caption-generation-model-in-python/