![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python笔记
Darren T
这个作者很懒,什么都没留下…
展开
-
tensor_to_numpy
def tensor_to_np(tensor): tensor = tensor+1.0 img = tensor.mul(127.5).byte() img = img.cpu().numpy().squeeze(0).transpose((1, 2, 0)) img = np.clip(img, 0,255) return img原创 2021-01-04 21:20:47 · 616 阅读 · 0 评论 -
gitlab入门
创建分支git clone git checkout -b xxxx 创建并切换分支 git push origin xxx clone 分支git branch -r -a 显示所有分支 git checkout origin/xxxx 切换分支 git pull origin xxx原创 2021-01-03 14:40:00 · 75 阅读 · 0 评论 -
python pip安装 临时源修改
pipinstall -ihttps://pypi.doubanio.com/simple/ --trusted-hostpypi.doubanio.comxxx原创 2021-01-03 14:11:36 · 233 阅读 · 0 评论