-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add predict command #406
Merged
Merged
add predict command #406
Changes from 38 commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
4aba807
add predict command
FynnBe 25aa7c0
remove unused import
FynnBe 9146c3b
improve model_descr type check
FynnBe 87dc749
remove commented old prediction commands
FynnBe b47e2b3
allow to package to folder
FynnBe bbfbbac
document packaging to folder
FynnBe dcd8334
add Get started section
FynnBe 70a19e8
update type annotations for pyright 1.1.373
FynnBe abf5d20
pin spec
FynnBe b3402f7
use load_model_description
FynnBe 21e24cb
improve predict command error for missing input
FynnBe 17b4bbe
update test_bioimageio_spec_version
FynnBe eb9872d
include weight format in test name
FynnBe 216bf00
make sure directory to save tensor in exists
FynnBe 397c7a2
allow a mapping for save_sample input arg path
FynnBe 7c78620
only calculate stats if any measures are missing
FynnBe 3765812
add inspection helpers to get required measures
FynnBe 4e256f3
allow axis ids to be given as strings
FynnBe 1724589
use pydantic for stat measures and make (small) tensors json serializ…
FynnBe ea2cac7
rewrite CLI
FynnBe a0b00fb
we need a main func in main for the endpoint
FynnBe b97c330
update dependencies
FynnBe aa3e934
remove invalid alias
FynnBe 9c98c7e
WIP update README.md
FynnBe 3f8af93
fix typing issue
FynnBe d7f0a78
update tests
FynnBe b557940
add default path
FynnBe 4b01578
update test_scale_range_axes
FynnBe 2d22241
add default package path
FynnBe 04e9f0c
read command line arguments from file
FynnBe 8418fed
remove default path
FynnBe d8fb60f
reference file formats from imageio
FynnBe dcfd021
add cli file example
FynnBe 6a9bb2d
complete test command
FynnBe bfd7c13
add output path explicitly
FynnBe c36fec9
bump patch version
FynnBe 4497fbf
set output path explicitly
FynnBe f24b96a
black
FynnBe d7c4547
add conda env doc link
FynnBe 3dfcc6c
remove clutter
FynnBe 352422f
improve CLI
FynnBe 4052343
log inputs
FynnBe b8b7f6a
pass without shorten input sequence
FynnBe 4418a08
drop singleton batch axis when saving a tensor
FynnBe fe471ef
improve logging
FynnBe 01e43fc
improve example
FynnBe d704e53
remove unused imports
FynnBe ba29ddc
improve doc strings
FynnBe c629a91
use argparse.RawTextHelpFormatter
FynnBe aa5c316
add weight_format option to predict command
FynnBe eec7bde
make sure example dir exists
FynnBe 915e56c
fail for missing input samples
FynnBe 103ca42
ignore empty initial dataset measures
FynnBe ee9be64
perform IO checks based on env var
FynnBe a0ae60c
add section on logging level
FynnBe 5b1bd86
fix tqdm call
FynnBe d9fd4f6
insert singleton axis at right position
FynnBe 83d3290
improve stat serialization
FynnBe d5a0814
fix tensor_custom_before_validator
FynnBe ca0169e
try all array permutations to match singleton requirements
FynnBe 2605728
fix _get_array_view
FynnBe e2d1616
actually remove YAML_FILE
FynnBe 090d979
improve saving with imageio
FynnBe 7be6a7e
bump imageio to make sure v3 is available
FynnBe cbe02ba
simplify io with imageio.v3
FynnBe 6c68179
allow dims to be AxisLike
FynnBe b9897da
improve help text formatting
FynnBe 29de8e6
update 'Get started' section
FynnBe f6c3bd7
do not rule out singleton axis as easily
FynnBe e5d83ba
allow space and time axes to be singletons
FynnBe 6147d4d
avoid 'ABCMeta' object is not subscriptable
FynnBe 1d3000b
bump spec
FynnBe c766f12
bump spec in dev envs
FynnBe 14f599e
add predict_sample_with_fixed_blocking
FynnBe bc98d65
do not convert axis id
FynnBe 5a9c1c7
do not convert axes ids for proc ops
FynnBe 83d6a92
expose more functions
FynnBe 9726e60
update digest_spec
FynnBe 2ec9e9e
AxisId is also AxisLike!
FynnBe 88b5fca
Merge remote-tracking branch 'origin/main' into predict_cmd
FynnBe 7306f98
remove unused dependency
FynnBe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"version": "0.6.8" | ||
"version": "0.6.9" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
from bioimageio.core.commands import main | ||
from bioimageio.core.cli import Bioimageio | ||
|
||
|
||
def main(): | ||
cli = Bioimageio() # pyright: ignore[reportCallIssue] | ||
cli.run() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a minor heads up to fill this link :)