BEVFuison測試全過程記錄

cuda版本10.1

pytorch:
根據cuda版本選擇pytorch版本:

1. 創建conda虛擬環境:
conda create -y --name mmcv python=3.8
conda activate mmcv
2. 安裝依賴庫:

pytorch:

conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=10.1 -c pytorch

mmcv:

pip install -U openmim
mim install mmcv-full==1.4.0

mmdet:

mim install mmdet==2.20.0

mpi4py:

pip install mpi4py==3.0.3

pillow:

pip install pillow==8.4.0

tqdm:

pip install tqdm

torchpack:

pip install torchpack

nuscenes-devkit:

pip install nuscenes-devkit

安裝Open MPI 4.0.4

  1. 官網下載openmpi-4.0.4.tar.gz
  2. 解壓openmpi-4.0.4.tar.gz
cd openmpi-4.0.4
./configure --prefix=/usr/local CC=gcc CXX=g++ FC=gfortran
sudo make all install
  1. 查看是否安裝成功
which mpirun
  1. 如果顯示路徑,如:/usr/local/bin/mpirun,則說明安裝成功。
3. 安裝BEVFusion
cd ../bevfusion
python setup.py develop

報錯
nvcc fatal : Unsupported gpu architecture ‘compute_80’
ninja: build stopped: subcommand failed.
原因
我的顯卡是RTX2060 算力是7.5,故不支持compute_80(算力8.0), compute_86(算力8.6)
解決辦法
注釋setup.py中的第24,25行,即:
#“-gencode=arch=compute_80,code=sm_80”,
#“-gencode=arch=compute_86,code=sm_86”,

重新執行:

python setup.py develop

Installed /home/zhkai/BEV/bevfusion
Processing dependencies for mmdet3d==0.0.0
Finished processing dependencies for mmdet3d==0.0.0

安裝成功!

4.數據準備

參考:NuScenes Dataset for 3D Object Detection

cd ../mmdetection3d
python tools/create_data.py nuscenes --root-path ./data/nuscenes --out-dir ./data/nuscenes --extra-tag nuscenes

報錯

ImportError: libcudart.so.10.2: cannot open shared object file: No such file or directory

原因:mmcv1.6.2版本與cuda10.1不匹配

解決辦法:重裝mmcv

mim install mmcv-full==1.6.0

重新執行:

python tools/create_data.py nuscenes --root-path ./data/nuscenes --out-dir ./data/nuscenes --extra-tag nuscenes

報錯

======
Loading NuScenes tables for version v1.0-trainval...
23 category,
8 attribute,
4 visibility,
64386 instance,
12 sensor,
10200 calibrated_sensor,
2631083 ego_pose,
68 log,
850 scene,
34149 sample,
2631083 sample_data,
1166187 sample_annotation,
4 map,
Done loading in 37.483 seconds.
======
Reverse indexing ...
Done reverse indexing in 8.1 seconds.
======
total scene num: 850
exist scene num: 850
train scene: 700, val scene: 150
[>>>>                     ] 6743/34149, 14.6 task/s, elapsed: 461s, ETA:  1875sTraceback (most recent call last):File "tools/create_data.py", line 250, in <module>nuscenes_data_prep(File "tools/create_data.py", line 74, in nuscenes_data_prepnuscenes_converter.create_nuscenes_infos(
...
FileNotFoundError: file "./data/nuscenes/samples/LIDAR_TOP/n008-2018-07-27-12-07-38-0400__LIDAR_TOP__1532707811049131.pcd.bin" does not exist

原因:我只下載了trainval01、trainval02的數據,不是完整的訓練數據

修改代碼
參考:https://blog.csdn.net/weixin_38362784/article/details/111397440

文件:mmdetection3d/tools/data_converter/nuscenes_converter.py第167行
函數:_fill_trainval_infos

# for sample in mmcv.track_iter_progress(nusc.sample):
for sample in mmcv.track_iter_progress(nusc.sample[0:6743]):

這里為什么是6743
這只是我自己的推測,因為從上一步的報錯內容可知,nusc.sample是索引到6743的時候報錯的。

重新執行:

python tools/create_data.py nuscenes --root-path ./data/nuscenes --out-dir ./data/nuscenes --extra-tag nuscenes
======
Loading NuScenes tables for version v1.0-trainval...
23 category,
8 attribute,
4 visibility,
64386 instance,
12 sensor,
10200 calibrated_sensor,
2631083 ego_pose,
68 log,
850 scene,
34149 sample,
2631083 sample_data,
1166187 sample_annotation,
4 map,
Done loading in 37.468 seconds.
======
Reverse indexing ...
Done reverse indexing in 8.4 seconds.
======
total scene num: 850
exist scene num: 850
train scene: 700, val scene: 150
[>>>>>>>>>>>>>>>>>>>>>>>>>>] 6743/6743, 14.6 task/s, elapsed: 461s, ETA:     0s
train sample: 5512, val sample: 1231
======
Loading NuScenes tables for version v1.0-trainval...
23 category,
8 attribute,
4 visibility,
64386 instance,
12 sensor,
10200 calibrated_sensor,
2631083 ego_pose,
68 log,
850 scene,
34149 sample,
2631083 sample_data,
1166187 sample_annotation,
4 map,
Done loading in 39.969 seconds.
======
Reverse indexing ...
Done reverse indexing in 8.4 seconds.
======
[>>>>>>>>>>>>>>>>>>>>>>>>>>] 5512/5512, 4.8 task/s, elapsed: 1149s, ETA:     0s
======
Loading NuScenes tables for version v1.0-trainval...
23 category,
8 attribute,
4 visibility,
64386 instance,
12 sensor,
10200 calibrated_sensor,
2631083 ego_pose,
68 log,
850 scene,
34149 sample,
2631083 sample_data,
1166187 sample_annotation,
4 map,
Done loading in 41.562 seconds.
======
Reverse indexing ...
Done reverse indexing in 8.1 seconds.
======
[>>>>>>>>>>>>>>>>>>>>>>>>>>>] 1231/1231, 4.2 task/s, elapsed: 292s, ETA:     0s
Create GT Database of NuScenesDataset
[>>>>>>>>>>>>>>>>>>>>>>>>>>>] 5512/5512, 5.9 task/s, elapsed: 934s, ETA:     0s
load 12323 truck database infos
load 30252 pedestrian database infos
load 58001 car database infos
load 535 movable_object.debris database infos
load 9545 traffic_cone database infos
load 2365 motorcycle database infos
load 252 static_object.bicycle_rack database infos
load 509 movable_object.pushable_pullable database infos
load 11 vehicle.emergency.ambulance database infos
load 2610 construction_vehicle database infos
load 4037 trailer database infos
load 20002 barrier database infos
load 1963 bicycle database infos
load 1713 bus database infos
load 84 vehicle.emergency.police database infos
load 43 human.pedestrian.stroller database infos
load 149 animal database infos
load 12 human.pedestrian.wheelchair database infos
load 9 human.pedestrian.personal_mobility database infos
======
Loading NuScenes tables for version v1.0-test...
23 category,
8 attribute,
4 visibility,
0 instance,
12 sensor,
1800 calibrated_sensor,
462901 ego_pose,
15 log,
150 scene,
6008 sample,
462901 sample_data,
0 sample_annotation,
4 map,
Done loading in 8.141 seconds.
======
Reverse indexing ...
Done reverse indexing in 1.0 seconds.
======
total scene num: 150
exist scene num: 150
test scene: 150
[>>>>>>>>>>>>>>>>>>>>>>>>>>] 6008/6008, 328.9 task/s, elapsed: 18s, ETA:     0s
test sample: 6008
======
Loading NuScenes tables for version v1.0-test...
23 category,
8 attribute,
4 visibility,
0 instance,
12 sensor,
1800 calibrated_sensor,
462901 ego_pose,
15 log,
150 scene,
6008 sample,
462901 sample_data,
0 sample_annotation,
4 map,
Done loading in 5.318 seconds.
======
Reverse indexing ...
Done reverse indexing in 0.9 seconds.
======
[>>>>>>>>>>>>>>>>>>>>>>>>>>>] 6008/6008, 9.9 task/s, elapsed: 609s, ETA:     0s

成功!

5. Evaluation
  1. 下載預訓練模型
./tools/download_pretrained.sh

在這里插入圖片描述

  1. Then, you will be able to run:
    參考:https://github.com/mit-han-lab/bevfusion

如果是單顆GPU,那就得對tools/test.py的做一定的修改:

#注釋掉dist.init()
# dist.init()#修改torch.cuda.set_device
# torch.cuda.set_device(dist.local_rank())torch.cuda.set_device(0)#修改distributed
# distributed = Truedistributed = False

然后執行,例如:

python tools/test.py configs/nuscenes/seg/fusion-bev256d2-lss.yaml pretrained/bevfusion-seg.pth --eval map
6. Training

To be continued…

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/web/13627.shtml
繁體地址,請注明出處:http://hk.pswp.cn/web/13627.shtml
英文地址,請注明出處:http://en.pswp.cn/web/13627.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

智能代理四大范式解析

Agent四大范式 在2024年紅杉資本人工智能峰會上,著名的人工智能專家吳恩達發表了一場備受關注的演講,深入探討了智能代理(agent)的四大范式。這四大范式代表了當前AI技術在不同應用領域中的核心方法和實踐,分別是反思(Reflection)、工具使用(Tool Use)、規劃(Planni…

特征融合篇 | YOLOv8改進之引入輕量級跨尺度特征融合模塊CCFM | 源自RT-DETR

前言:Hello大家好,我是小哥談。CCFM(Cross-Scale Feature Fusion Module)即為跨尺度特征融合模塊。這個模塊的作用是將不同尺度的特征通過融合操作整合起來,以增強模型對于尺度變化的適應性和對小尺度對象的檢測能力。CCFM可以有效地整合細節特征和上下文信息,從而提高模…

2024定制版搶單支付系統源碼(開代理自動搶單接單)

隨著網絡和移動支付技術的不斷進步&#xff0c;搶單支付系統已經成為商家和用戶進行交易的便利工具。2024定制版搶單支付系統源碼為開發者提供了一個可定制化的解決方案&#xff0c;具備開放代理和自動搶單接單功能&#xff0c;幫助用戶快速搭建搶單支付平臺。本文將為您介紹這…

專題匯編 | ChatGPT引領AIGC新浪潮(一)

ChatGPT的產生與迭代 2022年11月末,美國人工智能研究實驗室OpenAI推出ChatGPT。上線的ChatGPT只用了2個月,活躍用戶數就突破了1億,創造了應用增速最快的紀錄。 ChatGPT是什么 ChatGPT是一種人工智能技術驅動的自然語言處理(Natural Language Processing,NLP)工具,使用的…

20240520金融讀報:旅游強國金融數據要素升級融資性貿易房地產政策變化

1、房地產政策變化&#xff1a;1&#xff09;刺激買方&#xff1a;降首付&#xff0c;公積金貸款利率下調0.25%&#xff0c;商貸貸款利率不設下限 2&#xff09;托底賣方&#xff1a;“白名單”貸款項目&#xff0c;覆蓋項目建成交付的資金缺口 3&#xff09;增加賣方&#xff…

RS8751XF功能和參數介紹及PDF資料

以下是關于RS8751XF的功能和參數的介紹&#xff1a; 功能描述: 高速、寬帶單通道運算放大器 軌到軌輸入和輸出&#xff0c;確保較大的動態范圍 極高的增益帶寬乘積&#xff08;GBW&#xff09;&#xff1a;250 MHz&#xff0c;適合高頻應用 極高的壓擺率&#xff08;SR&#xf…

MySQL的ODBC驅動下載、安裝以及配置數據源

下載地址&#xff1a;odbc官方下載地址 MySQL :: Download Connector/ODBC 下載安裝ODBC驅動 配置MySQL ODBC 數據源 進入控制面板->系統和安全->Windows工具 Data Source Name填寫需要生成的ODBC數據源的名稱。Description選填。如果使用遠程數據庫服務器&a…

鴻蒙應用開發系列 篇五:鴻蒙系統高級開發技術

文章目錄 系列文章Web組件通知窗口管理網頁圖形庫(WebGL)媒體安全訪問控制用戶認證其他網絡與連接電話服務數據管理文件管理后臺任務管理設備管理系列文章

mysql--數據庫表的創建及基礎命令

今日目標 表的創建 數據庫的數據類型 表的約束 表結構的修改和調整 數據庫的權限管理 單表的數據的CRUD sql的一些規范 SQL的分類 SQL腳本注意點 SQL的注釋 ISO提出SQL官方注釋&#xff1a; 1、多行注釋 /* */ 2、當行注釋 -- 注釋 注意&#xff0c;空格是必不可少的…

微信小程序抓取數據包(Proxifier聯動burpsuite)

1、打開bp&#xff0c;確保開啟127.0.0.1&#xff1a;8080監聽地址。 2、點擊setting--proxy&#xff0c;點擊impor CA certificate&#xff0c;生成bp的證書。 保存到桌面為1.cer&#xff0c;文件后綴為cer就OK了&#xff0c;前綴任意 3、安裝證書&#xff0c;雙擊打開剛剛生成…

BERT系列算法解讀

1.bert訓練的方法 為了訓練BERT模型&#xff0c;主要采用了兩種方法&#xff1a;掩碼語言模型&#xff08;Masked Language Model, MLM&#xff09;和下一個句子預測&#xff08;Next Sentence Prediction, NSP&#xff09;。 方法一&#xff1a;掩碼語言模型&#xff08;Mask…

公共Mono模塊筆記

一、公共Mono的主要作用 讓不繼承MonoBehaviour的腳本也能 1.利用幀更新或定時更新處理邏輯 2.利用協同程序處理邏輯 3.可以統一執行管理幀更新或定時更新相關邏輯(不管你是否繼承MonoBehaviour) 二、基本原理 1.通過事件或委托 管理 相關更新函數&#xff08;如AddUpdateLis…

優化電源設計:反激二極管選擇與注意事項

反激二極管也被稱為續流二極管、緩沖二極管、抑制二極管、鉗位二極管或換向二極管&#xff0c;是一種電子元件&#xff0c;通常應用在開關電源和其他涉及電感性負載的電路中。它的主要功能是保護電路&#xff0c;防止感性負載在開關斷開時產生的反激電壓&#xff08;或反電動勢…

DOS學習-目錄與文件應用操作經典案例-xcopy

新書上架~&#x1f447;全國包郵奧~ python實用小工具開發教程http://pythontoolsteach.com/3 歡迎關注我&#x1f446;&#xff0c;收藏下次不迷路┗|&#xff40;O′|┛ 嗷~~ 目錄 一.前言 二.使用 三.案例 一.前言 xcopy命令是DOS系統中一個強大的文件和目錄復制工具&…

MySQL——表的約束

表約束 一、概念 ? 表中一定要有各種約束&#xff0c;通過各種約束使得未來插入到數據庫中的數據是合法的&#xff0c;在語法上是沒有問題的&#xff1b; ? 約束本質就是通過技術手段&#xff0c;倒逼著程序員插入正確的數據&#xff0c;換句話說就是&#xff0c;插入進來…

6個精品免費wordpress模板下載

要找到視覺效果非常出色的WordPress模板&#xff0c;我們可以從多個角度來考慮。根據《Smashing WordPress Themes: Making WordPress Beautiful》一書&#xff0c;WordPress不僅僅是一個博客平臺&#xff0c;它還能被用來創建各種風格的網站&#xff0c;從企業網站到攝影畫廊等…

洗地機哪個牌子好?全面評測多款口碑洗地機

洗地機的出現&#xff0c;讓人們擺脫了每天打掃衛生的繁瑣&#xff0c;因為它只需輕輕一推&#xff0c;就能把掃地、拖地、擦地的活全做了&#xff0c;干垃圾濕垃圾統統都能一次清理干凈&#xff0c;操作簡單&#xff0c;更輕松。本文主要分享一些挑選洗地機的技巧&#xff0c;…

python報錯ImportError: The _imagingft C module is not installed

前言 以下解決方案來自gpt&#xff0c;但親測有效&#xff0c;uu們可放心食用 解決方法 ImportError: The _imagingft C module is not installed 錯誤通常表明你的Python環境中缺少用于處理圖像字體的模塊。這可能是由于Pillow&#xff08;PIL的分支&#xff09;庫未正確安…

大數據運維學習筆記之Ambari——筑夢之路

原則&#xff1a;分布式存儲和分布式計算分開 今天就到這里啦。

c語言如何向文件寫入字符串

c語言里向文件寫入字符串&#xff0c;用到fputs語句 fputs&#xff08;str,fp&#xff09;是將str字符數組里的內容寫入到fp指針指向的文件 #include<stdio.h>int main() {FILE *fp;char s[100];fpfopen("ddd.txt","w");fputs("good time\n&q…