Skip to content
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 expand_labels to prompt snippets #72

Closed
tischi opened this issue Nov 2, 2023 · 2 comments · Fixed by #79
Closed

add expand_labels to prompt snippets #72

tischi opened this issue Nov 2, 2023 · 2 comments · Fixed by #79
Labels
enhancement New feature or request

Comments

@tischi
Copy link
Collaborator

tischi commented Nov 2, 2023

None of the chatGPTs cam up with this solution:

# Create rings
from skimage.segmentation import expand_labels
expanded_labels = expand_labels(filtered_label_image, 10)
viewer.add_labels(expanded_labels)
ring_labels = expanded_labels - filtered_label_image
viewer.add_labels(ring_labels)

We should add something to the prompt snippets about how to expand labels.

@tischi tischi added the enhancement New feature or request label Nov 2, 2023
@haesleinhuepf
Copy link
Owner

I have many examples of that kind and I would like to add them all. However, this might make our system prompt message very long. That's why I thought of doing this using fine-tuning:

In the meantime, feel free to send a PR that adds this to the system message and we can remove it later after we managed the fine-tuning.

@haesleinhuepf
Copy link
Owner

haesleinhuepf commented Nov 2, 2023

Btw. if you have pyclesperanto_prototype installed, and ask bia-bob (using model=gpt-4) to expand labels using it, it knows how to do it:

%%bob 
take the 'labels' image and expand the labels by 5 pixels using pyclesperanto.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants