question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improvements in VISpipeline tutorial

See original GitHub issue

I am following the VIS pipeline tutorial (http://plantcv.readthedocs.io/en/latest/vis_tutorial/) and found some minor flaws.

1. Extra agruments

-r results.txt -w are undefined arguments

2. Problem with debug argument

This could probably be a problem of mine. But the flag ‘print’ of the -D argument is not working for me i have to overwrite it in the code if i want the debug mode to print my images

3. Output directory

Not sure why, i hv specified the output directory but it is printing to the main project folder.

4. Sample image different resolution

I belive the image you make available to run this tutorial is different the one you used. because the ROI rectangle definition does not match.

5. color_img not defined

throughout the code i dont think color_img was actually created. Got this error: NameError: global name 'color_img' is not defined

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nfahlgrencommented, Apr 6, 2017

Yep, you are right, both -r and -w should be defined in the options function if the script is to be used with plantcv-pipeline.py. Here’s what we normally use:

def options():
    parser = argparse.ArgumentParser(description="Imaging processing with opencv")
    parser.add_argument("-i", "--image", help="Input image file.", required=True)
    parser.add_argument("-o", "--outdir", help="Output directory for image files.", required=False)
    parser.add_argument("-r","--result", help="result file.", required= False )
    parser.add_argument("-w","--writeimg", help="write out images.", default=False, action="store_true")
    parser.add_argument("-D", "--debug", help="Turn on debug, prints intermediate images.", default=None)
    args = parser.parse_args()
    return args
0reactions
maliagehancommented, Apr 7, 2017

Updates have been made to correct the problems with the VIS and VIS/NIR tutorial. Please let us know if you find any other problems. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

VIS Tutorial: Better Documentation on Results format #110
Hello all,. I've been in the process of building a VIS pipeline to get plant measurements in the results.txt file for further analysis....
Read more >
Visualization Lecture 01: Introduction Part 1-the Importance of ...
Visualization Lecture 01: Introduction Part 1-the Importance of Visualization, the Vis Pipeline · Chapters. View all · Chapters · Description.
Read more >
Tutorials - IEEE VIS
This introductory tutorial will provide a broad foundation for thinking systematically about visualization systems, built around the idea that becoming familiar ...
Read more >
EZ-Root-VIS: A Software Pipeline for the Rapid Analysis and ...
The installation package includes Root-VIS and the latest version of the EZ-Rhizo program, which has a number of additions and improvements over the ......
Read more >
CompVis/stable-diffusion-v1-4 - Hugging Face
Running the pipeline with the default PNDM scheduler: import torch from diffusers import StableDiffusionPipeline model_id = "CompVis/stable-diffusion-v1-4" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found