每周 Bugs 10.9-10.15

Question: make: Nothing to be done for `all’

Solution:这句提示是说明你已经编译好了,而且没有对代码进行任何改动。若想重新编译,可以先删除以前编译产生的目标文件,然后使用 make clean, 然后再使用 make

Question: Linux 下统计当前文件夹下文件的个数:

使用如下命令:ls -l |grep "^-"|wc -l

Question: Cannot load image
Cannot load image 
/home/ubuntu/fddb/JPEGImages/2002_08_07_big_img_1348.jpg
STB Reason: can't fopen

Solution: 使用 OPENCV=1 重新进行编译即可。

Question:YOLO v2:
 Cannot load image /home/ubuntu/fddb/JPEGImages/2002_08_07_big_img_1348.jpg
Solution: White space characters include carriage returns, line feeds, spaces, and tabs.

CR(Carriage Returns):回车,标记为\r; LF(Line Feeds):换行,标记为\n; Spaces:空格; Tabs:制表符。
在DOS及Windows下:CR LF(\r\n)回车换行表示切换至新的一行。Linux及Unix下:LF(\n)换行表示切换至新的一行。Mac OS下:CR(\r)回车符表示切换至下一行。跨系统时由于系统间差异导致显示问题:Windows打开Linux下的文件时,所有行合并为一行;Linux打开Windows下的文件后,出现很多^M符号。

Linux下删除^M的方法:cat test.txt | tr -d "\r" > newetest.txt
Linux也有实现与Windows系统文件格式互换的命令:unix2dos, dos2unix
unix2dos 是把linux文件格式转换成windows文件格式
dos2unix 是把windows格式转换成linux文件格式

在Nodepad++ 可以查看这种不可见字符:视图 -> 显示字符 —> 显示所有字符

Question: Linux 每日一技
  • 在/pattern → 搜索 pattern 的字符串(搜索出多个匹配,可按n键到下一个)
  • normal 模式下 :(num) 可以直接跳转到 num 行.
  • nm: 列出.o .a .so中的符号信息,包括诸如符号的值,符号类型及符号名称等。所谓符号,通常指定义出的函数,全局变量等等。
  • grep: grep(global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。grep -r cannot 表示递归查询 cannot 这个字符
  • cat(简单查看)、more(空格 下翻页 b 上翻页)、less(page up/page down 翻页)
  • tail(查看最后几行) head(查看前几行):例如 tail -n 50 detect_utils.js
Question:关于算法分享的要点:
  • 论文标题、作者
  • 主要研究内容(创新点)
  • 具体的实现细节
  • 项目的对接点(fine-tune,参数的调整)
  • banchmark[测试的数据集信息(图片,视频信息),衡量标准(Acc, AP, Speed)]
  • 参考代码(github地址)
Question: 关于项目的结构组织
  • data(download.sh、annotions、images、videos)下载数据集的脚本和相关数据
  • src(data_inputs、models、utils/helper.py) 主要的代码文件
  • checkpoint 检出文件
  • tests 测试文件夹,用于测试
  • result 用于存放结果
  • LICENSE 版权信息
  • requirments.txt 第三方需求包
  • .git git相关文件
  • README[简介、更新说明、安装、测试、预训练模型、性能(速度、准确度、数据集信息[图片大小,帧率])、参考文档]
    参考资料:TensorFlow初学者指南:如何为机器学习项目创建合适的文件架构
Question: CVPR presentation formats

In CVPR 2016 we will have 3 presentation formats for accepted papers: 2 types of oral presentations (orals and spotlights) and poster presentations.
- ORALS: equivalent to the traditional CVPR orals. CVPR 2016 will have a similar percentage of orals as in previous CVPRs. Each oral presentation will be 12 minutes long.
- SPOTLIGHTS: these are new to CVPR’16. Each spotlight presenter will have a 4 minute oral presentation to highlight the main contributions and novelties of their paper and to present its main results.
- POSTERS: the rest of the accepted papers are poster presentations.
In addition, all oral and spotlight papers will be presented at the following poster session.Our rationale behind adding SPOTLIGHT presentations to CVPR’16 was to increase the number of authors who have the opportunity to present their work to a large audience and therefore gain maximum exposure and visibility. We believe that this new presentation format (oral/spotlight/poster) will make CVPR’16 a more exciting conference.Authors will receive further practical instructions on how to prepare their spotlight presentations within the next few weeks.

Question:

如何获取 cuda 版本,使用命令:nvcc —version

Question: C++ 获取文件大小:
#include <sys/stat.h>  
int file_size2(char* filename)  
{  
    struct stat statbuf;                 
    stat(filename,&statbuf);  
    int size=statbuf.st_size;   
    return size;  
}  
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值