@@ -1,5 +1,6 @@
-#!/usr/bin/bash
+#!/usr/bin/env bash
+bash download_test_data
coverage run --source paddlers,$(ls -d ../tools/* | tr '\n' ',') --omit=../paddlers/models/* -m unittest discover -v
coverage report
coverage html -d coverage_html
@@ -0,0 +1,2 @@
+*.tar.gz
+*/
@@ -1,3 +0,0 @@
-optical_t1.bmp optical_t2.bmp binary_gt.bmp
-sar_t1.tiff sar_t2.tiff binary_gt.bmp
-multispectral_t1.tif multispectral_t2.tif binary_gt.bmp
@@ -1,6 +0,0 @@
-optical_t1.bmp optical_t2.bmp multiclass_gt.png
-sar_t1.tiff sar_t2.tiff multiclass_gt.png
-multispectral_t1.tif multispectral_t2.tif multiclass_gt.png
-optical_t1.bmp optical_t2.bmp multiclass_gt2.png
-sar_t1.tiff sar_t2.tiff multiclass_gt2.png
-multispectral_t1.tif multispectral_t2.tif multiclass_gt2.png
-optical_t1.bmp optical_t2.bmp binary_gt.bmp binary_gt.bmp binary_gt.bmp
-sar_t1.tiff sar_t2.tiff binary_gt.bmp binary_gt.bmp binary_gt.bmp
-multispectral_t1.tif multispectral_t2.tif binary_gt.bmp binary_gt.bmp binary_gt.bmp
@@ -1 +0,0 @@
@@ -1,2 +0,0 @@
@@ -1,106 +0,0 @@
-{
- "images": [
- {
- "height": 256,
- "width": 256,
- "id": 1,
- "file_name": "optical.bmp"
- },
- "id": 2,
- "file_name": "sar.tiff"
- "id": 3,
- "file_name": "multispectral.tif"
- }
- ],
- "categories": [
- "supercategory": "component",
- "name": "target"
- "annotations": [
- "segmentation": [
- [
- 28,
- 89,
- 253,
- 72,
- 89
- ]
- "iscrowd": 0,
- "image_id": 1,
- "bbox": [
- 28.0,
- 89.0,
- 44.0,
- 164.0
- "area": 7216.0,
- "category_id": 1,
- "id": 1
- "image_id": 2,
- "id": 2
- "image_id": 3,
- "id": 3
-}
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<annotation>
-<filename>optical.bmp</filename>
-<size>
-<width>256</width>
-<height>256</height>
-</size>
-<resolution>3</resolution>
-<sensor>GF-3</sensor>
-<object>
-<name>ship</name>
-<bndbox>
-<xmin>0</xmin>
-<ymin>0</ymin>
-<xmax>125</xmax>
-<ymax>98</ymax>
-</bndbox>
-</object>
-<name>plane</name>
-<xmin>10</xmin>
-<ymin>5</ymin>
-<xmax>67</xmax>
-<ymax>233</ymax>
-<name>submarine</name>
-<xmin>50</xmin>
-<ymin>228</ymin>
-<xmax>60</xmax>
-<ymax>240</ymax>
-</annotation>
-ship
-plane
-submarine
-./ det_gt_coco.json
-optical.bmp 0
-sar.tiff 1
-multispectral.tif 2
-optical.bmp det_gt_voc.xml
-sar.tiff det_gt_voc.xml
-multispectral.tif det_gt_voc.xml
-optical.bmp multiclass_gt.png
-sar.tiff multiclass_gt.png
-multispectral.tif multiclass_gt.png
-optical.bmp multiclass_gt2.png
-sar.tiff multiclass_gt2.png
-multispectral.tif multiclass_gt2.png
@@ -0,0 +1,20 @@
+
+function remove_dir_if_exist() {
+ local dir="$1"
+ if [ -d "${dir}" ]; then
+ rm -rf "${dir}"
+ echo "\033[0;31mDirectory ${dir} has been removed.\033[0m"
+ fi
+}
+## Remove old directories (if they exist)
+remove_dir_if_exist 'data/ssst'
+remove_dir_if_exist 'data/ssmt'
+## Download and unzip
+wget -nc -P data/ https://paddlers.bj.bcebos.com/tests/data/ssst.tar.gz --no-check-certificate
+tar -zxf data/ssst.tar.gz -C data/
+wget -nc -P data/ https://paddlers.bj.bcebos.com/tests/data/ssmt.tar.gz --no-check-certificate
+tar -zxf data/ssmt.tar.gz -C data/
@@ -1,3 +1,4 @@
python -m unittest -v fast_tests
python -m unittest discover -v