Skip to content

Commit 090284a

Browse files
authored
Merge pull request #4 from deepbands/develop
update new version v0.2.1
2 parents 3ccb8cf + 9346d39 commit 090284a

6 files changed

Lines changed: 15 additions & 72 deletions

File tree

deep-learning-datasets-maker/metadata.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
name=Deep Learning Datasets Maker
77
qgisMinimumVersion=3.0
88
description=tools to handle raster and vector data to split it into small pieces equaled in size for machine learning datasets
9-
version=0.2
9+
version=0.2.1
1010
author=deepbands (Youssef Harby and Yizhou Chen)
1111
email=youssef_harby@yahoo.com
1212

@@ -37,7 +37,7 @@ deprecated=False
3737
# Since QGIS 3.8, a comma separated list of plugins to be installed
3838
# (or upgraded) can be specified.
3939
# Check the documentation for more information.
40-
plugin_dependencies=scikit-image, pycocotools
40+
plugin_dependencies=Cython, scikit-image, pycocotools, Pillow
4141

4242
Category of the plugin: Raster, Vector, Database or Web
4343
# category=

deep-learning-datasets-maker/utils/COCO/pycococreatortools/pycococreatortools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55
import datetime
66
import numpy as np
77
from itertools import groupby
8-
from PIL import Image
98
import subprocess
109
try:
1110
from pycocotools import mask
1211
from skimage import measure
12+
from PIL import Image
1313
except ImportError:
1414
print('some packages not installed. Installing ...')
1515
subprocess.check_call(
16-
["python3", '-m', 'pip', 'install', 'pycocotools', 'scikit-image'])
16+
["python3", '-m', 'pip', 'install', 'Cython', 'scikit-image', 'Pillow', 'pycocotools'])
1717
from pycocotools import mask
1818
from skimage import measure
19+
from PIL import Image
1920

2021

2122
def convert(text): return int(text) if text.isdigit() else text.lower()

deep-learning-datasets-maker/utils/COCO/shape_to_coco.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
import os
66
import re
77
import fnmatch
8-
from PIL import Image
8+
try:
9+
from PIL import Image
10+
except ImportError:
11+
print('some packages not installed. Installing ...')
12+
subprocess.check_call(
13+
["python3", '-m', 'pip', 'install', 'Pillow'])
14+
from PIL import Image
915
import numpy as np
1016
from .pycococreatortools import *
1117
from .tif_process import *
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from .rasterize import rasterize
22
from .splitting import splitting
3-
from .semantic2instance import segMaskB2I
43
from .paddlepaddle_split_dataset_list import generate_list
54
from .intSegGDAL import rasterizeInsSeg

deep-learning-datasets-maker/utils/semantic2instance.py

Lines changed: 0 additions & 65 deletions
This file was deleted.

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
Cython
12
scikit-image
2-
pycocotools
3+
pycocotools
4+
Pillow

0 commit comments

Comments
 (0)