Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#578 Feature/sg 516 support head replacement for local pretrained weights unknown dataset

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-516_support_head_replacement_for_local_pretrained_weights_unknown_dataset
1
2
3
4
5
6
7
8
9
10
11
12
13
  1. import sys
  2. from super_gradients.common.crash_handler.crash_tips_setup import setup_crash_tips
  3. from super_gradients.common.crash_handler.exception_monitoring_setup import setup_pro_user_monitoring
  4. from super_gradients.common.crash_handler.exception import register_exceptions
  5. def setup_crash_handler():
  6. """Setup the environment to handle crashes, with crash tips and more."""
  7. is_setup_crash_tips = setup_crash_tips()
  8. is_setup_pro_user_monitoring = setup_pro_user_monitoring()
  9. if is_setup_crash_tips or is_setup_pro_user_monitoring: # We don't want to wrap sys.excepthook when not required
  10. sys.excepthook = register_exceptions(sys.excepthook)
Discard
Tip!

Press p or to see the previous file or, n or to see the next file