Unverified Commit ed2a0adb authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Cleanup weight docs (#7074)



* _weight_size -> _file_size

* Better formatting of individual weights tables

* Remove file size from main tables to avoid confusion with weight size (as in RAM)

* Remove unnecessary (file size) suffix

* Fix CI error?

* Formatting
Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
parent 90cfb10d
...@@ -363,12 +363,11 @@ def inject_weight_metadata(app, what, name, obj, options, lines): ...@@ -363,12 +363,11 @@ def inject_weight_metadata(app, what, name, obj, options, lines):
v_sample = ", ".join(v[:max_visible]) v_sample = ", ".join(v[:max_visible])
v = f"{v_sample}, ... ({len(v)-max_visible} omitted)" if len(v) > max_visible else v_sample v = f"{v_sample}, ... ({len(v)-max_visible} omitted)" if len(v) > max_visible else v_sample
elif k == "_ops": elif k == "_ops":
if obj.__name__.endswith("_QuantizedWeights"): v = f"{v:.2f}"
v = f"{v} giga instructions per sec" k = "GIPS" if obj.__name__.endswith("_QuantizedWeights") else "GFLOPS"
else: elif k == "_file_size":
v = f"{v} giga floating-point operations per sec" k = "File size"
elif k == "_weight_size": v = f"{v:.1f} MB"
v = f"{v} MB (file size)"
table.append((str(k), str(v))) table.append((str(k), str(v)))
table = tabulate(table, tablefmt="rst") table = tabulate(table, tablefmt="rst")
...@@ -396,9 +395,7 @@ def generate_weights_table(module, table_name, metrics, dataset, include_pattern ...@@ -396,9 +395,7 @@ def generate_weights_table(module, table_name, metrics, dataset, include_pattern
ops_name = "GIPS" if "QuantizedWeights" in weights_endswith else "GFLOPS" ops_name = "GIPS" if "QuantizedWeights" in weights_endswith else "GFLOPS"
metrics_keys, metrics_names = zip(*metrics) metrics_keys, metrics_names = zip(*metrics)
column_names = ( column_names = ["Weight"] + list(metrics_names) + ["Params"] + [ops_name, "Recipe"] # Final column order
["Weight"] + list(metrics_names) + ["Params"] + [ops_name, "Size (MB)", "Recipe"]
) # Final column order
column_names = [f"**{name}**" for name in column_names] # Add bold column_names = [f"**{name}**" for name in column_names] # Add bold
content = [] content = []
...@@ -407,14 +404,13 @@ def generate_weights_table(module, table_name, metrics, dataset, include_pattern ...@@ -407,14 +404,13 @@ def generate_weights_table(module, table_name, metrics, dataset, include_pattern
f":class:`{w} <{type(w).__name__}>`", f":class:`{w} <{type(w).__name__}>`",
*(w.meta["_metrics"][dataset][metric] for metric in metrics_keys), *(w.meta["_metrics"][dataset][metric] for metric in metrics_keys),
f"{w.meta['num_params']/1e6:.1f}M", f"{w.meta['num_params']/1e6:.1f}M",
f"{w.meta['_ops']:.3f}", f"{w.meta['_ops']:.2f}",
f"{round(w.meta['_weight_size'], 1):.1f}",
f"`link <{w.meta['recipe']}>`__", f"`link <{w.meta['recipe']}>`__",
] ]
content.append(row) content.append(row)
column_widths = ["110"] + ["18"] * len(metrics_names) + ["18"] * 3 + ["10"] column_widths = ["110"] + ["18"] * len(metrics_names) + ["18"] * 2 + ["10"]
widths_table = " ".join(column_widths) widths_table = " ".join(column_widths)
table = tabulate(content, headers=column_names, tablefmt="rst") table = tabulate(content, headers=column_names, tablefmt="rst")
......
...@@ -296,7 +296,7 @@ def get_ops(model: torch.nn.Module, weight: Weights, height=512, width=512): ...@@ -296,7 +296,7 @@ def get_ops(model: torch.nn.Module, weight: Weights, height=512, width=512):
return round(flops, 3) return round(flops, 3)
def get_weight_size_mb(weight): def get_file_size_mb(weight):
weights_path = os.path.join(os.getenv("HOME"), ".cache/torch/hub/checkpoints", weight.url.split("/")[-1]) weights_path = os.path.join(os.getenv("HOME"), ".cache/torch/hub/checkpoints", weight.url.split("/")[-1])
weights_size_mb = os.path.getsize(weights_path) / 1024 / 1024 weights_size_mb = os.path.getsize(weights_path) / 1024 / 1024
......
...@@ -4,7 +4,7 @@ import os ...@@ -4,7 +4,7 @@ import os
import pytest import pytest
import test_models as TM import test_models as TM
import torch import torch
from common_extended_utils import get_ops, get_weight_size_mb from common_extended_utils import get_file_size_mb, get_ops
from torchvision import models from torchvision import models
from torchvision.models._api import get_model_weights, Weights, WeightsEnum from torchvision.models._api import get_model_weights, Weights, WeightsEnum
from torchvision.models._utils import handle_legacy_interface from torchvision.models._utils import handle_legacy_interface
...@@ -172,12 +172,12 @@ def test_schema_meta_validation(model_fn): ...@@ -172,12 +172,12 @@ def test_schema_meta_validation(model_fn):
"unquantized", "unquantized",
"_docs", "_docs",
"_ops", "_ops",
"_weight_size", "_file_size",
} }
# mandatory fields for each computer vision task # mandatory fields for each computer vision task
classification_fields = {"categories", ("_metrics", "ImageNet-1K", "acc@1"), ("_metrics", "ImageNet-1K", "acc@5")} classification_fields = {"categories", ("_metrics", "ImageNet-1K", "acc@1"), ("_metrics", "ImageNet-1K", "acc@5")}
defaults = { defaults = {
"all": {"_metrics", "min_size", "num_params", "recipe", "_docs", "_weight_size", "_ops"}, "all": {"_metrics", "min_size", "num_params", "recipe", "_docs", "_file_size", "_ops"},
"models": classification_fields, "models": classification_fields,
"detection": {"categories", ("_metrics", "COCO-val2017", "box_map")}, "detection": {"categories", ("_metrics", "COCO-val2017", "box_map")},
"quantization": classification_fields | {"backend", "unquantized"}, "quantization": classification_fields | {"backend", "unquantized"},
...@@ -245,8 +245,8 @@ def test_schema_meta_validation(model_fn): ...@@ -245,8 +245,8 @@ def test_schema_meta_validation(model_fn):
if not w.name.isupper(): if not w.name.isupper():
bad_names.append(w) bad_names.append(w)
if get_weight_size_mb(w) != w.meta.get("_weight_size"): if get_file_size_mb(w) != w.meta.get("_file_size"):
incorrect_meta.append((w, "_weight_size")) incorrect_meta.append((w, "_file_size"))
assert not problematic_weights assert not problematic_weights
assert not incorrect_meta assert not incorrect_meta
......
...@@ -68,7 +68,7 @@ class AlexNet_Weights(WeightsEnum): ...@@ -68,7 +68,7 @@ class AlexNet_Weights(WeightsEnum):
} }
}, },
"_ops": 0.714, "_ops": 0.714,
"_weight_size": 233.087, "_file_size": 233.087,
"_docs": """ "_docs": """
These weights reproduce closely the results of the paper using a simplified training recipe. These weights reproduce closely the results of the paper using a simplified training recipe.
""", """,
......
...@@ -220,7 +220,7 @@ class ConvNeXt_Tiny_Weights(WeightsEnum): ...@@ -220,7 +220,7 @@ class ConvNeXt_Tiny_Weights(WeightsEnum):
} }
}, },
"_ops": 4.456, "_ops": 4.456,
"_weight_size": 109.119, "_file_size": 109.119,
}, },
) )
DEFAULT = IMAGENET1K_V1 DEFAULT = IMAGENET1K_V1
...@@ -240,7 +240,7 @@ class ConvNeXt_Small_Weights(WeightsEnum): ...@@ -240,7 +240,7 @@ class ConvNeXt_Small_Weights(WeightsEnum):
} }
}, },
"_ops": 8.684, "_ops": 8.684,
"_weight_size": 191.703, "_file_size": 191.703,
}, },
) )
DEFAULT = IMAGENET1K_V1 DEFAULT = IMAGENET1K_V1
...@@ -260,7 +260,7 @@ class ConvNeXt_Base_Weights(WeightsEnum): ...@@ -260,7 +260,7 @@ class ConvNeXt_Base_Weights(WeightsEnum):
} }
}, },
"_ops": 15.355, "_ops": 15.355,
"_weight_size": 338.064, "_file_size": 338.064,
}, },
) )
DEFAULT = IMAGENET1K_V1 DEFAULT = IMAGENET1K_V1
...@@ -280,7 +280,7 @@ class ConvNeXt_Large_Weights(WeightsEnum): ...@@ -280,7 +280,7 @@ class ConvNeXt_Large_Weights(WeightsEnum):
} }
}, },
"_ops": 34.361, "_ops": 34.361,
"_weight_size": 754.537, "_file_size": 754.537,
}, },
) )
DEFAULT = IMAGENET1K_V1 DEFAULT = IMAGENET1K_V1
......
...@@ -278,7 +278,7 @@ class DenseNet121_Weights(WeightsEnum): ...@@ -278,7 +278,7 @@ class DenseNet121_Weights(WeightsEnum):
} }
}, },
"_ops": 2.834, "_ops": 2.834,
"_weight_size": 30.845, "_file_size": 30.845,
}, },
) )
DEFAULT = IMAGENET1K_V1 DEFAULT = IMAGENET1K_V1
...@@ -298,7 +298,7 @@ class DenseNet161_Weights(WeightsEnum): ...@@ -298,7 +298,7 @@ class DenseNet161_Weights(WeightsEnum):
} }
}, },
"_ops": 7.728, "_ops": 7.728,
"_weight_size": 110.369, "_file_size": 110.369,
}, },
) )
DEFAULT = IMAGENET1K_V1 DEFAULT = IMAGENET1K_V1
...@@ -318,7 +318,7 @@ class DenseNet169_Weights(WeightsEnum): ...@@ -318,7 +318,7 @@ class DenseNet169_Weights(WeightsEnum):
} }
}, },
"_ops": 3.36, "_ops": 3.36,
"_weight_size": 54.708, "_file_size": 54.708,
}, },
) )
DEFAULT = IMAGENET1K_V1 DEFAULT = IMAGENET1K_V1
...@@ -338,7 +338,7 @@ class DenseNet201_Weights(WeightsEnum): ...@@ -338,7 +338,7 @@ class DenseNet201_Weights(WeightsEnum):
} }
}, },
"_ops": 4.291, "_ops": 4.291,
"_weight_size": 77.373, "_file_size": 77.373,
}, },
) )
DEFAULT = IMAGENET1K_V1 DEFAULT = IMAGENET1K_V1
......
...@@ -389,7 +389,7 @@ class FasterRCNN_ResNet50_FPN_Weights(WeightsEnum): ...@@ -389,7 +389,7 @@ class FasterRCNN_ResNet50_FPN_Weights(WeightsEnum):
} }
}, },
"_ops": 134.38, "_ops": 134.38,
"_weight_size": 159.743, "_file_size": 159.743,
"_docs": """These weights were produced by following a similar training recipe as on the paper.""", "_docs": """These weights were produced by following a similar training recipe as on the paper.""",
}, },
) )
...@@ -410,7 +410,7 @@ class FasterRCNN_ResNet50_FPN_V2_Weights(WeightsEnum): ...@@ -410,7 +410,7 @@ class FasterRCNN_ResNet50_FPN_V2_Weights(WeightsEnum):
} }
}, },
"_ops": 280.371, "_ops": 280.371,
"_weight_size": 167.104, "_file_size": 167.104,
"_docs": """These weights were produced using an enhanced training recipe to boost the model accuracy.""", "_docs": """These weights were produced using an enhanced training recipe to boost the model accuracy.""",
}, },
) )
...@@ -431,7 +431,7 @@ class FasterRCNN_MobileNet_V3_Large_FPN_Weights(WeightsEnum): ...@@ -431,7 +431,7 @@ class FasterRCNN_MobileNet_V3_Large_FPN_Weights(WeightsEnum):
} }
}, },
"_ops": 4.494, "_ops": 4.494,
"_weight_size": 74.239, "_file_size": 74.239,
"_docs": """These weights were produced by following a similar training recipe as on the paper.""", "_docs": """These weights were produced by following a similar training recipe as on the paper.""",
}, },
) )
...@@ -452,7 +452,7 @@ class FasterRCNN_MobileNet_V3_Large_320_FPN_Weights(WeightsEnum): ...@@ -452,7 +452,7 @@ class FasterRCNN_MobileNet_V3_Large_320_FPN_Weights(WeightsEnum):
} }
}, },
"_ops": 0.719, "_ops": 0.719,
"_weight_size": 74.239, "_file_size": 74.239,
"_docs": """These weights were produced by following a similar training recipe as on the paper.""", "_docs": """These weights were produced by following a similar training recipe as on the paper.""",
}, },
) )
......
...@@ -663,7 +663,7 @@ class FCOS_ResNet50_FPN_Weights(WeightsEnum): ...@@ -663,7 +663,7 @@ class FCOS_ResNet50_FPN_Weights(WeightsEnum):
} }
}, },
"_ops": 128.207, "_ops": 128.207,
"_weight_size": 123.608, "_file_size": 123.608,
"_docs": """These weights were produced by following a similar training recipe as on the paper.""", "_docs": """These weights were produced by following a similar training recipe as on the paper.""",
}, },
) )
......
...@@ -329,7 +329,7 @@ class KeypointRCNN_ResNet50_FPN_Weights(WeightsEnum): ...@@ -329,7 +329,7 @@ class KeypointRCNN_ResNet50_FPN_Weights(WeightsEnum):
} }
}, },
"_ops": 133.924, "_ops": 133.924,
"_weight_size": 226.054, "_file_size": 226.054,
"_docs": """ "_docs": """
These weights were produced by following a similar training recipe as on the paper but use a checkpoint These weights were produced by following a similar training recipe as on the paper but use a checkpoint
from an early epoch. from an early epoch.
...@@ -350,7 +350,7 @@ class KeypointRCNN_ResNet50_FPN_Weights(WeightsEnum): ...@@ -350,7 +350,7 @@ class KeypointRCNN_ResNet50_FPN_Weights(WeightsEnum):
} }
}, },
"_ops": 137.42, "_ops": 137.42,
"_weight_size": 226.054, "_file_size": 226.054,
"_docs": """These weights were produced by following a similar training recipe as on the paper.""", "_docs": """These weights were produced by following a similar training recipe as on the paper.""",
}, },
) )
......
...@@ -371,7 +371,7 @@ class MaskRCNN_ResNet50_FPN_Weights(WeightsEnum): ...@@ -371,7 +371,7 @@ class MaskRCNN_ResNet50_FPN_Weights(WeightsEnum):
} }
}, },
"_ops": 134.38, "_ops": 134.38,
"_weight_size": 169.84, "_file_size": 169.84,
"_docs": """These weights were produced by following a similar training recipe as on the paper.""", "_docs": """These weights were produced by following a similar training recipe as on the paper.""",
}, },
) )
...@@ -393,7 +393,7 @@ class MaskRCNN_ResNet50_FPN_V2_Weights(WeightsEnum): ...@@ -393,7 +393,7 @@ class MaskRCNN_ResNet50_FPN_V2_Weights(WeightsEnum):
} }
}, },
"_ops": 333.577, "_ops": 333.577,
"_weight_size": 177.219, "_file_size": 177.219,
"_docs": """These weights were produced using an enhanced training recipe to boost the model accuracy.""", "_docs": """These weights were produced using an enhanced training recipe to boost the model accuracy.""",
}, },
) )
......
...@@ -691,7 +691,7 @@ class RetinaNet_ResNet50_FPN_Weights(WeightsEnum): ...@@ -691,7 +691,7 @@ class RetinaNet_ResNet50_FPN_Weights(WeightsEnum):
} }
}, },
"_ops": 151.54, "_ops": 151.54,
"_weight_size": 130.267, "_file_size": 130.267,
"_docs": """These weights were produced by following a similar training recipe as on the paper.""", "_docs": """These weights were produced by following a similar training recipe as on the paper.""",
}, },
) )
...@@ -712,7 +712,7 @@ class RetinaNet_ResNet50_FPN_V2_Weights(WeightsEnum): ...@@ -712,7 +712,7 @@ class RetinaNet_ResNet50_FPN_V2_Weights(WeightsEnum):
} }
}, },
"_ops": 152.238, "_ops": 152.238,
"_weight_size": 146.037, "_file_size": 146.037,
"_docs": """These weights were produced using an enhanced training recipe to boost the model accuracy.""", "_docs": """These weights were produced using an enhanced training recipe to boost the model accuracy.""",
}, },
) )
......
...@@ -40,7 +40,7 @@ class SSD300_VGG16_Weights(WeightsEnum): ...@@ -40,7 +40,7 @@ class SSD300_VGG16_Weights(WeightsEnum):
} }
}, },
"_ops": 34.858, "_ops": 34.858,
"_weight_size": 135.988, "_file_size": 135.988,
"_docs": """These weights were produced by following a similar training recipe as on the paper.""", "_docs": """These weights were produced by following a similar training recipe as on the paper.""",
}, },
) )
......
...@@ -199,7 +199,7 @@ class SSDLite320_MobileNet_V3_Large_Weights(WeightsEnum): ...@@ -199,7 +199,7 @@ class SSDLite320_MobileNet_V3_Large_Weights(WeightsEnum):
} }
}, },
"_ops": 0.583, "_ops": 0.583,
"_weight_size": 13.418, "_file_size": 13.418,
"_docs": """These weights were produced by following a similar training recipe as on the paper.""", "_docs": """These weights were produced by following a similar training recipe as on the paper.""",
}, },
) )
......
...@@ -465,7 +465,7 @@ class EfficientNet_B0_Weights(WeightsEnum): ...@@ -465,7 +465,7 @@ class EfficientNet_B0_Weights(WeightsEnum):
} }
}, },
"_ops": 0.386, "_ops": 0.386,
"_weight_size": 20.451, "_file_size": 20.451,
"_docs": """These weights are ported from the original paper.""", "_docs": """These weights are ported from the original paper.""",
}, },
) )
...@@ -489,7 +489,7 @@ class EfficientNet_B1_Weights(WeightsEnum): ...@@ -489,7 +489,7 @@ class EfficientNet_B1_Weights(WeightsEnum):
} }
}, },
"_ops": 0.687, "_ops": 0.687,
"_weight_size": 30.134, "_file_size": 30.134,
"_docs": """These weights are ported from the original paper.""", "_docs": """These weights are ported from the original paper.""",
}, },
) )
...@@ -509,7 +509,7 @@ class EfficientNet_B1_Weights(WeightsEnum): ...@@ -509,7 +509,7 @@ class EfficientNet_B1_Weights(WeightsEnum):
} }
}, },
"_ops": 0.687, "_ops": 0.687,
"_weight_size": 30.136, "_file_size": 30.136,
"_docs": """ "_docs": """
These weights improve upon the results of the original paper by using a modified version of TorchVision's These weights improve upon the results of the original paper by using a modified version of TorchVision's
`new training recipe `new training recipe
...@@ -537,7 +537,7 @@ class EfficientNet_B2_Weights(WeightsEnum): ...@@ -537,7 +537,7 @@ class EfficientNet_B2_Weights(WeightsEnum):
} }
}, },
"_ops": 1.088, "_ops": 1.088,
"_weight_size": 35.174, "_file_size": 35.174,
"_docs": """These weights are ported from the original paper.""", "_docs": """These weights are ported from the original paper.""",
}, },
) )
...@@ -561,7 +561,7 @@ class EfficientNet_B3_Weights(WeightsEnum): ...@@ -561,7 +561,7 @@ class EfficientNet_B3_Weights(WeightsEnum):
} }
}, },
"_ops": 1.827, "_ops": 1.827,
"_weight_size": 47.184, "_file_size": 47.184,
"_docs": """These weights are ported from the original paper.""", "_docs": """These weights are ported from the original paper.""",
}, },
) )
...@@ -585,7 +585,7 @@ class EfficientNet_B4_Weights(WeightsEnum): ...@@ -585,7 +585,7 @@ class EfficientNet_B4_Weights(WeightsEnum):
} }
}, },
"_ops": 4.394, "_ops": 4.394,
"_weight_size": 74.489, "_file_size": 74.489,
"_docs": """These weights are ported from the original paper.""", "_docs": """These weights are ported from the original paper.""",
}, },
) )
...@@ -609,7 +609,7 @@ class EfficientNet_B5_Weights(WeightsEnum): ...@@ -609,7 +609,7 @@ class EfficientNet_B5_Weights(WeightsEnum):
} }
}, },
"_ops": 10.266, "_ops": 10.266,
"_weight_size": 116.864, "_file_size": 116.864,
"_docs": """These weights are ported from the original paper.""", "_docs": """These weights are ported from the original paper.""",
}, },
) )
...@@ -633,7 +633,7 @@ class EfficientNet_B6_Weights(WeightsEnum): ...@@ -633,7 +633,7 @@ class EfficientNet_B6_Weights(WeightsEnum):
} }
}, },
"_ops": 19.068, "_ops": 19.068,
"_weight_size": 165.362, "_file_size": 165.362,
"_docs": """These weights are ported from the original paper.""", "_docs": """These weights are ported from the original paper.""",
}, },
) )
...@@ -657,7 +657,7 @@ class EfficientNet_B7_Weights(WeightsEnum): ...@@ -657,7 +657,7 @@ class EfficientNet_B7_Weights(WeightsEnum):
} }
}, },
"_ops": 37.746, "_ops": 37.746,
"_weight_size": 254.675, "_file_size": 254.675,
"_docs": """These weights are ported from the original paper.""", "_docs": """These weights are ported from the original paper.""",
}, },
) )
...@@ -683,7 +683,7 @@ class EfficientNet_V2_S_Weights(WeightsEnum): ...@@ -683,7 +683,7 @@ class EfficientNet_V2_S_Weights(WeightsEnum):
} }
}, },
"_ops": 8.366, "_ops": 8.366,
"_weight_size": 82.704, "_file_size": 82.704,
"_docs": """ "_docs": """
These weights improve upon the results of the original paper by using a modified version of TorchVision's These weights improve upon the results of the original paper by using a modified version of TorchVision's
`new training recipe `new training recipe
...@@ -713,7 +713,7 @@ class EfficientNet_V2_M_Weights(WeightsEnum): ...@@ -713,7 +713,7 @@ class EfficientNet_V2_M_Weights(WeightsEnum):
} }
}, },
"_ops": 24.582, "_ops": 24.582,
"_weight_size": 208.01, "_file_size": 208.01,
"_docs": """ "_docs": """
These weights improve upon the results of the original paper by using a modified version of TorchVision's These weights improve upon the results of the original paper by using a modified version of TorchVision's
`new training recipe `new training recipe
...@@ -746,7 +746,7 @@ class EfficientNet_V2_L_Weights(WeightsEnum): ...@@ -746,7 +746,7 @@ class EfficientNet_V2_L_Weights(WeightsEnum):
} }
}, },
"_ops": 56.08, "_ops": 56.08,
"_weight_size": 454.573, "_file_size": 454.573,
"_docs": """These weights are ported from the original paper.""", "_docs": """These weights are ported from the original paper.""",
}, },
) )
......
...@@ -291,7 +291,7 @@ class GoogLeNet_Weights(WeightsEnum): ...@@ -291,7 +291,7 @@ class GoogLeNet_Weights(WeightsEnum):
} }
}, },
"_ops": 1.498, "_ops": 1.498,
"_weight_size": 49.731, "_file_size": 49.731,
"_docs": """These weights are ported from the original paper.""", "_docs": """These weights are ported from the original paper.""",
}, },
) )
......
...@@ -423,7 +423,7 @@ class Inception_V3_Weights(WeightsEnum): ...@@ -423,7 +423,7 @@ class Inception_V3_Weights(WeightsEnum):
} }
}, },
"_ops": 5.713, "_ops": 5.713,
"_weight_size": 103.903, "_file_size": 103.903,
"_docs": """These weights are ported from the original paper.""", "_docs": """These weights are ported from the original paper.""",
}, },
) )
......
...@@ -787,7 +787,7 @@ class MaxVit_T_Weights(WeightsEnum): ...@@ -787,7 +787,7 @@ class MaxVit_T_Weights(WeightsEnum):
} }
}, },
"_ops": 5.558, "_ops": 5.558,
"_weight_size": 118.769, "_file_size": 118.769,
"_docs": """These weights reproduce closely the results of the paper using a similar training recipe.""", "_docs": """These weights reproduce closely the results of the paper using a similar training recipe.""",
}, },
) )
......
...@@ -232,7 +232,7 @@ class MNASNet0_5_Weights(WeightsEnum): ...@@ -232,7 +232,7 @@ class MNASNet0_5_Weights(WeightsEnum):
} }
}, },
"_ops": 0.104, "_ops": 0.104,
"_weight_size": 8.591, "_file_size": 8.591,
"_docs": """These weights reproduce closely the results of the paper.""", "_docs": """These weights reproduce closely the results of the paper.""",
}, },
) )
...@@ -254,7 +254,7 @@ class MNASNet0_75_Weights(WeightsEnum): ...@@ -254,7 +254,7 @@ class MNASNet0_75_Weights(WeightsEnum):
} }
}, },
"_ops": 0.215, "_ops": 0.215,
"_weight_size": 12.303, "_file_size": 12.303,
"_docs": """ "_docs": """
These weights were trained from scratch by using TorchVision's `new training recipe These weights were trained from scratch by using TorchVision's `new training recipe
<https://pytorch.org/blog/how-to-train-state-of-the-art-models-using-torchvision-latest-primitives/>`_. <https://pytorch.org/blog/how-to-train-state-of-the-art-models-using-torchvision-latest-primitives/>`_.
...@@ -278,7 +278,7 @@ class MNASNet1_0_Weights(WeightsEnum): ...@@ -278,7 +278,7 @@ class MNASNet1_0_Weights(WeightsEnum):
} }
}, },
"_ops": 0.314, "_ops": 0.314,
"_weight_size": 16.915, "_file_size": 16.915,
"_docs": """These weights reproduce closely the results of the paper.""", "_docs": """These weights reproduce closely the results of the paper.""",
}, },
) )
...@@ -300,7 +300,7 @@ class MNASNet1_3_Weights(WeightsEnum): ...@@ -300,7 +300,7 @@ class MNASNet1_3_Weights(WeightsEnum):
} }
}, },
"_ops": 0.526, "_ops": 0.526,
"_weight_size": 24.246, "_file_size": 24.246,
"_docs": """ "_docs": """
These weights were trained from scratch by using TorchVision's `new training recipe These weights were trained from scratch by using TorchVision's `new training recipe
<https://pytorch.org/blog/how-to-train-state-of-the-art-models-using-torchvision-latest-primitives/>`_. <https://pytorch.org/blog/how-to-train-state-of-the-art-models-using-torchvision-latest-primitives/>`_.
......
...@@ -195,7 +195,7 @@ class MobileNet_V2_Weights(WeightsEnum): ...@@ -195,7 +195,7 @@ class MobileNet_V2_Weights(WeightsEnum):
} }
}, },
"_ops": 0.301, "_ops": 0.301,
"_weight_size": 13.555, "_file_size": 13.555,
"_docs": """These weights reproduce closely the results of the paper using a simple training recipe.""", "_docs": """These weights reproduce closely the results of the paper using a simple training recipe.""",
}, },
) )
...@@ -212,7 +212,7 @@ class MobileNet_V2_Weights(WeightsEnum): ...@@ -212,7 +212,7 @@ class MobileNet_V2_Weights(WeightsEnum):
} }
}, },
"_ops": 0.301, "_ops": 0.301,
"_weight_size": 13.598, "_file_size": 13.598,
"_docs": """ "_docs": """
These weights improve upon the results of the original paper by using a modified version of TorchVision's These weights improve upon the results of the original paper by using a modified version of TorchVision's
`new training recipe `new training recipe
......
...@@ -308,7 +308,7 @@ class MobileNet_V3_Large_Weights(WeightsEnum): ...@@ -308,7 +308,7 @@ class MobileNet_V3_Large_Weights(WeightsEnum):
} }
}, },
"_ops": 0.217, "_ops": 0.217,
"_weight_size": 21.114, "_file_size": 21.114,
"_docs": """These weights were trained from scratch by using a simple training recipe.""", "_docs": """These weights were trained from scratch by using a simple training recipe.""",
}, },
) )
...@@ -326,7 +326,7 @@ class MobileNet_V3_Large_Weights(WeightsEnum): ...@@ -326,7 +326,7 @@ class MobileNet_V3_Large_Weights(WeightsEnum):
} }
}, },
"_ops": 0.217, "_ops": 0.217,
"_weight_size": 21.107, "_file_size": 21.107,
"_docs": """ "_docs": """
These weights improve marginally upon the results of the original paper by using a modified version of These weights improve marginally upon the results of the original paper by using a modified version of
TorchVision's `new training recipe TorchVision's `new training recipe
...@@ -352,7 +352,7 @@ class MobileNet_V3_Small_Weights(WeightsEnum): ...@@ -352,7 +352,7 @@ class MobileNet_V3_Small_Weights(WeightsEnum):
} }
}, },
"_ops": 0.057, "_ops": 0.057,
"_weight_size": 9.829, "_file_size": 9.829,
"_docs": """ "_docs": """
These weights improve upon the results of the original paper by using a simple training recipe. These weights improve upon the results of the original paper by using a simple training recipe.
""", """,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment