Skip to content

code hangs when creating a dir #7956

Discussion options

You must be logged in to vote

Can you try to remove the decorator and instead do this?

def on_train_start(self, trainer, pl_module):
        print("global_rank is", trainer.global_rank)
        if trainer.is_global_zero:
            print("create output directory (rank {})".format(self.model.global_rank))
                if not isdir(aiOutputDir +"outputs_train"):
                    os.mkdir(aiOutputDir +"outputs_train")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nickKyr
Comment options

Answer selected by awaelchli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants