Permalink
Browse files

Void is clean

  • Loading branch information...
ocourtin committed Feb 2, 2019
1 parent 312a4cb commit 9e0b26f6a28e7c34ee920bae5d2f6fb1044c5e45
Showing with 3 additions and 93 deletions.
  1. +1 −1 requirements.txt
  2. +0 −2 robosat_pink/tools/export.py
  3. +2 −2 robosat_pink/tools/vectorize.py
  4. +0 −88 robosat_pink/vectors.py
@@ -1,3 +1,4 @@
torch>=1.0.0
torchvision
numpy
pillow
@@ -10,7 +11,6 @@ osmium
rasterio
supermercado
shapely
rtree
pyproj
toml
pytest
@@ -21,7 +21,6 @@ def add_parser(subparser):
parser.add_argument("--config", type=str, required=True, help="path to configuration file")
parser.add_argument("--export_channels", type=int, help="export channels to use (keep the first ones)")
parser.add_argument("--type", type=str, choices=["pth"], default="pth", help="output type")
parser.add_argument("--tile_size", type=int, help="if set, override tile size value from config file")
parser.add_argument("--checkpoint", type=str, required=True, help="model checkpoint to load")
parser.add_argument("out", type=str, help="path to save export model to")

@@ -30,7 +29,6 @@ def add_parser(subparser):

def main(args):
config = load_config(args.config)
tile_size = args.tile_size if args.tile_size else config["model"]["tile_size"]

num_classes = len(config["classes"])
num_channels = 0
@@ -1,5 +1,4 @@
import sys
import argparse
from tqdm import tqdm

import numpy as np
@@ -13,6 +12,7 @@
from robosat_pink.config import load_config
from robosat_pink.tiles import tiles_from_slippy_map


def add_parser(subparser):
parser = subparser.add_parser("vectorize", help="extracts simplified GeoJSON features from segmentation masks")

@@ -45,4 +45,4 @@ def main(args):
out.write('{}{{"type":"Feature",{},{}}}'.format("," if not first else "", geom, prop))
first = False

out.write(']}')
out.write("]}")

This file was deleted.

Oops, something went wrong.

0 comments on commit 9e0b26f

Please sign in to comment.