mac vi 常用指令 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 4月 26, 2022 在默认的”指令模式”下按 i 进入编辑模式在非指令模式下按 ESC 返回指令模式在”指令模式”下输入::w 保存当前文件:q 退出编辑,如果文件为保存需要用强制模式:q! 强制退出不保存修改:wq 组合指令, 保存并退出在”指令模式”下移动:h 左j 下k 上l 右 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 留言
在windows 10上安裝mmdetection 2月 07, 2022 測試環境 cuda=11.1.0 GPU=3070 首先使用conda虛擬環境 安裝 conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch -c conda-forge 設定MSVS C++ Compiler(只能用VS2019) 添加 `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\Hostx86\x64` 到 `PATH` 安裝mmcv時可能會有問題,可以測試修改 #!/bin/bash SITE = /mnt/c/Users/thomas.jungblut/AppData/Local/Programs/Python/Python37/Lib/site-packages sed -i.bak -e 's/CONSTEXPR_EXCEPT_WIN_CUDA/const/g' " ${ SITE } /torch/include/torch/csrc/jit/api/module.h" sed -i.bak -e 's/return \*(this->value)/return \*((type\*)this->value)/g' " ${ SITE } /torch/include/pybind11/cast.h" sed -i.bak '/static constexpr Symbol Kind/d' " ${ SITE } /torch/include/torch/csrc/jit/ir/ir.h" 修改SITE為自己的環境的路徑,這裡可利用linux subsystems執行 /mnt/c對應到本機C: 安裝mmcv git clone https://github.com/open-mmlab/mmcv.git 注意:要使用conda powershell才可以執行 cd mmcv pip install -r requirements.txt $env:M... 閱讀完整內容
Java 2d array sort(排序) 9月 13, 2022 Arrays. sort (pairs , (a , b) -> { if (a[ 0 ] == b[ 0 ]) return a[ 1 ] - b[ 1 ] ; // if same strength, row aces else return a[ 0 ] - b[ 0 ] ; // normal, strength aces }) ; 閱讀完整內容
Spring Boot +Jpa 报 Specified key was too long; max key length is 1000 bytes 5月 17, 2022 原因 Spring boot 2.x默认使用的mysql 引擎为myisam,但是Spring boot2.0之前使用的是InnoDB,Spring boot2.0之后默认使用的是myisam引擎。然后在新建表的时候。就出这个错了 解决 在配置文件中加如下配置: spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect 閱讀完整內容
留言
張貼留言