Giter VIP home page Giter VIP logo

foss_4g_pixel_decoder's Introduction

FOSS4G_Pixel_decoder

The Pixel Decoder repo is over here: https://github.com/Geoyi/pixel-decoder, in case you want to see what behind it.

The files in this repo:

  • Label-Maker_Pixel-Decoder.ipynb is the walkthrough IPython notebook on how to run Pixel Decoder using nvidia-docker;
  • Dockerfile to create a docker image to run Pixel Decoder;
  • tz_road_prediction.geojson is the vectorized road prediction geojson files from a model I ran to showcase what Pixel Decoder can do.

foss_4g_pixel_decoder's People

Contributors

geoyi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

foss_4g_pixel_decoder's Issues

Strange predictions

I don't find any roads. For example, here are the predictions I get for the first example of the notebook (9829-68024-17.png):

screen shot 2018-09-12 at 12 26 55

Whereas I should get:

screen shot 2018-09-12 at 12 39 04

This probably has to do with training the u-net #2

Bad accuraccy + Crash after saving weights4.h5

In the last epoch of the last loop, I get:

Epoch 50/50
 - 23s - loss: 0.8512 - dice_coef: 1.1176e-04 - dice_coef_rounded: 1.0000 - binary_crossentropy: 0.0086 - val_loss: 0.8512 - val_dice_coef: 1.1405e-04 - val_dice_coef_rounded: 1.0000 - val_binary_crossentropy: 0.0084
steps_per_epoch 19 validation_steps 6

And at the end of the training, I get this strange error. However the unet_weights4.h5 got saved correctly.

None
Traceback (most recent call last):
  File "/opt/conda/envs/jupyter_env/bin/pixel_decoder", line 11, in <module>
    load_entry_point('pixel-decoder', 'console_scripts', 'pixel_decoder')()
  File "/example/pixel_decoder/main.py", line 75, in cli
    main(args.pop('command'), **args)
  File "/example/pixel_decoder/main.py", line 56, in main
    train(**kwargs)
  File "/example/pixel_decoder/train.py", line 62, in train
    metrics=[dice_coef, dice_coef_rounded, metrics.binary_crossentropy])
  File "/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/keras/engine/training.py", line 830, in compile
    sample_weight, mask)
  File "/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/keras/engine/training.py", line 429, in weighted
    score_array = fn(y_true, y_pred)
  File "/example/pixel_decoder/loss.py", line 28, in dice_logloss3
    return binary_crossentropy(y_true, y_pred) * 0.15 + dice_coef_loss(y_true, y_pred) * 0.85
  File "/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/keras/losses.py", line 77, in binary_crossentropy
    return K.mean(K.binary_crossentropy(y_true, y_pred), axis=-1)
  File "/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 3068, in binary_crossentropy
    output = tf.clip_by_value(output, _epsilon, 1 - _epsilon)
  File "/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/tensorflow/python/ops/clip_ops.py", line 61, in clip_by_value
    [t, clip_value_min, clip_value_max]) as name:
  File "/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 5770, in __enter__
    g = _get_graph_from_inputs(self._values)
  File "/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 5428, in _get_graph_from_inputs
    _assert_same_graph(original_graph_element, graph_element)
  File "/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 5364, in _assert_same_graph
    original_item))
ValueError: Tensor("loss/conv2d_11_loss/Const:0", shape=(), dtype=float32) must be from the same graph as Tensor("conv2d_11/Sigmoid:0", shape=(?, 256, 256, 1), dtype=float32).

I attach the log file of the training.

log.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.