DarkNet¶
The DarkNet model is based on the "You Only Look Once: Unified, Real-Time Object Detection" paper.
Architecture overview¶
This paper introduces a highway network with powerful feature representation abilities.
The key takeaways from the paper are the following:
- improves the Inception architecture by using conv1x1
- replaces ReLU by LeakyReLU
Model builders¶
The following model builders can be used to instantiate a DarknetV1 model, with or
without pre-trained weights. All the model builders internally rely on the
DarknetV1 base class.
DarknetV1
¶
DarknetV1(layout: list[list[int]], num_classes: int = 10, in_channels: int = 3, stem_channels: int = 64, act_layer: Module | None = None, norm_layer: Callable[[int], Module] | None = None, drop_layer: Callable[..., Module] | None = None, conv_layer: Callable[..., Module] | None = None)
Bases: Sequential
Source code in holocron/models/classification/darknet.py
darknet24
¶
Darknet-24 from "You Only Look Once: Unified, Real-Time Object Detection"
| PARAMETER | DESCRIPTION |
|---|---|
pretrained
|
If True, returns a model pre-trained on ImageNet
TYPE:
|
progress
|
If True, displays a progress bar of the download to stderr
TYPE:
|
kwargs
|
keyword args of
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
DarknetV1
|
classification model |