How do I load pretrained weight as filter that process between layers

I now have built convolutional layers and max-pooling layers. I only want to do forward propagation, so I decided to use the weights which already been trained as filters.

How am I able to load the weights into my model as the shape to be (batch_size, height, width, channel).

There are weights from other models such as YOLOV3.weights

I just need to load them and apply them into my layers

How do I do that?