Comments (9)
pred_boxes[0] = x.data.view(nB*nA*nH*nW) + grid_x
pred_boxes[1] = y.data.view(nB*nA*nH*nW) + grid_y
pred_boxes[2] = torch.exp(w.data).view(nB*nA*nH*nW) * anchor_w
pred_boxes[3] = torch.exp(h.data).view(nB*nA*nH*nW) * anchor_h
from fewshot_detection.
@bahulkark hello,I met the same mistake with you. Have you fixed it ?
from fewshot_detection.
from fewshot_detection.
I met the same mistake with you
from fewshot_detection.
Anyone have a fix for this?
from fewshot_detection.
Is the pytorch version wrong?
from fewshot_detection.
I am using torch 1.4 and can perform the forward pass through the model error is in the regionloss.py pred_boxes[0] = x.data + grid_x here x.data is a 4D tensor while grid_x is a 2D tensor
from fewshot_detection.
I am using pytorch 1.7. With the view() method I can reshape and fit in the addition
pred_boxes[0] = x.data.view(nBnAnHnW) + grid_x
pred_boxes[1] = y.data.view(nBnAnHnW)+ grid_y
pred_boxes[2] = torch.exp(w.data).view(nBnAnHnW) * anchor_w
pred_boxes[3] = torch.exp(h.data).view(nBnAnHnW) * anchor_h
from fewshot_detection.
change region_loss.py
294-297:
pred_boxes[0] = x.data.view(nBnAnHnW) + grid_x
pred_boxes[1] = y.data.view(nBnAnHnW) + grid_y
pred_boxes[2] = torch.exp(w.data).view(nBnAnHnW) * anchor_w
pred_boxes[3] = torch.exp(h.data).view(nBnAnHnW) * anchor_h
and this problem can be resolved
from fewshot_detection.
Related Issues (20)
- 能否共享一下t-SNE的代码?并分享一下如何使用。感谢
- Which version of cuda is needed
- RuntimeError: The size of tensor a (3) must match the size of tensor b (864) at non-singleton dimension 3 HOT 5
- Strange Code in Dataset.py
- Strange about the meta-learning?
- few-shot training issues
- TypeError: conv2d() received an invalid combination of arguments HOT 6
- map all get 0 HOT 6
- Question about the paper
- Request for learnet module
- Inconsistencies in COCO splits HOT 1
- How long does the training step take? HOT 1
- TypeError: conv2d() received an invalid combination of arguments HOT 1
- ValueError: Expected input batch_size (20) to match target batch_size (8).
- ???
- How to duplicate the results?
- TypeError: only integer tensors of a single element can be converted to an index
- AttributeError:"Easydict" object has no attribute "data"
- 模型训练完成后,推理时间只有3ms,但是box filter却有上百毫秒,请问是为什么呢。 HOT 5
- expected tensor [64 x 32 x 3 x 3] and src [1776] to have the same number of elements, but got 18432 and 1776 elements respectively HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fewshot_detection.