|
44 | 44 | "metadata": {}, |
45 | 45 | "outputs": [], |
46 | 46 | "source": [ |
47 | | - "!pip install open-iris" |
| 47 | + "!pip install onnx onnxruntime pydantic==1.10.16 huggingface-hub pyyaml\n", |
| 48 | + "!pip install --no-deps open-iris" |
48 | 49 | ] |
49 | 50 | }, |
50 | 51 | { |
|
125 | 126 | "```yaml\n", |
126 | 127 | "metadata:\n", |
127 | 128 | " pipeline_name: iris_pipeline\n", |
128 | | - " iris_version: 1.1.1\n", |
| 129 | + " iris_version: 1.9.4\n", |
129 | 130 | "```\n", |
130 | 131 | "\n", |
131 | 132 | "The top YAML file contains `IRISPipeline` metadata, used to both describe `IRISPipeline` and specify package parameters that are later used to verify compatibility between `iris` package version/release and later, specified in the `pipeline` YAML file section, pipeline's graph.\n", |
|
205 | 206 | "outputs": [], |
206 | 207 | "source": [ |
207 | 208 | "default_pipeline_conf = {\n", |
208 | | - " \"metadata\": {\"pipeline_name\": \"iris_pipeline\", \"iris_version\": \"1.1.1\"},\n", |
| 209 | + " \"metadata\": {\"pipeline_name\": \"iris_pipeline\", \"iris_version\": \"1.9.4\"},\n", |
209 | 210 | " \"pipeline\": [\n", |
210 | 211 | " {\n", |
211 | 212 | " \"name\": \"segmentation\",\n", |
|
423 | 424 | "source": [ |
424 | 425 | "iris_pipeline = iris.IRISPipeline(config=default_pipeline_conf)\n", |
425 | 426 | "\n", |
426 | | - "assert iris_pipeline(img_data=img_pixels, eye_side=\"left\")[\"error\"] is None" |
| 427 | + "assert iris_pipeline(iris.IRImage(img_data=img_pixels, image_id=\"image_id\", eye_side=\"left\"))[\"error\"] is None" |
427 | 428 | ] |
428 | 429 | }, |
429 | 430 | { |
|
480 | 481 | "outputs": [], |
481 | 482 | "source": [ |
482 | 483 | "new_pipeline_conf = {\n", |
483 | | - " \"metadata\": {\"pipeline_name\": \"iris_pipeline\", \"iris_version\": \"1.1.1\"},\n", |
| 484 | + " \"metadata\": {\"pipeline_name\": \"iris_pipeline\", \"iris_version\": \"1.9.4\"},\n", |
484 | 485 | " \"pipeline\": [\n", |
485 | 486 | " {\n", |
486 | 487 | " \"name\": \"segmentation\",\n", |
|
702 | 703 | "source": [ |
703 | 704 | "iris_pipeline = iris.IRISPipeline(config=new_pipeline_conf)\n", |
704 | 705 | "\n", |
705 | | - "assert iris_pipeline(img_data=img_pixels, eye_side=\"left\")[\"error\"] is None" |
| 706 | + "assert iris_pipeline(iris.IRImage(img_data=img_pixels, image_id=\"image_id\", eye_side=\"left\"))[\"error\"] is None" |
706 | 707 | ] |
707 | 708 | }, |
708 | 709 | { |
|
759 | 760 | "outputs": [], |
760 | 761 | "source": [ |
761 | 762 | "default_pipeline_conf = {\n", |
762 | | - " \"metadata\": {\"pipeline_name\": \"iris_pipeline\", \"iris_version\": \"1.1.1\"},\n", |
| 763 | + " \"metadata\": {\"pipeline_name\": \"iris_pipeline\", \"iris_version\": \"1.9.4\"},\n", |
763 | 764 | " \"pipeline\": [\n", |
764 | 765 | " {\n", |
765 | 766 | " \"name\": \"segmentation\",\n", |
|
981 | 982 | "source": [ |
982 | 983 | "iris_pipeline = iris.IRISPipeline(config=default_pipeline_conf)\n", |
983 | 984 | "\n", |
984 | | - "assert iris_pipeline(img_data=img_pixels, eye_side=\"left\")[\"error\"] is None" |
| 985 | + "assert iris_pipeline(iris.IRImage(img_data=img_pixels, image_id=\"image_id\", eye_side=\"left\"))[\"error\"] is None" |
985 | 986 | ] |
986 | 987 | }, |
987 | 988 | { |
|
1034 | 1035 | "outputs": [], |
1035 | 1036 | "source": [ |
1036 | 1037 | "new_pipeline_conf = {\n", |
1037 | | - " \"metadata\": {\"pipeline_name\": \"iris_pipeline\", \"iris_version\": \"1.1.1\"},\n", |
| 1038 | + " \"metadata\": {\"pipeline_name\": \"iris_pipeline\", \"iris_version\": \"1.9.4\"},\n", |
1038 | 1039 | " \"pipeline\": [\n", |
1039 | 1040 | " {\n", |
1040 | 1041 | " \"name\": \"segmentation\",\n", |
|
1256 | 1257 | "source": [ |
1257 | 1258 | "iris_pipeline = iris.IRISPipeline(config=new_pipeline_conf)\n", |
1258 | 1259 | "\n", |
1259 | | - "assert iris_pipeline(img_data=img_pixels, eye_side=\"left\")[\"error\"] is None" |
| 1260 | + "assert iris_pipeline(iris.IRImage(img_data=img_pixels, image_id=\"image_id\", eye_side=\"left\"))[\"error\"] is None" |
1260 | 1261 | ] |
1261 | 1262 | }, |
1262 | 1263 | { |
|
1371 | 1372 | ], |
1372 | 1373 | "metadata": { |
1373 | 1374 | "kernelspec": { |
1374 | | - "display_name": "Python 3 (ipykernel)", |
| 1375 | + "display_name": "open_iris_dev", |
1375 | 1376 | "language": "python", |
1376 | 1377 | "name": "python3" |
1377 | 1378 | }, |
|
0 commit comments