上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: curl 的作用是用来请求 Web 服务器,即客户端 (client) 的 URL 工具。 IP地址查询:curl cip.cc 场景一:AWS云服务器 场景二:实验室的机器 参考 AWS创建虚拟机并连接(EC2) curl指令用法 教育网是什么 阅读全文
posted @ 2021-01-24 23:11 梦一场6688 阅读(199) 评论(0) 推荐(0)
摘要: 版本查看 # 查看PyTorch的版本 import torch print(torch.__version__) # 查看torchvision版本 import torchvision print(torchvision.__verison__) # 不进入python环境 python -c 阅读全文
posted @ 2020-12-25 10:36 梦一场6688 阅读(435) 评论(0) 推荐(0)
摘要: 我们在学习/科研过程中,时常要参(bai)考(piao)别人的开源代码。很多深度学习的代码是基于PyTorch的,那我们就来看一下代码的组织格式吧。 正如一个人有两条腿走路,CV领域也有模型和数据两条腿。 ├── dataset # 数据集相关文件夹 ├── model # 模型相关文件夹 │ ├─ 阅读全文
posted @ 2020-09-30 14:57 梦一场6688 阅读(480) 评论(0) 推荐(0)
摘要: 1. 查看PyTorch版本 import torch print(torch.__version__) 2. 模型参数量 model = FPN() num_params = sum(p.numel() for p in model.parameters()) print("num of para 阅读全文
posted @ 2020-09-29 09:39 梦一场6688 阅读(384) 评论(0) 推荐(0)
摘要: argparse 命令行参数 Code Snippet 1 import argparse if __name__ == "__main__": # parse argument parser = argparse.ArgumentParser() parser.add_argument("dept 阅读全文
posted @ 2020-09-20 13:11 梦一场6688 阅读(153) 评论(0) 推荐(0)
摘要: PyTorch官方教程:https://pytorch.org/tutorials/recipes/recipes/tensorboard_with_pytorch.html TensorBoard vs TensorboardX: https://poe.com/s/wDImi8HWK3EdbD7 阅读全文
posted @ 2020-09-14 22:44 梦一场6688 阅读(837) 评论(0) 推荐(0)
摘要: range函数 range(start, stop[, step]) [start, stop) 区间左闭右开,同切片操作 >>> for i in range(5): ... print(i) >>> 1 2 3 4 5 字典的元素个数 len(dict) 返回字典中的元素(键值对)个数 Pyth 阅读全文
posted @ 2020-09-05 11:18 梦一场6688 阅读(189) 评论(0) 推荐(0)
摘要: 前言:由于科研或者学习的需要,我们经常会用到数据集,而很多时候这些数据集是保存在Google Drive里面的,所以有必要了解如何下载Google Drive中的文件。 方法一:直接下载 所需工具:高速虚拟专用网络(V.P.N.),推荐lantern 方法特点:此方法简单;如有所需工具,下载十分方便 阅读全文
posted @ 2020-06-17 15:21 梦一场6688 阅读(4385) 评论(0) 推荐(0)
摘要: resize 相机内参fx fy cx cy都要乘尺度因子k crop 首先图像crop不改变焦距fx fy,但是相机主点cx cy会改变 Doc Link Code Link 我们可以看到,如果从图像左上角crop图像的话,内参主点是不会发生变化的,因为图像坐标系的原点在左上角。 阅读全文
posted @ 2020-06-16 21:57 梦一场6688 阅读(4098) 评论(0) 推荐(0)
摘要: C语言文件操作用到的函数:fopen fgets fclose 阅读全文
posted @ 2020-04-13 19:22 梦一场6688 阅读(190) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 下一页