cannot run AutoSeg3D with GPU #1480
Unanswered
dlabella29
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hi @dlabella29, since
Could you please check the env outside your virtual env? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to get AutoSeg3D to run using Windows 11 in PyCharm.
I have been able to get the swin2021 tutorial to train multiclass-multilabel MRI brain models.
For some reason the python interpreter switches to my system interpreter and cannot access my GPU/CUDA for training:
The python interpreter works with the virtual environment when running the code from the main script.
Please advise how I can get it to run with my GPU. I've been stuck for a while.
Thanks in advance!
main AutoSeg3D script:
if name == 'main':
from monai.apps.auto3dseg import AutoRunner
import os
import sys
import os
import torch
import sys
print("auto executable")
print(sys.executable)
def main():
Train.py script from within segresnet_0:
print("cuda yes or no in train script:")
print(torch.cuda.is_available())
print("train executable:")
print(sys.executable)
if package in (None, ""):
from segmenter import run_segmenter
else:
from .segmenter import run_segmenter
def run(config_file: Optional[Union[str, Sequence[str]]] = None, **override):
run_segmenter(config_file=config_file, **override)
if name == "main":
fire.Fire()
output after running AutoSeg3D
C:\Users*\PycharmProjects\AutoSegBrats\venv\Scripts\python.exe C:\Users*\PycharmProjects\AutoSegBrats\AutoSegSynapseMutuallyExclusive.py
auto executable
C:\Users*\PycharmProjects\AutoSegBrats\venv\Scripts\python.exe
cuda yes or no in main script:
True
2023-08-04 12:54:46,103 - INFO - AutoRunner using work directory ./
2023-08-04 12:54:46,105 - INFO - Setting num_fold 5 based on the input datalist C:\Users*\PycharmProjects\AutoSegBrats\brats23_short.json.
executable in main after runner called
C:\Users*\PycharmProjects\AutoSegBrats\venv\Scripts\python.exe
2023-08-04 12:54:46,132 - INFO - Skipping data analysis...
2023-08-04 12:54:46,132 - INFO - Skipping algorithm generation...
2023-08-04 12:54:46,150 - INFO - Launching: python C:\Users\dlabe\PycharmProjects\AutoSegBrats\segresnet_0\scripts\train.py run --config_file='C:/Users//PycharmProjects/AutoSegBrats/segresnet_0/configs/hyper_parameters.yaml'
cuda yes or no in train script:
False
train executable:
C:\Users**\AppData\Local\Programs\Python\Python311\python.exe
Beta Was this translation helpful? Give feedback.
All reactions