wandb / wandb

🔥 A tool for visualizing and tracking your machine learning experiments. This repo contains the CLI and Python API.

Home Page:https://wandb.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wandb.init(reinit=True) doesn't work in Windows

vanpelt opened this issue · comments

The command crashes with the following error:

OSError: [WinError 6] The handle is invalid

Currently the only work around is to not use reinit and instead call your training script in it's own sub process:

import os
for i in range(10):
    os.system("python train.py args")

The underlying cause is the way Windows handles file descriptors and inheritance. We're currently working on a major refactor that will change the ways in which file descriptors are used. If you're hitting this issue, please follow this thread and we'll update everyone once this is fixed.

Thanks for making a note on this one Chris

Will this be fixed soon?

import wandb
import logging
logging.basicConfig(filename='log.log')
wandb.init()

This issue seems to make this snippet fail on Windows too

We're working on improvements to the windows experiments in our next generation CLI: https://github.com/wandb/client-ng You can try the next generation by running pip install -U --pre wandb. We're still pushing improvements actively and it's not quit feature parity with the official version. @noklam let us know if you're still seeing issue with the new cli.

This issue is stale because it has been open 60 days with no activity.