Style Transfer using Pytorch (Part 1)
Goal¶
This post aims to follow the tutorial NEURAL TRANSFER USING PYTORCH step-by-step. Part 1 is about image loading. The following images for content and style are loaded as PyTorch tensor.
Reference
This post aims to follow the tutorial NEURAL TRANSFER USING PYTORCH step-by-step. Part 1 is about image loading. The following images for content and style are loaded as PyTorch tensor.
Reference
This post aims to introduce basic PyTorch operations e.g., addition, multiplication,
import numpy as np
import pandas as pd
import torch
t_x1 = torch.Tensor([[1, 2, 3],
[4, 5, 6],
[7, 8, 9]])
t_x2 = torch.Tensor([[9, 8, 7],
[6, 5, 4],
[3, 2, 1]])
print(t_x1)
print(t_x2)
t_x1 + t_x2