ferrotorch/ssd300_vgg16
SSD300 with VGG-16 backbone, pretrained on COCO. Re-keyed from torchvision 0.21 ssd300_vgg16 (SSD300_VGG16_Weights.COCO_V1).
Provenance
- Upstream factory:
torchvision.models.ssd300_vgg16withweights="COCO_V1"(torchvision 0.21). - Conversion script:
ferrotorch/scripts/pin_pretrained_weights.py. - Ferrotorch issue: https://github.com/dollspace/ferrotorch/issues/1130.
- Number of trainable parameters in upstream torchvision model: 35,641,826.
- SHA-256 of
model.safetensors(this file is pinned inferrotorch-hub/src/registry.rs):2db78702af742ec5882bc62e068e5337f366bc1dc00f069c34bbce91c5109dfe.
How to load
use ferrotorch_vision::models::registry::get_model;
let model = get_model("ssd300_vgg16", /* pretrained = */ true, /* num_classes = */ 91).unwrap();
The loader downloads this file, verifies SHA-256, then calls
Module::load_state_dict(state_dict, strict=false). strict=false
is required because ferrotorch's Module::named_parameters() does
not yet expose BatchNorm2d running statistics
(running_mean / running_var), so those keys in this safetensors
file are intentionally ignored at load time until ferrotorch
issue #995 closes. They are still included here so re-uploading
is unnecessary once that work lands.
Conversion notes
All upstream torchvision keys were mapped 1:1 to ferrotorch parameter slots.
Upstream license (verbatim, torchvision 0.21 LICENSE)
BSD 3-Clause License
Copyright (c) Soumith Chintala 2016,
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support