Skip to content

Parallelized LENS and fix vision error.#120

Merged
SimoneMartino98 merged 4 commits intoGMPavanLab:mainfrom
SimoneMartino98:main
Sep 26, 2025
Merged

Parallelized LENS and fix vision error.#120
SimoneMartino98 merged 4 commits intoGMPavanLab:mainfrom
SimoneMartino98:main

Conversation

@SimoneMartino98
Copy link
Copy Markdown
Collaborator

Hello everyone, @matteobecchi @andrewtarzia,

For several reasons, I thought speeding up the LENS performance could be very useful for me and for the group.
I parallelized the neighbor count (in the same way I did for spatialaverage). Now it is possible to choose the number of cores to use for the calculation.

Minor fix:
During development, I discovered that a new version of ultralytics had been released, which broke one of the four tests. The issue was related to a plot that, due to the dummy dataset, cannot be printed (and is also completely useless during the test phase), so I simply avoid the plotting.

@SimoneMartino98 SimoneMartino98 added the enhancement New feature or request label Sep 26, 2025
Copy link
Copy Markdown
Collaborator

@andrewtarzia andrewtarzia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - can you ensure there is a test that specifically runs with ncpus>1 and checks the results are unchanged compared to ncpus=1?

@SimoneMartino98
Copy link
Copy Markdown
Collaborator Author

Looks good to me - can you ensure there is a test that specifically runs with ncpus>1 and checks the results are unchanged compared to ncpus=1?

All should be ok now

@matteobecchi
Copy link
Copy Markdown
Collaborator

Everything looks good to me!

@SimoneMartino98 SimoneMartino98 merged commit fe15619 into GMPavanLab:main Sep 26, 2025
11 checks passed
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 this pull request may close these issues.

3 participants