Closed sunshine-app closed 3 months ago
bash mmdetection/tools/dist_test.sh mmdetection/m2doc_config/dino-4scale_w_m2doc_r50_doclaynet_12epoch.py dino_w_m2doc_r50_epoch_12.pth 1
Please be sure to use ocr annotations of doclaynet. And convert dataset ocr annotations into specific format using /data/doclaynet/ocr_anno_convert.py.
bash mmdetection/tools/dist_test.sh mmdetection/m2doc_config/dino-4scale_w_m2doc_r50_doclaynet_12epoch.py dino_w_m2doc_r50_epoch_12.pth 1
Hello!, can I ask you what version of pytorch, cuda, mmcv, mmengine, transformers
did you use? I cannot run inference on my environment.
bash mmdetection/tools/dist_test.sh mmdetection/m2doc_config/dino-4scale_w_m2doc_r50_doclaynet_12epoch.py dino_w_m2doc_r50_epoch_12.pth 1
Hello!, can I ask you what version of
pytorch, cuda, mmcv, mmengine, transformers
did you use? I cannot run inference on my environment.
you could create environment as:
conda create -n m2doc python=3.8 -y
conda activate m2doc
conda install pytorch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1 cudatoolkit=10.2 -c pytorch
git clone https://github.com/johnning2333/M2Doc.git
cd M2Doc/mmdetection
pip install -v -e .
pip install transformers
pip install mmengine
mim install mmcv
bash mmdetection/tools/dist_test.sh mmdetection/m2doc_config/dino-4scale_w_m2doc_r50_doclaynet_12epoch.py dino_w_m2doc_r50_epoch_12.pth 1