Giter VIP home page Giter VIP logo

graph-iss's People

Contributors

gapartel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

graph-iss's Issues

Error when using both probability and radius parameters

Hi, thanks for making this super useful tool! Just wanted to let you know I encountered a minor bug that occurs when you try to use both the probability and radius parameters simultaneously when predicting (ie: deepblink predict --model model.h5 --input img.tiff -r 1 -p 0.9). Running using both parameters causes it to throw the following error:

Traceback (most recent call last):
File "/mnt/envs/dev-nkeener/bin/deepblink", line 33, in
sys.exit(load_entry_point('deepblink==0.1.3', 'console_scripts', 'deepblink')())
File "/mnt/envs/dev-nkeener/lib/python3.7/site-packages/deepblink/cli/_main.py", line 115, in main
handler()
File "/mnt/envs/dev-nkeener/lib/python3.7/site-packages/deepblink/cli/_predict.py", line 71, in call
self.predict_adaptive(fname_in, image)
File "/mnt/envs/dev-nkeener/lib/python3.7/site-packages/deepblink/cli/_predict.py", line 193, in predict_adaptive
curr_df = self.predict_single(single_image, pixel_size)
File "/mnt/envs/dev-nkeener/lib/python3.7/site-packages/deepblink/cli/_predict.py", line 165, in predict_single
df["i"] = get_intensities(image, coords, self.radius)
File "/mnt/envs/dev-nkeener/lib/python3.7/site-packages/deepblink/inference.py", line 105, in get_intensities
for r, c in coordinate_list:
ValueError: too many values to unpack (expected 2)

This is because coordinate_list in the get_intensities() function in inference.py can have either 2 or 3 columns depending on if you used the probability parameter so that function will need to be adjusted to handle the variable number of columns.

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.