- 博客(149)
- 收藏
- 关注
原创 Ubuntu 22.04 安装docker踩坑
https://zhuanlan.zhihu.com/p/689125170
2025-03-25 11:04:08
102
原创 ollama安装
curl -fsSL https://ollama.com/install.sh | sh
2024-10-31 15:19:23
346
原创 dify连接xinference时拒绝连接
dify是docker启动,xinference-local --host 0.0.0.0 --port 9997。原因:dify是docker启动,不能直接配置 0.0.0.0或者127.0.0.1。配置dify连接时,xinference拒绝连接。
2024-10-24 14:30:29
1370
1
原创 nvidia-docker
Installing the NVIDIA Container Toolkit — NVIDIA Container Toolkit 1.16.0 documentation
2024-08-31 11:39:44
169
1
原创 Linux 动态库的默认搜索路径
当程序执行时需要某动态库, 并且该动态库还未加载到内存中,则系统会自动到这两个默认搜索路径中去查找相应的动态库文件,然后加载该文件到内存中,这样程序就可以使用该动态库中的函数,以及该动态库的其它资源了。在 Linux 中,动态库的搜索路径除了默认的搜索路径外,还可以通过以下三种方法来指定。当指定多个动态库搜索路径时,路径之间用冒号 " : " 分隔。方法一:在配置文件 /etc/ld.so.conf 中指定动态库搜索路径。方法三:在编译目标代码时指定该程序的动态库搜索路径。搜索动态库的先后顺序。
2024-04-30 20:36:34
412
原创 minconda下载链接
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
2024-03-20 19:21:49
791
原创 stable diffusion webui ubuntu 安装和教程
服务器无法连接github服务器,先在本地下载git clone https://github.com/Stability-AI/generative-models.git,然后放入stable-diffusion-webui/repositories/generative-models/文件中。修改torch和torchvision版本。
2024-03-20 17:57:38
1422
原创 快速安装torch的方法
记住要加上:-f https://download.pytorch.org/whl/torch_stable.html。
2024-03-20 16:51:13
370
原创 hive表
hive是基于Hadoop的一个数据仓库工具,用来进行数据提取、转化、加载,这是一种可以存储、查询和分析存储在Hadoop中的大规模数据的机制。hive数据仓库工具能将结构化的数据文件映射为一张数据库表,并提供SQL查询功能,能将SQL语句转变成MapReduce任务来执行。Hive的优点是学习成本低,可以通过类似SQL语句实现快速MapReduce统计,使MapReduce变得更加简单,而不必开发专门的MapReduce应用程序。hive十分适合对数据仓库进行统计分析。
2024-03-18 20:33:54
265
原创 ocr关键信心提取数据集
doc/doc_ch/dataset/kie_datasets.md · PaddlePaddle/PaddleOCR - Gitee.com
2024-03-09 09:40:01
385
原创 git clone 下载慢
pip install git+https://ghproxy.com/https://github.com/openai/CLIP.git
2023-08-23 17:26:05
167
原创 unet pytorch
2.多机多卡版本:使用torch.utils.data.distributed.DistributedSampler和torch.distributed.init_process_group来实现多机多卡的分布式训练,确保在每个进程中都有不同的数据划分和完整的通信。1.单机多卡版本:代码中的DistributedDataParallel (DDP) 部分对应单机多卡的分布式训练方式。
2023-08-18 16:33:20
629
原创 paddleocr install
python -m pip install paddlepaddle-gpu==2.4.2 -i https://pypi.tuna.tsinghua.edu.cn/simple pip install "paddleocr>=2.0.1"pip install "protobuf==3.20.0"pip install "onnx==1.12.0"pip install -r requirement.txt
2023-04-28 18:01:40
315
原创 使用国内源conda install 或者create 新env cuda cudnn
conda create -n paddle python=3.7 cudatoolkit=11.3 cudnn -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/
2023-04-28 14:20:25
338
原创 ssh 免密登陆
(1).第一步:在跳板机,通过ssh-keygen -t rsa,生成公钥和私钥:id_rsa.pub和id_rsa,该文件保存在/home/kunshanhuang/.ssh/里面。(1).第一步:在本地,通过ssh-keygen -t rsa,生成公钥和私钥:id_rsa.pub和id_rsa,该文件保存在/home/kunshanhuang/.ssh/里面。本地拷贝到服务器:scp tmp kunshanhuang:/home/kunshanhuag/本地:10.5.74.234。
2022-11-07 16:04:18
1006
原创 把项目设置为当前系统workspace
export PYTHONPATH=$PYTHONPATH:/home/aistudio/work/PaddleGAN
2022-04-25 10:51:52
170
原创 Ubuntu下配置VS Code C++ 环境
Ubuntu下配置VS Code C++ 环境_Amelie_xiao的博客-CSDN博客_ubuntu vscode配置c++环境
2022-04-12 15:28:10
1451
原创 -bash: ./linux_run_10.5.136.135.sh: Permission denied
原因:这个脚本没有执行权限解决方法:sudo chmod +x run_experiments.sh然后在运行就可以解决了
2022-04-08 10:42:19
336
原创 conda 安装cuda
conda config --add channels conda-forgeconda install cudatoolkit=11.1
2022-03-31 13:40:09
3328
原创 C++规避野指针
1) 指针变量如果暂时不需要赋值,一定要初始化为NULL,因为任何指针变量刚被创建时不会自动成为NULL指针,它的缺省值是随机的。2) 当指针指向的内存被释放掉时,要将指针的值设置为 NULL,因为 free() 只是释放掉了内存,并为改变指针的值。...
2022-03-03 11:02:38
590
原创 c++ dynamic_cast 强制类型转化
dynamic_cast支持运行时识别指针和引用,对于基类转化为派生类,进行安全检测,因为基类指针转化为派生类是不安全的,必须使用dynamic_cast不然会出现安全问题,派生类转化为基类本生是安全的所以不需要使用dynamic_cast,dynamic_cast本身需要开销。...
2022-03-02 10:37:02
357
原创 anaconda 配置环境copy别的pc使用要修改一些配置文件
不修改出现就会找不到conda解决办法:1)vim编辑 ~/.bashrc,加入/data5/kunshanhuang/anaconda3/bin的路径到环境变量,source ~/.bashrc2)用vim编辑,修改以下文件的首行,改成现在的路径。文件在/data5/kunshanhuang/anaconda3的bin文件夹里面./bin/conda./bin/activate./bin/deactivate./bin/pip./bin/pip3/data5/ku.
2021-12-10 16:04:14
1427
原创 TNN 内存池管理
typedef enum {// defaultSHARE_MEMORY_MODE_DEFAULT = 0,//默认是不同模型创造不同内存池// same thread tnn instance share blob memorySHARE_MEMORY_MODE_SHARE_ONE_THREAD = 1,//默认是不同模型创造相同内存池// set blob memory from external, different thread share blob memory need
2021-12-06 14:18:43
373
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人