Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/eriklindernoren/PyTorch-YOLOv3
/ load_classes
Function
load_classes
pytorchyolo/utils/utils.py:46–52 ·
view source on GitHub ↗
Loads class labels at 'path'
(path)
Source
from the content-addressed store, hash-verified
44
45
46
def
load_classes(path):
47
""
"
48
Loads
class
labels at
'path'
49
""
"
50
with
open(path,
"r"
)
as
fp:
51
names = fp.read().splitlines()
52
return
names
53
54
55
def
weights_init_normal(m):
Callers
3
run
Function · 0.90
run
Function · 0.90
run
Function · 0.90
Calls
no outgoing calls
Tested by
1
run
Function · 0.72