ChunyangYuan / MyTools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ“˜Zoomirไฝฟ็”จ่ฏดๆ˜Ž

๐Ÿ› ๏ธStep 1๏ผš็Žฏๅขƒ้…็ฝฎ

......

๐Ÿ“„Step 2๏ผšๆ•ฐๆฎ้›†ๅ‡†ๅค‡

๐Ÿ‘€ๆ•ฐๆฎ้›†็›ฎๅฝ•ๆ ผๅผๅฆ‚ไธ‹๏ผš

zoomir  
โ”œโ”€โ”€ zoomir  
โ”œโ”€โ”€ tools  
โ”œโ”€โ”€ configs  
โ”œโ”€โ”€ data  
โ”‚   โ”œโ”€โ”€ SIRSTdevkit-master  
โ”‚   โ”‚   โ”œโ”€โ”€ PNGImages  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 211_HD_1.png  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 211_HD_126.png  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ...  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ TH0517_12.png  
โ”‚   โ”‚   โ”œโ”€โ”€ PNGImages_2x(api็”Ÿๆˆ็š„)  
โ”‚   โ”‚   โ”œโ”€โ”€ PNGImages_2x_bicubic  
โ”‚   โ”‚   โ”œโ”€โ”€ PNGImages_2x_edsr  
โ”‚   โ”‚   โ”œโ”€โ”€ PNGImages_2x_srcnn  
โ”‚   โ”‚   โ”œโ”€โ”€ PNGImages_2x_srgan  
โ”‚   โ”‚   โ”œโ”€โ”€ PNGImages_2x_swinir  
โ”‚   โ”‚   โ”œโ”€โ”€ SIRST   
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ BBox  
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 211_HD_1.xml  
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 211_HD_126.xml  
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ...   
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ TH0517_12.xml  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ BBox_2X  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ BinaryMask(not use)  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ PaletteMask(not use)  
โ”‚   โ”‚   โ”œโ”€โ”€ SkySeg(not use)  
โ”‚   โ”‚   โ”œโ”€โ”€ Splits(for mmdet)  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ test.txt  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ trainval.txt  
โ”‚   โ”‚   โ”œโ”€โ”€ test.txt(for mmagic)  
โ”‚   โ”‚   โ”œโ”€โ”€ trainval.txt(for mmagic)
โ”‚   โ”‚   โ”œโ”€โ”€ trainvaltest.txt(for mmagic)  
โ”‚   โ”œโ”€โ”€ IRSTD-1k  
โ”‚   โ”‚   โ”œโ”€โ”€ Annotations  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ XDU0.xml  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ XDU0.xml  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ...  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ XDU1000.xml  
โ”‚   โ”‚   โ”œโ”€โ”€ Annotations_2x  
โ”‚   โ”‚   โ”œโ”€โ”€ IRSTD1k_Img  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ XDU0.png  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ XDU1.png  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ...  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ XDU1000.png  
โ”‚   โ”‚   โ”œโ”€โ”€ IRSTD1k_Img_2x(sr)  
โ”‚   โ”‚   โ”œโ”€โ”€ IRSTD1k_Img_2x_bicubic  
โ”‚   โ”‚   โ”œโ”€โ”€ IRSTD1k_Img_2x_edsr  
โ”‚   โ”‚   โ”œโ”€โ”€ IRSTD1k_Img_2x_srcnn  
โ”‚   โ”‚   โ”œโ”€โ”€ IRSTD1k_Img_2x_srgan  
โ”‚   โ”‚   โ”œโ”€โ”€ IRSTD1k_Img_2x_swinir  
โ”‚   โ”‚   โ”œโ”€โ”€ IRSTD1k_Label(not use)  
โ”‚   โ”‚   โ”œโ”€โ”€ Splits(for mmdet)  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ test.txt  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ trainval.txt  
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ trainvaltest.txt  
โ”‚   โ”‚   โ”œโ”€โ”€ test.txt(for mmagic)  
โ”‚   โ”‚   โ”œโ”€โ”€ trainval.txt(for mmagic)
โ”‚   โ”‚   โ”œโ”€โ”€ trainvaltest.txt(for mmagic)  

๐Ÿš€Step 3๏ผšๆจกๅž‹่ฎญ็ปƒ

๐Ÿ“Š่ฎญ็ปƒ็บขๅค–่ถ…ๅˆ†ๆจกๅž‹

โœจCPU่ฎญ็ปƒ๏ผš

CUDA_VISIBLE_DEVICES=-1 python tools/train_mmagic.py [model_config]

ๅ…ทไฝ“็คบไพ‹ๅฆ‚ไธ‹๏ผš

# train srcnn
CUDA_VISIBLE_DEVICES=-1 python tools/train_mmagic.py configs/srcnn/srcnn_x2k915_1xb16-1000k_irstd.py
# train srgan
CUDA_VISIBLE_DEVICES=-1 python tools/train_mmagic.py configs/srgan_resnet/srgan_x2c64b16_1xb16-100k_irstd.py

โœจโœจๅ•GPU่ฎญ็ปƒ๏ผš

python tools/train_mmagic.py [model_config]

ๅ…ทไฝ“็คบไพ‹ๅฆ‚ไธ‹๏ผš

# train srcnn
python tools/train_mmagic.py configs/srcnn/srcnn_x2k915_1xb16-1000k_irstd.py
# train srgan
python tools/train_mmagic.py configs/srgan_resnet/srgan_x2c64b16_1xb16-100k_irstd.py

๐Ÿ“Š่ฎญ็ปƒ็บขๅค–ๅฐ็›ฎๆ ‡ๆฃ€ๆต‹ๆจกๅž‹

โœจCPU่ฎญ็ปƒ๏ผš

CUDA_VISIBLE_DEVICES=-1 python tools/train_det.py [model_config]

ๅ…ทไฝ“็คบไพ‹ๅฆ‚ไธ‹๏ผš

# train fcos
CUDA_VISIBLE_DEVICES=-1 python tools/train_det.py configs/fcos/fcos_x101-64x4d_fpn_gn-head_ms-640-800-2x_voc.py

โœจโœจๅ•GPU่ฎญ็ปƒ๏ผš

python tools/train_det.py [model_config]

ๅ…ทไฝ“็คบไพ‹ๅฆ‚ไธ‹๏ผš

# train fcos
python tools/train_det.py configs/fcos/fcos_x101-64x4d_fpn_gn-head_ms-640-800-2x_voc.py

๐Ÿš€Step 4๏ผšๆจกๅž‹ๆต‹่ฏ•

๐Ÿ“Šๆต‹่ฏ•็บขๅค–่ถ…ๅˆ†ๆจกๅž‹

โœจCPUๆต‹่ฏ•๏ผš

CUDA_VISIBLE_DEVICES=-1 python tools/test_mmagic.py [model_config] [checkpoint]

ๅ…ทไฝ“็คบไพ‹ๅฆ‚ไธ‹๏ผš

# test srcnn
CUDA_VISIBLE_DEVICES=-1 python tools/test_mmagic.py configs/srcnn/srcnn_x2k915_1xb16-1000k_irstd.py work_dirs\srcnn_x2k915_1xb16-1000k_irstd\iter_500.pth

โœจโœจๅ•GPUๆต‹่ฏ•๏ผš

python tools/test_mmagic.py [model_config] [checkpoint]

ๅ…ทไฝ“็คบไพ‹ๅฆ‚ไธ‹๏ผš

# test srcnn
CUDA_VISIBLE_DEVICES=-1 python tools/test_mmagic.py configs/srcnn/srcnn_x2k915_1xb16-1000k_irstd.py work_dirs\srcnn_x2k915_1xb16-1000k_irstd\iter_500.pth

๐Ÿ“Š่ฎญ็ปƒ็บขๅค–ๅฐ็›ฎๆ ‡ๆฃ€ๆต‹ๆจกๅž‹

โœจCPUๆต‹่ฏ•๏ผš

CUDA_VISIBLE_DEVICES=-1 python tools/test_det.py [model_config] [checkpoint]

ๅ…ทไฝ“็คบไพ‹ๅฆ‚ไธ‹๏ผš

# train fcos
CUDA_VISIBLE_DEVICES=-1 python tools/test_det.py configs/fcos/fcos_x101-64x4d_fpn_gn-head_ms-640-800-2x_voc.py work_dirs/fcos_x101-64x4d_fpn_gn-head_ms-640-800-2x_voc/best_pascal_voc_mAP_epoch_1.pth

โœจโœจๅ•GPUๆต‹่ฏ•๏ผš

python tools/test_det.py [model_config] [checkpoint]

ๅ…ทไฝ“็คบไพ‹ๅฆ‚ไธ‹๏ผš

# train fcos
python tools/test_det.py configs/fcos/fcos_x101-64x4d_fpn_gn-head_ms-640-800-2x_voc.py work_dirs/fcos_x101-64x4d_fpn_gn-head_ms-640-800-2x_voc/best_pascal_voc_mAP_epoch_1.pth

About


Languages

Language:Python 83.8%Language:MATLAB 8.5%Language:C++ 7.7%