question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`create_extension` was removed in pytorch-1.0

See original GitHub issue

create_extension was supported by pytorch v0.4.1 only starting 1.0 pytorch the function was erased in favour of cpp extensions but it’s not a drop-in replacement

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
GreenTeaHuacommented, Nov 17, 2019

torchvision.ops.nms(boxes, scores, iou_threshold) Performs non-maximum suppression (NMS) on the boxes according to their intersection-over-union (IoU).

NMS iteratively removes lower scoring boxes which have an
IoU greater than iou_threshold with another (higher scoring)
box.

Parameters
----------
boxes : Tensor[N, 4])  bounding boxes坐标. 格式:(x1, y1, x2, y2)
    boxes to perform NMS on. They
    are expected to be in (x1, y1, x2, y2) format
scores : Tensor[N]   bounding boxes得分
    scores for each one of the boxes
iou_threshold : float IoU过滤阈值
    discards all overlapping
    boxes with IoU < iou_threshold

Returns
-------
keep : Tensor
    int64 tensor with the indices
    of the elements that have been kept
    by NMS, sorted in decreasing order of scores
    NMS过滤后的bouding boxes索引(降序排列)
"""
0reactions
sermakarevichcommented, Nov 25, 2019

Yes, I missed that code for pytorch 1.0 is not in master.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to adapt /lib/nms/build.py to support pytorch1.0? #146
I changed the lib/nms/build.py as: import os import torch #from torch.utils.ffi import create_extension from torch.utils.cpp_extension ...
Read more >
Custom C++ and CUDA Extensions - PyTorch
BuildExtension performs a number of required configuration steps and checks and also manages mixed compilation in the case of mixed C++/CUDA extensions. And ......
Read more >
Install specific PyTorch version (pytorch==1.0.1) - Stack Overflow
conda install pytorch==1.0.1 Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found