Comments (6)
BTW, please let me know if it worked or not. Don't forget do let the program know you're using bif (when specifying to path to the images, for example: '/path_to_images/*bif' )
from deeppath.
Hi,
I don't know what format is the output of your scanner but you can try.
In the pipeline, we do:
- svs > tile and convert to jpg
- sort jpg such as all jpg with the same label ends up in the same folder (folder name being the label)
- convert jpg top TFRecord
So you can either convert them to jpg first and order them as needed for TFRecord conversion, or try directly if you can convert whatever format you have to TFRecord (I have never tried, but it might accept png?)
from deeppath.
Hi @ncoudray, thanks for the reply.
The bif format is similar to the svs from Aperio (but from Roche's Ventana software).
Actually I am most interested in the tile strategy that you modified form the openslide deepzoom_tile.py. Openslide-python could manage bif files.
My question would be, is there any change that I could do to use your "0b_tileLoop_deepzoom4.py" to accept bif files as input?
Thanks again :)
from deeppath.
Just try and see if there is any error message! If you look at the openslide webpage, it says it does accept bif (https://openslide.org/).
from deeppath.
Hi @ncoudray
Well I have not enough words to express my hype right now but IT WORKED AT THE FIRST TRY. I used the example from openslide (http://openslide.cs.cmu.edu/download/openslide-testdata/Ventana/). Have to manage the background issue because I got tiles without any sample, however.
The command, just for reporting purposes (I am using it in my local machine):
python /home/jgibert/0b_tileLoop_deepzoom.py -s 299 -e 0 -j 2 -B 25 -o /path/to/output/ "/path/to/input/*bif"
I will try the cluster in the following days with more samples (we do not have GPUs at the moment) to keep track of the issue.
Thanks!
from deeppath.
Great!
BTW, for tiles without sample, you can use the "-B 25" option (you may change the 25% threshold according to your needs. The default threshold to choose what the "background" is is hard-coded and can be changed in line 84 and 87 of 0b_tileLoop_deepzoom4.py (default is a grey level of 220)
from deeppath.
Related Issues (20)
- train/test/folder image structure for fine-tuning via Inception V3 for mutation classification HOT 1
- Which exact WSIs are selected for EGFR prediction? HOT 4
- About Transfer Learning - Frozen weights?
- Exact way of doing tile aggregation by averaging output probability HOT 1
- mrxs images HOT 1
- stuck at 0b_tileLoop_deepzoom6.py when tiles a very large tiff image. HOT 2
- Clarification about Labels HOT 2
- normalize tile HOT 1
- How to compute the loss HOT 1
- How to specify certain slides in a split HOT 2
- Multi-label mutation data splits
- In Pytorch
- How can I use my data to build my json file?
- Use 0f_ HeatMap_ nClasses_ Overall.py has no result output
- Questions about cv2.findContours() HOT 1
- Color classification problem in 3-Analyze the outcome HOT 7
- Multiple Instance Learning HOT 1
- Reference image for Vahadane normalization HOT 2
- JSON file HOT 2
- Issue running bazel
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 deeppath.