File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,7 @@ def test_generate(art_warning):
48
48
torch .serialization .add_safe_globals ([ultralytics .nn .tasks .Bottleneck ])
49
49
torch .serialization .add_safe_globals ([ultralytics .nn .tasks .Detect ])
50
50
torch .serialization .add_safe_globals ([Conv ])
51
- # from ultralytics.nn.modules import Conv
52
- # torch.serialization.add_safe_globals([ultralytics.nn.modules.Conv])
51
+ torch .serialization .add_safe_globals ([ultralytics .nn .modules .Conv ])
53
52
# torch.serialization.add_safe_globals([ultralytics.nn.modules.Concat])
54
53
# torch.serialization.add_safe_globals([ultralytics.nn.modules.DFL])
55
54
@@ -103,7 +102,7 @@ def test_check_params(art_warning):
103
102
torch .serialization .add_safe_globals ([ultralytics .nn .tasks .Bottleneck ])
104
103
torch .serialization .add_safe_globals ([ultralytics .nn .tasks .Detect ])
105
104
torch .serialization .add_safe_globals ([Conv ])
106
- # torch.serialization.add_safe_globals([ultralytics.nn.modules.Conv])
105
+ torch .serialization .add_safe_globals ([ultralytics .nn .modules .Conv ])
107
106
# torch.serialization.add_safe_globals([ultralytics.nn.modules.Concat])
108
107
# torch.serialization.add_safe_globals([ultralytics.nn.modules.DFL])
109
108
You can’t perform that action at this time.
0 commit comments