Ahh I see, these are some resources that should help you.
The original Neural Style Transfer paper should help you understand the loss functions involved: https://arxiv.org/abs/1508.06576
The paper introducing Real-Time Style Transfer is basically the algorithm used here: https://arxiv.org/abs/1603.08155