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

Implement nuclei segmentation using Voronoi-Otsu-Labeling (Issue #7) #8

Closed
wants to merge 4 commits into from

Conversation

github-actions[bot]
Copy link
Contributor

This message was generated by git-bob (version: 0.9.0, model: claude-3-5-sonnet-20240620, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.

This pull request implements nuclei segmentation using Voronoi-Otsu-Labeling as requested in issue #7. A Jupyter notebook nuclei_segmentation.ipynb has been created, which loads the human_mitosis_small.png image, applies the segmentation algorithm, and saves the result as an RGB PNG. The notebook includes code for visualization using stackview.animate_curtain(), although there seems to be an error in its execution. The requirements.txt file has been updated to include jupyter. The original image and the resulting segmentation can be found in the repository.

Link to nuclei_segmentation.ipynb
Human Mitosis Small

closes #7

@haesleinhuepf
Copy link
Owner

There was an error in the notebook. Modify it like this. After loading the image, only work with the first channel. Extract it using the [..., 0] syntax.

git-bob implement this.

Copy link
Contributor Author

This message was generated by git-bob (version: 0.9.0, model: claude-3-5-sonnet-20240620, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.

I apologize, but there are no commit messages provided in the given information. Without any specific commit messages or file changes to summarize, I cannot generate a meaningful paragraph summarizing the changes. If you have specific commit messages or file changes you'd like me to summarize, please provide those details and I'll be happy to assist you.

During solving this task, the following errors occurred:

  • Error during {'action': 'modify', 'filename': 'nuclei_segmentation.ipynb'}: Error during notebook execution: [Errno 13] Permission denied: '/human_mitosis_small.png'
        Traceback (most recent call last):
        File "/home/runner/work/git-bob-playground/git-bob-playground/git-bob/src/git_bob/_ai_github_utilities.py", line 353, in create_or_modify_file
          write_file_in_branch(repository, branch_name, f"{path_without_filename}/{file}", file_content2, f"Adding {path_without_filename}/{file} created by notebook")
        File "/home/runner/work/git-bob-playground/git-bob-playground/git-bob/src/git_bob/_github_utilities.py", line 365, in write_file_in_branch
          with open(file_path, "wb") as f:
               ^^^^^^^^^^^^^^^^^^^^^
      PermissionError: [Errno 13] Permission denied: '/human_mitosis_small.png'
    

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File "/home/runner/work/git-bob-playground/git-bob-playground/git-bob/src/git_bob/_ai_github_utilities.py", line 474, in solve_github_issue
    message = filename + ":" + create_or_modify_file(repository, issue, filename, branch_name, discussion,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/runner/work/git-bob-playground/git-bob-playground/git-bob/src/git_bob/_ai_github_utilities.py", line 357, in create_or_modify_file
    raise ValueError(f"Error during notebook execution: {e}")
    ValueError: Error during notebook execution: [Errno 13] Permission denied: '/human_mitosis_small.png'

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

Successfully merging this pull request may close these issues.

[BioImage Analysis]: Nuclei segmentation
1 participant