Comments (6)
Is there any particular reason for choosing 8 - is it based on the number of processors, or testing different values?
the choice of 8 was arbitrary. i have 8 physical cores on my machine, but the main reason is i wanted the value to be set explicitly, because i assume it will have an effect on runtimes.
i get a strange issue when opening the svs file with bioformats. i commented on an existing forum post that describes the same behavior: https://forum.image.sc/t/problem-about-opening-some-svs-slides-in-qupath-v0-3-1-bio-formats-6-8-0/61404/28?u=kaczmarj
I don't think you should parallelize code by default, if somebody has a 2 core CPU and the scheduler isn't playing nice then that could freeze their system. Or, if you're going to set it by default, I prefer using the number of available cores/threads minus one or two
from qupath-docs.
i get a strange issue when opening the svs file with bioformats. i commented on an existing forum post that describes the same behavior: https://forum.image.sc/t/problem-about-opening-some-svs-slides-in-qupath-v0-3-1-bio-formats-6-8-0/61404/28?u=kaczmarj
I saw the thread - can you check https://github.com/qupath/qupath/releases/tag/v0.5.0-rc2 to see if it has already been addressed?
I don't see this issue on my Mac on v0.4.4 or v0.5.0-rc2. The pyramid levels are different from OpenSlide (including 98.8) but the appearance is fine at all levels.
Spoke too soon! I see it, but it's new... it happens with the file I've just downloaded, but not with the older one I had on my computer...
I don't think you should parallelize code by default, if somebody has a 2 core CPU and the scheduler isn't playing nice then that could freeze their system. Or, if you're going to set it by default, I prefer using the number of available cores/threads minus one or two
I currently have the default set to min(4, num_processors)
here.
Previously, the default was 1 but I found that increasing it would improve performance quite dramatically... up to a limit.
Probably the default should be updated to subtract 1 from the number of processors.
from qupath-docs.
Hi, I did the same test on MacBook Pro 14" 2021 (M1 Pro: 10 CPU cores, 16 GPU cores), 32GB unified memory, MacOS Sonoma 14.5, QuPath 0.5.1, WSInfer 0.30. I suppose openslide loader since Bio-formats is not yet supporting Apple Silicon.
I also played with batch size by adding this line:
qupath.ext.wsinfer.ui.WSInferPrefs.batchSizeProperty().setValue(16);
.
Running times:
- mps (GPU): 68 seconds (the best was 59, but I was not able to reproduce it). This can be obtained with different workers and batch sizes (up to 24-32), +/- some second.
- CPU: it seems to accept much larger batch sizes (tested up to 256). Best time 7'40" (10 workers, 256 batch size). 8 workers and default batch size: 12'07".
from qupath-docs.
Thanks @kaczmarj !
openslide loader (i think -- i'm not sure how to change this to bioformats)
It's easiest if you create a project - then the docs describe how to specify the library to read the image here.
// Set number of parallel workers qupath.ext.wsinfer.ui.WSInferPrefs.numWorkersProperty().setValue(8);
Is there any particular reason for choosing 8 - is it based on the number of processors, or testing different values?
from qupath-docs.
Is there any particular reason for choosing 8 - is it based on the number of processors, or testing different values?
the choice of 8 was arbitrary. i have 8 physical cores on my machine, but the main reason is i wanted the value to be set explicitly, because i assume it will have an effect on runtimes.
i get a strange issue when opening the svs file with bioformats. i commented on an existing forum post that describes the same behavior: https://forum.image.sc/t/problem-about-opening-some-svs-slides-in-qupath-v0-3-1-bio-formats-6-8-0/61404/28?u=kaczmarj
from qupath-docs.
Thanks!
I suppose openslide loader since Bio-formats is not yet supporting Apple Silicon.
This only affects a couple of file formats (at least .ndpi and .czi). The rest should work on Apple Silicon. With the image open in QuPath, you can check the 'Server type' under the 'Image' tab in QuPath to convert if Bio-Formats or OpenSlide was used.
from qupath-docs.
Related Issues (13)
- typos in scripting section HOT 1
- GeoJSON export, in the most recent version? HOT 2
- Add multi-viewer feature
- Update link to jdk download source HOT 1
- Add a section about vscode? HOT 1
- Add a section about building and modifying the read-the-docs documentation locally? HOT 5
- Add license info (& ReadMe)
- Provide an example script for exporting images as an OME-TIFF
- Document need for layout with TensorFlow/StarDist models in v0.5.0
- Fix v0.4 references in WSInfer docs
- Sample scripts out of date for v0.5.0 HOT 3
- Typo in documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qupath-docs.