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

About the execution of the "example.py" #1

Open
tiffanychang0101 opened this issue Nov 9, 2021 · 4 comments
Open

About the execution of the "example.py" #1

tiffanychang0101 opened this issue Nov 9, 2021 · 4 comments

Comments

@tiffanychang0101
Copy link

Hi, I have some problem about running the "example.py".

  • running on terminal
  • using conda virtual environment, and following README to install the environment

When I run the code using CMU-1.svs,
the process will hanging at pp.calculate_filters("slides_mpp_otsu.csv", "", "tiles_filters.csv") without errors.
This phenomenon also happened when I using my own data.

In the other hand,
if I run the code below first, then run pp.calculate_filters("slides_mpp_otsu.csv", "", "tiles_filters.csv"),
(that is, run calculate_filters funtion separately)
it will success.

What happened to this phenomenon?
Is it related to ProcessPoolExecutor?

import wsi_preprocessing as pp

# if, for instance, CMU-1.svs is in your current directory:
slides = pp.list_slides(".")

pp.save_slides_mpp_otsu(slides, "slides_mpp_otsu.csv")

# this may take some minutes, depending on your local machine
pp.run_tiling("slides_mpp_otsu.csv", "tiles.csv")

Thank you so much!!

@shanibenamitay
Copy link

Anyone encountered the following error when executing pp.save_slides_mpp_otsu(slides, "slides_mpp_otsu.csv") working on CMU-1.svs

File "", line 1, in
File "D:\Users\user\anaconda3\lib\site-packages\wsi_preprocessing\slides.py", line 37, in save_slides_mpp_otsu
vi = utils.read_image(file, access="sequential", level=2)
File "D:\Users\user\anaconda3\lib\site-packages\wsi_tile_cleanup\utils\pyvips.py", line 5, in read_image
vips_image = vips.Image.new_from_file(f"{image_path}", **kwargs)
File "D:\Users\user\anaconda3\lib\site-packages\pyvips\vimage.py", line 231, in new_from_file
return pyvips.Operation.call(name, filename,
File "D:\Users\user\anaconda3\lib\site-packages\pyvips\voperation.py", line 288, in call
raise Error('{0} does not support optional argument {1}'
pyvips.error.Error: VipsForeignLoadTiffFile does not support optional argument level

@ADE-17
Copy link

ADE-17 commented Jun 5, 2023

@lucasrla Can I work on this issue?

@LiuJin629
Copy link

@shanibenamitay I have the same question, and I don't know how to solve this question. Did you solve the question?

@LiuJin629
Copy link

What is the magnification of WSI after processing?

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

No branches or pull requests

4 participants