You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
476B

  1. # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
  2. """
  3. utils/initialization
  4. """
  5. def notebook_init():
  6. # For YOLOv5 notebooks
  7. print('Checking setup...')
  8. from IPython import display # to display images and clear console output
  9. from utils.general import emojis
  10. from utils.torch_utils import select_device # YOLOv5 imports
  11. display.clear_output()
  12. select_device(newline=False)
  13. print(emojis('Setup complete ✅'))
  14. return display