Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nohup problem #36

Open
Zacharich opened this issue Apr 28, 2024 · 1 comment
Open

nohup problem #36

Zacharich opened this issue Apr 28, 2024 · 1 comment

Comments

@Zacharich
Copy link

When I use nohup for training, it doesn't run
12

@ff98li
Copy link

ff98li commented May 4, 2024

Hi there,
nohup can be tricky to deal with when running python programs requiring input arguments. To run the training with nohup, I will suggest the following way:

  1. Wrap the environment variables and command inside a shell script named train.sh:
#!/bin/bash
export nnUNet_n_proc_DA=0
export CUDA_VISIBLE_DEVICES=0
nnUNetv2_train 703 2d all -tr nnUNetTrainerUMambaEnc -device cuda
  1. Save the shell script and run it using nohup: nohup bash train.sh > train_log.txt 2>&1

Could you please try this and let us know if it still doesn't run in the background?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants