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

yolo_nas_tests.py 541 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  1. import unittest
  2. import torch
  3. from super_gradients.common.object_names import Models
  4. from super_gradients.training import models
  5. class TestYOLONAS(unittest.TestCase):
  6. def setUp(self):
  7. pass
  8. def test_yolo_nas_custom_in_channels(self):
  9. """
  10. Validate that we can create a YOLO-NAS model with custom in_channels.
  11. """
  12. model = models.get(Models.YOLO_NAS_S, arch_params=dict(in_channels=2), num_classes=17)
  13. model(torch.rand(1, 2, 640, 640))
  14. if __name__ == "__main__":
  15. unittest.main()
Tip!

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

Comments

Loading...