12月的一个随笔

1.计划学习c++,看b站清华视频

2.pytorch实战篇

`

import numpy as np

from skimage import io

import torchvision.transforms as transforms

data = np.random.randint(0, 255, size=300)

img = data.reshape(10,10,3)

img = io.imread(r"E:\AI\crop\1.tiff")

print(img.shape)

img_tensor = transforms.ToTensor()(img) # 转换成tensor

print(img_tensor)

`

你可能感兴趣的:(12月的一个随笔)