Update gis.py
Browse files
gis.py
CHANGED
@@ -221,7 +221,6 @@ class GIS(object):
|
|
221 |
def detect_image(self, in_filepath):
|
222 |
out_dirpath = self.args.out_dirpath
|
223 |
image = skimage.io.imread(in_filepath)
|
224 |
-
patch_size = self.config['eval_params']['patch_size']
|
225 |
# ε¦ζθΆ
εΊεηι’ζη倧ε°εε
³ιεηε€η
|
226 |
if image.shape[0] < patch_size or image.shape[1] < patch_size:
|
227 |
self.config['eval_params']['patch_size'] = None
|
@@ -275,7 +274,7 @@ class GIS(object):
|
|
275 |
shx_filepath = os.path.join(out_dirpath, 'poly_shapefile.acm.tol_0.125', base_filename + ".shx")
|
276 |
shp_filepath = os.path.join(out_dirpath, 'poly_shapefile.acm.tol_0.125', base_filename + ".shp")
|
277 |
prj_filepath = os.path.join(out_dirpath, 'poly_shapefile.acm.tol_0.125', base_filename + ".prj")
|
278 |
-
|
279 |
return base_filename, [result_seg_mask_path, result_seg_path, pdf_filepath, cpg_filepath, dbf_filepath, shx_filepath, shp_filepath, prj_filepath]
|
280 |
|
281 |
|
|
|
221 |
def detect_image(self, in_filepath):
|
222 |
out_dirpath = self.args.out_dirpath
|
223 |
image = skimage.io.imread(in_filepath)
|
|
|
224 |
# ε¦ζθΆ
εΊεηι’ζη倧ε°εε
³ιεηε€η
|
225 |
if image.shape[0] < patch_size or image.shape[1] < patch_size:
|
226 |
self.config['eval_params']['patch_size'] = None
|
|
|
274 |
shx_filepath = os.path.join(out_dirpath, 'poly_shapefile.acm.tol_0.125', base_filename + ".shx")
|
275 |
shp_filepath = os.path.join(out_dirpath, 'poly_shapefile.acm.tol_0.125', base_filename + ".shp")
|
276 |
prj_filepath = os.path.join(out_dirpath, 'poly_shapefile.acm.tol_0.125', base_filename + ".prj")
|
277 |
+
self.config['eval_params']['patch_size'] = 1024
|
278 |
return base_filename, [result_seg_mask_path, result_seg_path, pdf_filepath, cpg_filepath, dbf_filepath, shx_filepath, shp_filepath, prj_filepath]
|
279 |
|
280 |
|