Java 句號(.) split 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 9月 09, 2022 在java string 中如火想要正確的split 句號(.)必須要使用 String.split("\\.")example:"leetcode.com".split("\\."); 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 留言
MMDetection中的操作 4月 04, 2022 1. 训练 python tools/train.py [configs_file] --gpus 1 --work_dir work_dirs 2. 测试 (1)Output pkl file This command will output “results_name.pkl” file. python tools/test.py [configs_file] [pth] --out results_name.pkl --eval bbox python tools/test.py configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth --out=work_dirs/result.pkl --eval bbox (2) Output json result file This command will output “results.bbox.json” file. python tools/test.py [configs_file] [pth] --eval-options "jsonfile_prefix=results_name" --eval bbox python tools/test.py configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth --eval bbox --eval-options "jsonfile_prefix=results" 3. 输出coco metric python tools/analysis_tools/eval_metric.py [configs_file] [pkl_file] --eval bbox python tools/analysis_tools/eval_metric.py configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py work_dirs/faster_rcn... 閱讀完整內容
在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... 閱讀完整內容
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 閱讀完整內容
留言
張貼留言