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

#869 Add DagsHub Logger to Super Gradients

Merged
Ghost merged 1 commits into Deci-AI:master from timho102003:dagshub_logger
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  1. from typing_extensions import Protocol, runtime_checkable
  2. @runtime_checkable
  3. class HasPreprocessingParams(Protocol):
  4. """
  5. Protocol interface for torch datasets that support getting preprocessing params, later to be passed to a model
  6. that obeys NeedsPreprocessingParams. This interface class serves a purpose of explicitly indicating whether a torch dataset has
  7. get_dataset_preprocessing_params implemented.
  8. """
  9. def get_dataset_preprocessing_params(self):
  10. ...
  11. @runtime_checkable
  12. class HasPredict(Protocol):
  13. """
  14. Protocol class serves a purpose of explicitly indicating whether a torch model has the functionality of ".predict"
  15. as defined in SG.
  16. """
  17. def set_dataset_processing_params(self, *args, **kwargs):
  18. """Set the processing parameters for the dataset."""
  19. ...
  20. def predict(self, images, *args, **kwargs):
  21. ...
  22. def predict_webcam(self, *args, **kwargs):
  23. ...
Discard
Tip!

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