biomag-lab / hypocotyl-UNet

MIT License
11 stars 2 forks source link

Using measure.py from another python file with subprocess.run("python measure.py...") #10

Closed darvida closed 4 years ago

darvida commented 4 years ago

Hello, i'm using a tkinter file to run a the measure.py file on a selected image, but when i'm using the "subprocess" package with the function subprocess.run("python measure.py --images_path=C:/....") the tkinter window crashes, do you know what it might be ? I can see the following output in the Python Console window: Loading dataset... Dataset loaded Loading model... Model loaded Measuring images... Measuring IMG_0917.png

But i wont get any output in the result folder

cosmic-cortex commented 4 years ago

Unfortunately, I have zero experience with tkinter, so I don't know what might be the problem.