Giter Club home page Giter Club logo

road-segmentation's People

Contributors

dariopavllo avatar tarmeens avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

road-segmentation's Issues

can't run "python run.py"

SharedScreenshot
Just for debugging i added print(len(img_patches)), as you can see, the length is only 1 before the error throws

Error while running testing

Traceback (most recent call last): File "run.py", line 29, in <module> generate_submission(model, submission_filename, *image_filenames) File "F:\honours-vis\segmentation\road-segmentation\helpers.py", line 100, in generate_submission f.writelines('{}\n'.format(s) for s in mask_to_submission_strings(model, fn)) File "F:\honours-vis\segmentation\road-segmentation\helpers.py", line 100, in <genexpr> f.writelines('{}\n'.format(s) for s in mask_to_submission_strings(model, fn)) File "F:\honours-vis\segmentation\road-segmentation\helpers.py", line 83, in mask_to_submission_strings Zi = model.classify(Xi) File "F:\honours-vis\segmentation\road-segmentation\cnn_model.py", line 207, in classify img_patches = create_patches(X, self.patch_size, 16, self.padding) File "F:\honours-vis\segmentation\road-segmentation\helpers.py", line 56, in create_patches img_patches = np.asarray([img_crop(X[i], patch_size, patch_size, stride, padding) for i in range(X.shape[0])]) File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\site-packages\numpy\core\numeric.py", line 531, in asarray return array(a, dtype, copy=False, order=order) ValueError: could not broadcast input array from shape (72,72,4) into shape (72)

Can i please know .on how to solve this,i am giving an input RGB imge

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.