Open jrhomburger opened 2 years ago
This happens when your python vtk
version is more recent than the vtk
version used for compiling mirtk
. You probably have vtk
version 9 in python and vtk
7 in mirtk
. Two possible solutions are:
mirtk
version from github and compile it with vtk
version 9 (only works since July 2022)vtk
to write the old file format version in python
writer.SetFileVersion(42)
You might still get a warning but it should work.
Thanks - this is helpful. Saw many of your changes - have you considered merging that back into the main repository? I think many of those are much needed for this to work with current data.
also, were you able to get this work with current version TF or did you have to use a past version of TF? It may be worth including a requirements.txt
with versions of the packages you are using. In the past, we had to downgrade TF to 2.1 for the models to work.
I'd be happy to merge my changes into the main repository. I was hesitant to create a pull request because many of these changes just make the code work with current library versions while breaking backwards compatibility. If @baiwenjia is interested, in merging anyway, I'll gladly create a pull request.
It is a good idea to document working library versions. For me, the code works with tensorflow
version 2.9.1.
Receiving the following error when running:
Resulting in:
I have MIRTK installed and VTK package linked - not sure what is causing this error.