Open mcamp-ata opened 3 months ago
Cannot reproduce (I'm on macOS). UNet seems to work fine for me.
Did you start Python with PYTHON_JULIACALL_HANDLE_SIGNALS=yes
in the environment variable? Otherwise it can have segfaults due to multithreading (since Python has a global interpreter lock).
Affects: PythonCall / JuliaCall / Both [delete as appropriate]
Describe the bug
When I use
UNet.jl
from Python usingjuliacall
I get asegmentation fault (core dumped)
. When I went to reproduce this error with a minimal example it did work once, but then failed a second time. If I had to guess it might be related to the actual data being passed to theUnet
model; maybe its spitting out a type that isn't compatible with Python.This is a minimal example of the error. I activate my environment that has
UNet.jl
installed in it, then create some random data to simulate an image and pass it to an untrained model. I get the same results with real images and a trained model.Your system I am running NixOS 23.11 and below is the Poetry environment that I am using with
juliacall
. Julia is version 1.10.0.