上一页 1 2 3 4 5 6 7 8 9 10 ··· 73 下一页
摘要: 代码中有: parser.add_argument('-crop_size', help='Set the crop_size', default=[128, 128], nargs='+', type=int) 在命令行运行时,输入两个数字,以空格隔开就好 sh xxx.sh -crop_size 阅读全文
posted @ 2022-04-26 19:42 Tomorrow1126 阅读(407) 评论(0) 推荐(0) 编辑
摘要: system函数可以将字符串转化成命令在服务器上运行;其原理是每一条system函数执行时,其会创建一个子进程在系统上执行命令行,子进程的执行结果无法影响主进程; 上述原理会导致当需要执行多条命令行的时候可能得不到预期的结果; import os os.system('cd /usr/local') 阅读全文
posted @ 2022-04-26 19:23 Tomorrow1126 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-26 13:43 Tomorrow1126 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 上网查了原因可能是num_workers的数量太大了,导致共享内存不足,后来仔细看了一下发现是没读进去图像 阅读全文
posted @ 2022-04-25 16:02 Tomorrow1126 阅读(850) 评论(0) 推荐(0) 编辑
摘要: import os, sys import json from myutils import * """ input: image list file output: fake json file """ def read_size_file(filename): img_sizes = {} wi 阅读全文
posted @ 2022-04-25 10:54 Tomorrow1126 阅读(57) 评论(0) 推荐(0) 编辑
摘要: wc -l *.lst 阅读全文
posted @ 2022-04-24 18:58 Tomorrow1126 阅读(16) 评论(0) 推荐(0) 编辑
摘要: rclone copy xxx xxx 如果第一个path有换行符会导致失败 在 Python 中使用 strip() 函数从字符串中删除换行符 阅读全文
posted @ 2022-04-24 16:44 Tomorrow1126 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 在实际的视觉相关任务中,数据都存在如上图所示的长尾分布,少量类别占据了绝大多少样本,如图中Head部分,大量的类别仅有少量的样本,如图中Tail部分。解决长尾问题的方案一般分为4种: Re-sampling:主要是在训练集上实现样本平衡,如对tail中的类别样本进行过采样,或者对head类别样本进行 阅读全文
posted @ 2022-04-21 19:24 Tomorrow1126 阅读(356) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_42024067/article/details/107954595 https://blog.csdn.net/xuyankuanrong/article/details/78286265 https://blog.csdn.net/leiflyy 阅读全文
posted @ 2022-04-21 14:46 Tomorrow1126 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 作用:限幅,将input的值限制在[min, max]之间,并返回结果。out (Tensor, optional) – 输出张量,一般用不到该参数。 torch.clamp(input, min, max, out=None) 阅读全文
posted @ 2022-04-21 11:52 Tomorrow1126 阅读(513) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 73 下一页