自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Jamie的技术博客

Image Caption

  • 博客(31)
  • 收藏
  • 关注

原创 InternLM第6次课作业

作业教程:https://github.com/InternLM/tutorial/blob/main/opencompass/opencompass_tutorial.md。git clone 慢,在原命令基础上加上地址 https://mirror.ghproxy.com/出来的结果有些为空,可能是OOM导致的,可以调小batch size。

2024-01-23 20:22:43 391

原创 InternLM第6次课笔记

基座模型:加入instrcut对话模型:直接对话。

2024-01-23 17:26:53 456

原创 InternLM第5次课作业

https://github.com/InternLM/tutorial/blob/main/lmdeploy/lmdeploy.md

2024-01-16 14:34:39 474

原创 InternLM第5次课笔记

https://github.com/InternLM/tutorial/blob/main/lmdeploy/lmdeploy.md

2024-01-16 13:59:13 465

原创 InternLM第4次课作业

报错:FileNotFoundError: [Errno 2] No such file or directory: ‘doc/imgs/user.png’Follow 以下步骤:https://github.com/InternLM/tutorial/blob/main/xtuner/self.md。需要切换到~/personal_assistant/code/InternLM路径再启动streamlit。训练1个epoch基本可以达到要求。

2024-01-13 23:22:55 392

原创 InternLM第4次课笔记

XTuner中微调的技术:

2024-01-13 15:55:46 460

原创 InternLM第3次课作业

参考github教程:https://github.com/InternLM/tutorial/tree/main/langchain。参考:https://blog.csdn.net/weixin_40415591/article/details/121661857。ssh命令中传入windows的路径可能有些问题,直接在密钥所在的目录打开cmd再运行。windows端口映射过程命令。中,提示找不到id_rsa。把其他用户的权限都删掉。

2024-01-13 00:56:27 437

原创 InternLM第3节课笔记

核心组成模块Chains:组件组合实现端到端应用。

2024-01-12 16:49:14 482

原创 InternLM第2节课作业

基础作业。

2024-01-07 12:32:26 407

原创 InternLM第2节课笔记

InternLM-7B和InternLM-20BLagent:智能体(agent)框架浦语·灵笔:InternLM-Xcomposer-7B 视觉-语言大模型。

2024-01-07 11:39:03 463

原创 InternLM第1节课笔记

书生·万卷1.0,OpenDataLab2TB文本、图像-文本、视频数据。精细化处理(过滤+清晰),价值观对齐。

2024-01-04 14:36:50 453

原创 vscode无法跳转定义、调试模式不输出

搜索Python: Select Interpreter,点击并选择正确的版本。系统中有多个python,没有选择正确的python(因为安装了conda)近日我的vscode突然出现了无法跳转定义、调试模式不输出的问题。ctrl + shift + p 打开命令面板。

2023-03-20 16:34:14 509

原创 ubuntu apt 下载所有依赖包

服务器开发通常不能联网,我们需要利用一个能上网的服务器下载依赖包apt-get download $(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances --no-pre-depends 包名 |grep -v "^ ")然后dpkg -i *.deb即可完成安装参考:how-to-download-all-depe

2022-05-25 13:43:56 4089

原创 ONNX固定batch size

import onnxdef change_input_dim(model): sym_batch_dim = "batch" actual_batch_dim = 4 graph = model.graph nodes = list(graph.input) + list(graph.value_info) + list(graph.output) for node in nodes: if not len(node.type.tensor_ty

2022-02-22 16:27:46 1792 2

原创 ONNX修改节点的值

#新节点conv1_node = onnx.helper.make_node( name="Conv_40", # Name is optional. op_type="Conv", # Must follow the order of input and output definitions. # https://github.com/onnx/onnx/blob/rel-1.9.0/docs/Operators.md#inputs-2---3 inputs=[

2022-01-28 16:53:11 4187

原创 PyTorch转onnx转TRT中不支持的操作

PyTorch训练的模型,在转为ONNX再转为TRT模型时,有一些操作不支持假设输入是AvgPooling以后的特征torch.nn.functional.normalize会引入Expand操作解决方案:F.normalize(features, p=2, dim=1)替换为features.div(features.norm(p=2, dim=1, keepdim=True))size()会引入Gather操作解决方案:onnxsim转化features.view(feat

2021-06-09 16:14:51 1238

原创 Error response from daemon: could not select device driver ““ with capabilities: [[gpu]]

Nvidia Docker安装后,使用镜像创建容器时出错,错误提示:Error response from daemon: could not select device driver "" with capabilities: [[gpu]]需要先把nvidia-container-runtime添加到apt里面sudo curl -s -L https://nvidia.github.io/nvidia-container-runtime/gpgkey | \ sudo apt-key ad

2021-03-02 14:47:06 330

原创 论文笔记:Hierarchy Parsing for Image Captioning

基于层次分析的图像描述作者:蔡文杰单位:华南理工大学研究方向:计算机视觉论文链接:Hierarchy Parsing for Image CaptioningIntroduction目前大多数的image captioning模型采用的都是encoder-decoder的框架。本文在encoder的部分加入了层次分析(HIerarchy Parsing,HIP)结构。HIP首先把图片...

2020-03-04 17:50:59 1048

原创 自定义shell powerline 状态栏 显示时间

因为服务器没有管理员权限,装不了zsh,只能在conda里面装一个powerline用注意,conda里面不要使用conda安装,要使用pip安装,这样所有环境下都可以享用powerline安装和基本配置教程:Powerline:给 Vim 和 Bash 提供更棒的状态行和提示信息 有时候想要在命令行输出时间,好让自己知道这个命令是什么时候跑的,搜了一下powerline show tim...

2019-12-23 20:11:42 782

原创 caffe ImportError: libhdf5_hl.so.100: cannot open shared object file: No such file or directory

很奇怪,编译的时候不报错,但是Import的时候报错了ldd 看caffe的so,发现hdf5的so not found,但locate却发现是有这个so的看了路径发现路径不在LD_LIBRARY_PATH里面只需要把这个路径加进去然后sudo ldconfig就可以了...

2019-10-25 22:47:57 1483

原创 ubuntu 已有gcc 5.5 的情况下 安装5.4

直接使用apt-get install gcc-5是不行的,因为已经安装了5.5通过apt-cache policy 是可以查到5.4的那么我们直接尝试用sudo apt install gcc-5=5.4.0-6ubuntu1~16.04.10安装,但是报如下错误:这个时候就把所有依赖都加到install后面:sudo apt build-dep gcc-5=5.4.0-6ubun...

2019-10-25 21:20:53 4507

原创 理解0/1背包问题

背包问题想了好几天都没想明白,今天根据代码看了一下dp table,终于想明白了。给自己记录一下,免得后面忘记。先贴代码:# A Dynamic Programming based Python Program for 0-1 Knapsack problem # Returns the maximum value that can be put in a knapsack of capac...

2019-09-17 11:17:19 222

原创 pip版本问题:pip2指向python3

无论重新安装 apt-get install python-pip或者修改pip的第一行也没用直接python2 -m pip install xxx 就好了

2019-04-01 21:24:00 3887 1

原创 python+opencv 添加包边文字

cv2.putText(img, label, (x0, y1-5), font, 0.6, (255, 255, 255), 2, cv2.LINE_AA) cv2.putText(img, label, (x0, y1-5), font, 0.6, (0, 0, 0), 0, cv2.LINE_AA)

2019-03-13 11:01:13 2366

原创 远程桌面+连接ubuntu(linux)

server端/usr/lib/vino/vino-server 开启vnc服务器参考:https://askubuntu.com/questions/4474/enable-remote-vnc-from-the-commandlineclient端使用Remmina或者Remote Desktop进行连接,直接输入server的ip即可...

2019-03-05 13:20:02 2264 1

原创 论文笔记:Knowing When to Look: Adaptive Attention via A Visual Sentinel for Image Captioning

论文链接:Knowing When to Look: Adaptive Attention via A Visual Sentinel for Image CaptioningIntroduction目前大多数的基于attention机制的image captioning模型采用的都是encoder-decoder的框架。然而在decode的时候,decoder应该对不同的词有不同...

2018-03-03 15:49:13 9260 3

原创 论文笔记:Contrastive Learning for Image Captioning

原文链接:Contrastive Learning for Image CaptioningIntroduction本文的提出的Contrastive Learning (CL) 主要是为了解决Image Caption任务中生成的Caption缺少Distinctiveness的问题。这里的Distinctiveness可以理解为独特性,指的是对于不同的图片,其caption...

2018-01-31 22:45:05 4908 1

原创 论文笔记:Self-critical Sequence Training for Image Captioning

论文链接:Self-critical Sequence Training for Image Captioning引言现在image caption主要存在的问题有:exposure bias:模型训练的时候用的是叫“Teacher-Forcing”的方式:输入RNN的上一时刻的单词是来自训练集的ground-truth单词。而在测试的时候依赖的是自己生成的单词,一旦生成得不...

2017-11-29 15:11:44 13448 2

原创 论文笔记:Bottom-Up and Top-Down Attention for Image Captioning and Visual Question Answering

论文链接:Bottom-Up and Top-Down Attention for Image Captioning and Visual Question AnsweringBottom-Up Attention Model本文的bottom up attention 模型在后面的image caption部分和VQA部分都会被用到。这里用的是object detection领域的Faster R

2017-11-03 15:26:16 17468 6

原创 论文笔记:Image Captioning with Semantic Attention

论文链接:Image Captioning with Semantic Attention框架与普通的image Caption框架相比,论文从图片中提取了visual attribute(实际上就是一些单词),并把这些attribute结合进了input跟output attention model里面。整个框架的公式如下:x0=ϕ0(v)=Wx,vvx0=ϕ0(v)...

2017-10-17 15:23:58 4878 3

原创 微软2017年预科生计划在线编程笔试 题目1 : Legendary Items

题目1 :Legendary Items所有题目在此:https://hihocoder.com/contest/mstest2017march/problems答案:https://github.com/hiho-coder/msft-2017-online-test-solution/blob/master/README.md这道题关键在于数学期望值的计算。如果使用题目给定的公式...

2017-03-31 22:20:02 900

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除