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.

[Feature Request] Support for passing in image path parameters to start

See original GitHub issue

When used as a local tool, most of the time you may only need to process a single photo, and it could be a bit more convenient if it could support passing in the image path at startup, eliminating the need to manually select the path. Let’s say the following.

python3 main.py --device=cuda --port=8080 --model=lama --image path/example.jpg

python3 main.py --device=cuda --port=8080 --model=ldm --ldm-steps=50 --image path/example.jpg

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
blessedcoolantcommented, Mar 24, 2022

I’m working on it. Have the image loading already but trying to see the optimal way to handle this. I’ll make a pull request when I’m done.

1reaction
Eidenzcommented, Mar 24, 2022

I can see a few uses for this now that you mention it. And doesn’t seem complicated to implement so why not

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature Request] az pipeline run --parameters (--variables ...
If anyone is looking at how to pass an array to the --parameters argument then you can use 'splatting' on the array e.g.....
Read more >
Query (Feature Service/Layer)—ArcGIS REST APIs
Supports pagination in a query layer. Use the resultOffset and resultRecordCount parameters to page through a query result. Note that when you pass...
Read more >
Get Started | Maps Static API - Google Developers
The Maps Static API returns an image (either GIF, PNG or JPEG) in response to an HTTP request via a URL. For each...
Read more >
Passing parameters to your programs as args - Core Concepts
Passing params with args. Passing the parameters as args requires that you create and expose your programs as simple command-line applications.
Read more >
Path Parameters - FastAPI
OpenAPI doesn't support a way to declare a path parameter to contain a path inside, as that could lead to scenarios that are...
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