xp1632 / VPE_IP

0 stars 0 forks source link

【Pipeline Enhancement】More Generalized Pipeline #80

Open xp1632 opened 2 months ago

xp1632 commented 2 months ago

Difference in Pipeline v1 and v2: https://github.com/Max-ChenFei/VPE_IP/issues/78#issuecomment-2027343270


Pipeline Feasibility for Python Library

xp1632 commented 2 months ago

_cgi-bin_mmwebwx-bin_webwxgetmsgimg__ MsgID=3134571555169656594 skey=@crypt_e8cb0f1c_f596fa88785b491b90263d12edff2261 mmweb_appid=wx_webfilehelper


we can see, to batch or not to batch, depending on the code snippet, let's see if offering a code template that would vary based on different type of Ops would work

xp1632 commented 2 months ago

How JIPipe do: getting input-output information from OpInfo and run it in java module

And i checked the JIPipe code again, only find they are justing calling Op based on scijava Module, nothing special image

but they carefully defined all types of inputs and outputs:

image image

xp1632 commented 2 months ago

Difference between JIPipe and our methods


xp1632 commented 2 months ago

Challenge type problems : step 1, java-python rough mapping

image

xp1632 commented 2 months ago

Challenge type problems: step 2 and solution: more detailed mapping table



xp1632 commented 2 months ago
xp1632 commented 2 months ago

Step 1 ---->Step 2 from One Node filter.median to Second Node threshold.otsu

Problem 1 : Multi Operation list for one Op_name



Solution 1: Op Matching based on Parameter Number and default priority:


Solution 2: Multi-Node for Multi-Operation

xp1632 commented 1 month ago

Problem 2: Should we modify extraction rule of the extract_op_parameter method?

image

ij.op().run("filter.median", ij.py.jargs( ** Extracted parameters **))

- And for calling "threshold.otsu", we didn't use jargs(), should we add another extraction rule for it?


The answer is No!

image

image


Conclusion:

xp1632 commented 1 month ago

The key to get a more generalized pipeline

is to generate the Code Snippet


We've finished the initial code snippet generation in https://github.com/xp1632/VPE_IP/commit/a99d0e08458d529fd7f74f6a3f42367bb7354c32

xp1632 commented 1 month ago

Multi-operation under one op name problem

image

xp1632 commented 1 month ago

Demanding JSON structure for ImaegJ nodes


To achieve this kind of structure, we need a file structure as :

image

image image


xp1632 commented 1 month ago

Generate Structured JSON files for ImageJ package:

image


Reason could be


Reason for previous not-working package import

image

xp1632 commented 3 weeks ago

Thoughts about incompatible tuple, list type in Chaldene