Skip to content

Commit

Permalink
Default W&B setting False (ultralytics#17164)
Browse files Browse the repository at this point in the history
Co-authored-by: UltralyticsAssistant <[email protected]>
  • Loading branch information
glenn-jocher and UltralyticsAssistant authored Oct 25, 2024
1 parent f80d0d7 commit 61a4550
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ultralytics/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,12 +568,16 @@ def is_kaggle():

def is_jupyter():
"""
Check if the current script is running inside a Jupyter Notebook. Verified on Colab, Jupyterlab, Kaggle, Paperspace.
Check if the current script is running inside a Jupyter Notebook.
Returns:
(bool): True if running inside a Jupyter Notebook, False otherwise.
Note:
- Only works on Colab and Kaggle, other environments like Jupyterlab and Paperspace are not reliably detectable.
- "get_ipython" in globals() method suffers false positives when IPython package installed manually.
"""
return "get_ipython" in globals()
return IS_COLAB or IS_KAGGLE


def is_docker() -> bool:
Expand Down Expand Up @@ -801,10 +805,10 @@ def get_user_config_dir(sub_dir="Ultralytics"):
PROC_DEVICE_MODEL = read_device_model() # is_jetson() and is_raspberrypi() depend on this constant
ONLINE = is_online()
IS_COLAB = is_colab()
IS_KAGGLE = is_kaggle()
IS_DOCKER = is_docker()
IS_JETSON = is_jetson()
IS_JUPYTER = is_jupyter()
IS_KAGGLE = is_kaggle()
IS_PIP_PACKAGE = is_pip_package()
IS_RASPBERRYPI = is_raspberrypi()
GIT_DIR = get_git_dir()
Expand Down Expand Up @@ -1195,7 +1199,7 @@ def __init__(self, file=SETTINGS_FILE, version="0.0.6"):
"neptune": True, # Neptune integration
"raytune": True, # Ray Tune integration
"tensorboard": True, # TensorBoard logging
"wandb": True, # Weights & Biases logging
"wandb": False, # Weights & Biases logging
"vscode_msg": True, # VSCode messaging
}

Expand Down

0 comments on commit 61a4550

Please sign in to comment.