andreped / fast-stain-normalization

:star2: GPU-accelerated stain normalization command line tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

invalid int value: 'torch'

ajr82 opened this issue · comments

commented

Hi Andre,

I am using Python 3.9.7 on Windows 10 and have installed all requirements (from requirements.txt).

However when I run the following:
fastStainNorm --ref /Ref/001.tif --img /Images --out /Imagesnorm

/Images is where I have my images to normalize and /Imagesnorm is the output folder.
/Ref/001.tif is where my reference image is located.

I get the following error:
faststainnorm: error: argument --backend: invalid int value: 'torch'

@ajr82 this is a silly bug. I had chosen the wrong type for a variable.

I have added a fix for it here. Try reinstalling and let me know how it went :]

I setup some unit tests for assessing that this works across multiple python versions and operating systems. Seems to work for both single and batch mode. You can see the build history here.

Then I believe this issue has been solved. Let me know if it worked for you or if you have any other issues.

For new issues, please, create a new issue.

commented

Thank you very much! I tried it out and it works well now.