torchvision 0.9.0 to 0.10.0
CRANRecord of 0.9.0Record of 0.10.0Both records side by side
- 0.9.0 and 0.10.0
- other releases
- daily mean, week by week
- after this copy’s series ends on 26 Oct 2026
No release lies between 0.9.0 and 0.10.0.
- Time between
- 174 daysno release between
- Advisories, method
Method
Security advisories
Advisories come from the R Consortium advisory database, a community record of security problems in R packages, as OSV publishes it.
- The copy
- The record is read once a day. The data is published under the Apache License 2.0 and is credited on the advisories list.
- Box under the name
- Under the package's name, a box names any advisory that affects the current release, with its fix or that there is none.
- Ranges
- Advisories state ranges, such as from 0.9.12 up to but not including 1.8.8. Each range is checked against every version CRAN has published, using the version rules R itself uses, so a release that came out after the advisory was written is still caught by its range.
- Not the package
- The rating is for the library flaw itself, not for how exposed the R package is, and it is never added up into a figure for the package.
- None knownfor either release
- Exports, method
- 36 addednone removed
- Dependencies
- 1 change1 bound
- Licence
- SameMIT + file LICENSE
- Maintainer
- SameTomasz Kalinowski
Downloads while newest
Method, downloads Method Download figures count requests logged by each distribution channel. They are not counts of installs or of users, because each channel publishes its own totals and this site reads them.Downloads
| Release | Days newest | Days counted | CRAN downloads | Daily mean |
|---|---|---|---|---|
| 0.10.0 13 to 28 Oct 2026, still the newest | 16 | 14 | 1,488 | 106 |
| 0.9.0 22 Apr to 12 Oct 2026 | 174 | 23,705 | 136 |
Daily mean while newest, 0.10.0 −22% down since 0.9.0
Counted on the CRAN mirror from each release's day to the day before the next release. This copy's daily series ends on 26 Oct 2026, so a span that runs past it is counted to that day and its daily mean covers the days counted. Other channels repackage on their own schedules, so they are not split by release.
Dependencies
Method, dependencies Method Dependent packages are other packages that list this one under Reverse dependencies
Depends, Imports or LinkingTo in their DESCRIPTION file. Those fields list the packages a package needs to install, so dependents break if this one is archived or broken.Suggests install and run without it, and use it for tests, examples or an optional feature. They are counted as Suggested by, never among the dependents, and a package that also lists it under one of the three fields is a dependent and is not counted again.
- bound or field changed
| Package | Field | 0.9.0 | 0.10.0 | |
|---|---|---|---|---|
| changed | cli | Imports | any version | >= 3.6.3 |
Side by side
| Measure | 0.9.0 | 0.10.0 | Change |
|---|---|---|---|
| Imports | 15 packages | 15 packages | 1 bound |
| Suggests | 10 packages | 10 packages |
Exports
added Added (36)
box_xyxy_to_xyxyrcityscapes_datasetitem_transform_affineitem_transform_center_cropitem_transform_cropitem_transform_hflipitem_transform_paditem_transform_perspectiveitem_transform_random_affineitem_transform_random_cropitem_transform_random_erasingitem_transform_random_horizontal_flipitem_transform_random_perspectiveitem_transform_random_resize_cropitem_transform_random_rotationitem_transform_random_vertical_flipitem_transform_resizeitem_transform_rotateitem_transform_vflipmodel_lw_detr_largemodel_lw_detr_mediummodel_lw_detr_smallmodel_lw_detr_tinymodel_rfdetr_basemodel_rfdetr_base_2model_rfdetr_base_o365model_rfdetr_largemodel_rfdetr_mediummodel_rfdetr_nanomodel_rfdetr_smallprepare_sahi_splittarget_transform_affinetarget_transform_resizetarget_transform_rotatetarget_transform_sahi_croptransform_sahi_crop
Licence and people
Method, licences Method Licence figures come from the Licences
License field of each package's DESCRIPTION file, read the way R itself reads it. No licence file is opened.tools::analyze_license() and R's own licence database, as CRAN's checks read it.| is read, so one string can offer two families.
| Part | 0.9.0 | 0.10.0 | |
|---|---|---|---|
| added | Person named | – | Sebastian Fischer |
| added | Person named | – | Srishti Dutta |
Side by side
| Measure | 0.9.0 | 0.10.0 | Change |
|---|---|---|---|
| Licence | MIT + file LICENSE | MIT + file LICENSE | |
| Maintainer | Tomasz Kalinowski | Tomasz Kalinowski | |
| People named | Tomasz Kalinowski, Daniel Falbel, Christophe Regouby, Akanksha Koshti, Derrick Richard, ANAMASGARD, Chandraveer Singh, Posit Software, PBC | Tomasz Kalinowski, Daniel Falbel, Christophe Regouby, Akanksha Koshti, Derrick Richard, ANAMASGARD, Chandraveer Singh, Srishti Dutta, Sebastian Fischer, Posit Software, PBC | changed |
Code
Method, code Method Code metrics come from reading the released source of each package version. The package is never installed, loaded or run.Code metrics
README, vignettes, a NEWS file and the shares read from its help pages. Files kept only in the repository, such as a pkgdown configuration or CI files, are read by the repository scan instead.
| Measure | 0.9.0 | 0.10.0 | Change |
|---|---|---|---|
| Lines of R code | 16,492 | 22,803 | +6,311 up |
| Files | 260 | 322 | +62 up |
| Public exports | 179 | 215 | +36 up |
| Internal functions | 164 | 306 | +142 up |
| Mean complexity | 2.6 | 2.4 | −0.2 down |
| Highest complexity | 21 | 25 | +4 up |
| Download size | 2.2 MB | 3.7 MB | +1.4 MB up |
| Source, unpacked | 3.2 MB | 5.4 MB | +2.2 MB up |
1 other figure of the code is the same in both.
Side by side
| Measure | 0.9.0 | 0.10.0 | Change |
|---|---|---|---|
| Lines of R code | 16,492 | 22,803 | +6,311 |
| Lines of compiled code | 0 | 0 | |
| Files | 260 | 322 | +62 |
| Public exports | 179 | 215 | +36 |
| Internal functions | 164 | 306 | +142 |
| Mean complexity | 2.6 | 2.4 | −0.2 |
| Highest complexity | 21 | 25 | +4 |
| Download size | 2.2 MB | 3.7 MB | +1.4 MB |
| Source, unpacked | 3.2 MB | 5.4 MB | +2.2 MB |
| Analysed with | rpkg-analyzer 0.5.2 | rpkg-analyzer 0.5.2 |
Tests
Method, tests Method Test coverage is measured by downloading each CRAN package's current source file, installing its dependencies, building it and running its tests under covr.Test coverage
| Measure | 0.9.0 | 0.10.0 | Change |
|---|---|---|---|
| Test cases | 355 | 726 | +371 up |
| Lines of tests | 6,616 | 12,139 | +5,523 up |
| Test lines per line of code | 0.40 | 0.53 | +0.13 up |
| Exports named in tests | 89.4% | 93.5% | +4.1 points up |
1 other figure of the tests is the same in both.
Side by side
| Measure | 0.9.0 | 0.10.0 | Change |
|---|---|---|---|
| Lines run by tests | 0.0% | 0.0% | |
| Test cases | 355 | 726 | +371 |
| Lines of tests | 6,616 | 12,139 | +5,523 |
| Test lines per line of code | 0.40 | 0.53 | +0.13 |
| Exports named in tests | 89.4% | 93.5% | +4.1 points |
Documentation
| Measure | 0.9.0 | 0.10.0 | Change |
|---|---|---|---|
| Return value documented | 48.6% | 57.6% | +9.0 points up |
| Lines of documentation | 7,130 | 9,440 | +2,310 up |
| Lines of guides | 262 | 854 | +592 up |
2 other figures of the documentation are the same in both.
Side by side
| Measure | 0.9.0 | 0.10.0 | Change |
|---|---|---|---|
| Exports documented | 100.0% | 100.0% | |
| Arguments documented | 100.0% | 100.0% | |
| Return value documented | 48.6% | 57.6% | +9.0 points |
| Lines of documentation | 7,130 | 9,440 | +2,310 |
| Lines of guides | 262 | 854 | +592 |
Files changed
- Files changed
- 241in 0.10.0
- Lines added
- 22,731
- Lines deleted
- 4,172
Most changed files (12 of 241)
| File | Lines added | Lines deleted |
|---|---|---|
tests/testthat/test-item-transforms-geometry.R | 1,717 | 0 |
R/models-rfdetr_detection.R | 1,525 | 0 |
R/item-transforms-geometry.R | 1,204 | 0 |
po/R-fr.po | 893 | 255 |
R/models-lw_detr.R | 1,114 | 0 |
tests/testthat/test-item-transforms-random-geometry.R | 1,101 | 0 |
R/item-transforms-random-geometry.R | 973 | 0 |
R/models-faster_rcnn.R | 435 | 441 |
inst/doc/torchvision-classes.html | 841 | 0 |
po/R-torchvision.pot | 562 | 160 |
R/models-maxvit.R | 272 | 313 |
inst/doc/visualization-utilities.html | 541 | 0 |
Each release is counted against the release before it, so a line changed twice counts twice.
Release notes
From the NEWS file of 0.10.0. Only the section for the newest release on record is kept.
model_maskrcnn_*()now return image-sized mask probabilities inmasks, shape(N, H, W)(@sebffischer, #412). Code that used the per-box(N, 28, 28)probabilities should readoutput$detections[[1]]$mask_probsinstead ofoutput$detections[[1]]$masks. For image overlays, useoutput$detections[[1]]$masks > 0.5.- State dictionaries saved with torchvision 0.9.0 need migration for
model_vit_*(),model_facenet_inception_resnet_v1(),model_convnext_*_upernet(),model_fasterrcnn_resnet50_fpn_v2()andmodel_maskrcnn_resnet50_fpn_v2(): parameters were added, removed or renamed, so these checkpoints cannot be loaded unchanged withstrict = TRUE(#405, #406, #410, #412). RF-DETR checkpoints from earlier development versions may also need migration after changes to decoder depths and resolutions (#413). There is no automatic migration for user-saved checkpoints. Keep the package version that created them, or explicitly migrate and validate the weights.model_maxvit()retains its state-dict keys and shapes, but its corrected forward computation can change predictions (#405). Support for the hosted pretrained weights does not imply compatibility with user-saved checkpoints. - When supplied,
draw_bounding_boxes()labels and colors must have length 1 or match the number of original boxes. Partial recycling is no longer supported (#415). - Added RF-DETR model family:
model_rfdetr_*, with*beingnano(),small(),medium(),base(),base_2(),base_o365()andlarge()for real-time object detection with DINOv2 backbone and deformable-attention decoder (@DerrickUnleashed, #327). - Added LW-DETR model family:
model_lw_detr_*, with*beingtiny(),small(),medium()andlarge()for real-time object detection with ViT backbone and deformable-attention decoder (@srishtiii28, #328). - Added
cityscapes_dataset()relying on manual download due to usage license (#279, @ANAMASGARD). - Added
target_transform_resizeto manage bounding_box resizing in parallel totransform_resizefor images (#337). - Added
target_transform_rotate()for converting bounding boxes from xyxy to xyxyr format with a rotation angle (@DerrickUnleashed, #338). Both operate on detection item targets (theypart of a dataset item) for composable target transform pipelines. - Added a new
draw_bounding_boxesS3 method forimage_with_rotated_boxthat renders rotated boxes as polygons (@DerrickUnleashed, #338). - Added
item_transform_hflip()for horizontally flipping dataset items, with support for detection and segmentation item types and datasets (@DerrickUnleashed, #366). - Added
item_transform_vflip()for vertically flipping dataset items, with support for detection and segmentation item types and datasets (@DerrickUnleashed, #369). - Added SAHI (Slicing Aided Hyper Inference) support via a three-function pipeline:
prepare_sahi_split()precomputes overlapping crop windows, thentransform_sahi_crop()slices images andtarget_transform_sahi_crop()adjusts detection targets per crop. (@DerrickUnleashed, #324) - Added
item_transform_affine()andtarget_transform_affine()for applying an affine transformation to a dataset item and its detection target, with support for detection and segmentation items and datasets (#367). - Added
item_transform_center_crop()for cropping images from the center to a specified size for dataset items, with support for detection and segmentation item types and datasets (@DerrickUnleashed, #370). - Added
item_transform_random_horizontal_flip()anditem_transform_random_vertical_flip()for random geometric augmentation of dataset items with probabilityp, with support for detection and segmentation item types and datasets (@DerrickUnleashed, #381). - Added
item_transform_resize()for resizing dataset items, with support for detection and segmentation item types and datasets (@srishtiii28, #362). item_transform_rotate()now supports segmentation items and datasets, rotating the masks alongside the image (@srishtiii28, #379).- Added
item_transform_crop()for cropping dataset items at a specified location and size, with support for detection and segmentation item types and datasets (@DerrickUnleashed, #371). - Added
item_transform_pad()for padding dataset items on all sides, with support for detection, segmentation and rotated-box item types and datasets (@DerrickUnleashed, #373). - Added
item_transform_perspective()for applying a perspective transform to dataset items, with support for detection and segmentation item types and datasets, and implementedtransform_perspective()for tensor images (@DerrickUnleashed, #377). - Added
item_transform_random_resize_crop()for cropping dataset items to a random area and aspect ratio before resizing them to a given size, with support for detection, segmentation and rotated-box item types and datasets (@srishtiii28, #386). - Added
item_transform_random_crop()for cropping dataset items at a random location with optional padding, with support for detection and segmentation item types and datasets (@DerrickUnleashed, #387). - Added
item_transform_random_erasing()for randomly erasing a rectangular region of dataset items with probabilityp, with support for detection, segmentation and rotated-box item types and datasets (#389). - Added
item_transform_random_affine()for applying an affine transformation drawn from the given ranges to dataset items, with support for detection, segmentation and rotated-box item types and datasets (@srishtiii28, #390). - Added
item_transform_random_perspective()for applying a random perspective transformation to dataset items with probabilityp, with support for detection, segmentation and rotated-box item types and datasets (@DerrickUnleashed, #393). - Detection datasets (
coco_detection_dataset(),pascal_detection_dataset()and therf100_*_collection()s) now inherit theobject_detection_datasetclass and their item targetytheobject_detection_targetclass. Segmentation datasets (coco_segmentation_dataset(),pascal_segmentation_dataset(),cityscapes_dataset(),oxfordiiitpet_segmentation_dataset()andrf100_peixos_segmentation_dataset()) now inherit thesegmentation_datasetclass and their item targetythesegmentation_targetclass. Target transforms now dispatch on those classes:target_transform_resize(),target_transform_rotate(),target_transform_affine()andtarget_transform_sahi_crop()take anobject_detection_target, andtarget_transform_coco_masks()andtarget_transform_trimap_masks()asegmentation_target. Bare-list targets remain supported and retain their list class (@srishtiii28, #391). - Added a "Visualization utilities" article covering
vision_make_grid(),draw_bounding_boxes(),draw_segmentation_masks()anddraw_keypoints()on the output ofmodel_rfdetr_base()andmodel_fcn_resnet50()(@srishtiii28, #400). - Added a "torchvision classes" vignette sketching what each class holds: the
image_with_bounding_box,image_with_rotated_boxandimage_with_segmentation_maskitems, theirobject_detection_targetandsegmentation_target, thesahi_splitreturned byprepare_sahi_split(), and which transform and drawing functions dispatch on each (@srishtiii28, #396). draw_bounding_boxes()now keeps labels and colors aligned with their boxes whenlazy = TRUEfilters out degenerate boxes (#415).- Fixed box alignment in padded center crops and random crops, and corrected five- and ten-crop geometry (#414).
model_vit_*()predictions now depend on the input image: attention runs over the patches of each image, the positional embedding is registered so it is loaded from the pretrained weights, and layer norm useseps = 1e-6(@sebffischer, #405).model_maxvit()is re-ported from PyTorch and now reproduces its predictions with the pretrained weights (@sebffischer, #405).draw_bounding_boxes()now accepts degenerate bounding boxes by default with thelazy = TRUEparameter (#400).vision_make_grid()now accepts multiple 3D tensors with mixed uint8 and float dtype, while preserving positionalscale,num_rows,paddingandpad_valuearguments (#398). Useper_rowfor the number of images per row; namednum_rowsremains supported as a deprecated alias.transform_random_affine()now accepts a bare number forshear. It used to widendegreesinstead ofshear, which left the shear range incomplete and made the sampling fail (#390).item_transform_rotate()no longer truncates the rotation angle to a whole number of degrees when the target stores its boxes as an integer tensor, aspascal_detection_dataset()does (#360).transform_random_resized_crop()no longer loses the last row and column of the image, and no longer pads with a black edge when it falls back to a central crop (#386).transform_crop()now pads the result with zeros when the crop leaves the image, so that the output always has the requested size. It previously returned only the part of the image the crop covered, which could even be empty.transform_center_crop()now pads correctly when the requestedsizeis not square. Height and width were used in the wrong order in the padding branch, so e.g. cropping a(16, 20)image toc(24, 30)returned a(22, 0)image.transform_rgb_to_grayscale()now returns an image with one channel instead of dropping the channel dimension, i.e.(3, H, W)becomes(1, H, W)and not(H, W). This also fixestransform_grayscale()for batched input.hsv2rgb()computed the fractional part of the hue sector and thetcomponent incorrectly, so converting an image to HSV and back did not return the original image. This affectedtransform_adjust_hue()andtransform_color_jitter(hue = ...).transform_adjust_hue()now handles negativehue_factors, which produced a black image before, and rejects images that do not have 1 or 3 channels instead of silently dropping the additional ones.nms()now usestorchvisionlib::ops_nms()when torchvisionlib is installed, speeding up inference formodel_fasterrcnn_*()andmodel_maskrcnn_*()(#321, #322).- Lists and vectors are now preallocated to their target size instead of being grown one element at a time (@srishtiii28, #335).
model_convnext_small_22k1k()now defaults tonum_classes = 1000. It is pretrained on Imagenet 22k and fine-tuned on Imagenet 1k, so its published weights have a 1000-class head, and the previous default of21841madepretrained = TRUEfail to load the state dict. (@sebffischer, #376)model_inception_v3(pretrained = TRUE, aux_logits = FALSE)now actually removes the auxiliary classifier. Previouslyaux_logits = FALSEwas silently ignored for pretrained models, so the network returned a list of both heads instead of a single tensor in training mode. (@sebffischer, #375)model_rfdetr_*()now match the reference rf-detr implementation numerically, accept padding masks, and use the official configurations of thesmall,mediumandbasevariants (@sebffischer, #413).model_fasterrcnn_*()andmodel_maskrcnn_*()inference now reproduces torchvision numerically, supports batches, and loads pretrained weights strictly (@sebffischer, #412).model_inception_v3()andmodel_resnet*()without pretrained weights now initialise all layers as in PyTorch, andzero_init_residual = TRUEtakes effect (@sebffischer, #411).- The
progressargument of the model constructors is now honoured (@sebffischer, #411). model_convnext_*_upernet()now apply the per-stage layer norms of the pretrained backbone and default tonum_classes = 150whenpretrained = TRUE(@sebffischer, #410).model_convnext_*_detection()default tonum_classes = 90and passscore_thresh,nms_threshanddetections_per_imgto the detection head (@sebffischer, #410).model_convnext_*()blocks now apply stochastic depth in training mode (@sebffischer, #410).model_efficientnet_*()andmodel_efficientnet_v2_*()now match torchvision (SiLU squeeze-excitation, batch norm settings), apply stochastic depth in training, and acceptdropoutwithout shifting other arguments (@sebffischer, #409).model_mobilenet_v3_*()use torchvision's batch norm settings, gain anorm_layerargument and stay in training mode whenpretrained = FALSE;model_mobilenet_v2()handles stages withn = 0(@sebffischer, #409).model_fcn_resnet*()now use a dilated backbone as in PyTorch, fixing the pretrained segmentations, and no longer download the backbone weights whenpretrained = TRUE(@sebffischer, #408).model_deeplabv3_*()keep the auxiliary classifier whenpretrained = TRUEandaux_loss = NULL, as documented (@sebffischer, #408).model_lw_detr_*()now match the reference LW-DETR implementation numerically, which strongly improves the pretrained detections (@sebffischer, #407).model_facenet_pnet(),model_facenet_rnet(),model_facenet_onet()andmodel_mtcnn()take the face softmax over the class dimension instead of the batch dimension (@sebffischer, #406).model_facenet_inception_resnet_v1()now matches facenet-pytorch (missingrepeat_1stage,Mixed_6apaddings);pretrained = TRUEloads"vggface2"andnum_classesdefaults toNULL(@sebffischer, #406).
Unchanged and not compared
Licence and maintainer are the same in both releases. No advisory is known for either release.
Checks, the install tree, dependents and the repository describe the package as it is now, so they are on the package page.