随便折腾
cv阿文
联系邮箱:[email protected]
展开
-
RuntimeError: CUDA error: device-side assert triggered
RuntimeError: CUDA error: device-side assert triggered /pytorch/aten/src/THCUNN/BCECriterion.cu:57: void bce_updateOutput_no_reduce_functor<Dtype, Acctype>::operator()(const Dtype *, const Dty...原创 2019-11-27 18:57:31 · 2645 阅读 · 4 评论 -
一些pytorch相关收集
对于四维度的数据如何通过卷积网络进行处理 #full_data: batchsize x num x channel x high x wide full_data = [self.enc_module(data.squeeze(1)) for data in full_data.chunk(full_data.size(1), dim=1)] full_data = torch.stack(...原创 2019-11-23 13:55:20 · 146 阅读 · 0 评论 -
ssh连接服务器
客户端是linux或者windows连接服务器方法: 1.在服务器端安装openssh-server sudo apt-get install openssh-server 2. 启动ssh ssh restart 如果没有设置环境变量 /etc/init.d/ssh restart 3.连接服务器 ssh -l username ip 例子: ssh -l a...原创 2019-10-08 17:16:29 · 388 阅读 · 0 评论 -
机器视觉与模式识别论文术语及常用单词(持续更新)
circumvent :规避,解决 discriminative :判别 re-detection :重新检测 video surveillance :视频监控 vehicle navigation :车辆导航 humanmachine interaction :人机交互 tracking scenario :追踪场景 metric evaluation ability:度...原创 2018-11-08 15:35:57 · 969 阅读 · 0 评论 -
读入一个字符串str,输出字符串str中的连续最长的数字串
#coding:utf-8 ''' auther:Jacob 读入一个字符串str,输出字符串str中的连续最长的数字串 输入描述: 测试输入包含1个测试用例,一个字符串str,长度不超过255。 输出描述: 在一行内输出str中里连续最长的数字串。 输入例子: abcd12345ed125ss123456789 输出例子: 123456789 ''' def FindMaxStr(inpu...原创 2017-11-01 12:20:25 · 864 阅读 · 0 评论 -
Leetcode 725:Split Linked List in Parts
Given a (singly) linked list with head node root, write a function to split the linked list into k consecutive linked list "parts". The length of each part should be as equal as possible: no two part...原创 2018-01-05 11:19:22 · 284 阅读 · 0 评论 -
三元组,二元组,排列组合
""" 算法题:二元组 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and ...原创 2017-12-11 23:32:04 · 2059 阅读 · 0 评论