Skip to content

Commit

Permalink
Merge pull request #212 from thodkatz/update-dependencies
Browse files Browse the repository at this point in the history
Update submodules to the latest changes
  • Loading branch information
thodkatz authored Oct 11, 2024
2 parents fb680c1 + 7877797 commit c5ac7d6
Show file tree
Hide file tree
Showing 65 changed files with 634 additions and 1,264 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ tiktorch/__pycache/
/#wrapper.py#
/.#wrapper.py#
.py~
unet_sample.zip
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Reasons to install the server component:

We have a how-to for the set up of a tiktorch prediction server (powerful machine with nvidia GPU) to connect to from your client (e.g. ilastik on a laptop): [Installation](#installation).

If you are interested in running Model Zoo networks from Python directly, have a look at [`bioimageio.core`](https://github.com/bioimage-io/core-bioimage-io-python), where we have an [example notebook](https://github.com/bioimage-io/core-bioimage-io-python/blob/main/example/bioimageio-core-usage.ipynb) to get you started.
If you are interested in running Model Zoo networks from Python directly, have a look at [`bioimageio.core`](https://github.com/bioimage-io/core-bioimage-io-python), where we have an [example notebook](https://github.com/bioimage-io/core-bioimage-io-python/blob/main/example/model_usage.ipynb) to get you started.


## Installation
Expand Down
1 change: 1 addition & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ test:
- python 3.9.*
- pytest
- pytest-grpc
- pytest-timeout
- cpuonly
- ilastik-pytorch-version-helper-cpu
imports:
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ dependencies:
- pytest
- pytest-cov
- pytest-grpc
- pytest-timeout
- bump2version
- mypy
- pre_commit
Expand Down
40 changes: 1 addition & 39 deletions proto/inference.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ syntax = "proto3";

service Inference {
rpc CreateModelSession(CreateModelSessionRequest) returns (ModelSession) {}

rpc CloseModelSession(ModelSession) returns (Empty) {}

rpc CreateDatasetDescription(CreateDatasetDescriptionRequest) returns (DatasetDescription) {}
Expand Down Expand Up @@ -56,34 +57,6 @@ message NamedFloats {
}


/* InputShape will always be expected to have `shape` set.
* For `ShapeType` PARAMETRIZED, also a `stepShape` has to be given.
* ref: https://github.com/bioimage-io/spec-bioimage-io/blob/gh-pages/model_spec_latest.md */
message InputShape {
enum ShapeType {
EXPLICIT = 0;
PARAMETRIZED = 1;
}

ShapeType shapeType = 1;
// shape is min, when PARAMETRIZED
NamedInts shape = 2;
NamedInts stepShape = 4;
}

message OutputShape {
enum ShapeType {
EXPLICIT = 0;
IMPLICIT = 1;
}
ShapeType shapeType = 1;
NamedInts shape = 2;
NamedInts halo = 3;
string referenceTensor = 4;
NamedFloats scale = 5;
NamedFloats offset = 6;
}

message ModelSession {
string id = 1;
}
Expand Down Expand Up @@ -136,19 +109,8 @@ message PredictResponse {

message Empty {}


service FlightControl {
rpc Ping(Empty) returns (Empty) {}
rpc Shutdown(Empty) returns (Empty) {}
}

message ModelInfo {
repeated string deviceIds = 1;
}

message CreateModelSessionChunkedRequest {
oneof data {
ModelInfo info = 1;
Blob chunk = 2;
}
}
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[pytest]
python_files = test_*.py
addopts =
--timeout 10
-v
-s
--color=yes
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
],
packages=find_packages(exclude=["tests"]), # Required
install_requires=[
"bioimageio.spec==0.4.9.post5",
"bioimageio.core==0.5.11",
"bioimageio.spec==0.5.3.2",
"bioimageio.core==0.6.8",
"grpcio>=1.31",
"numpy<2", # pytorch 2.2.2-py3.9_0 for macos is compiled with numpy 1.*
"protobuf",
Expand Down
Loading

0 comments on commit c5ac7d6

Please sign in to comment.