Comments (4)
add 'score = score.cpu().numpy' after score definition.
from facedetection-dsfd.
from facedetection-dsfd.
查看det_accu結果修正為:
print(det_accu)
[[884.7155303418695 687.6098228897172 996.6175426085247 823.8512140447128
0.9999959468841553]
[tensor(884.4860) tensor(687.3190) tensor(996.8298) tensor(823.6767)
tensor(1.0000)]
[tensor(884.7256) tensor(686.1610) tensor(996.7332) tensor(822.8571)
tensor(1.0000)]]
from facedetection-dsfd.
Thank oyerst, You solved my problem.
Answer:
while detections[0, i, j, 0] >= thresh:
score = detections[0, i, j, 0]
score = score.cpu().numpy() #Plus here
pt = (detections[0, i, j, 1:]*scale).cpu().numpy()
coords = (pt[0], pt[1], pt[2], pt[3])
det.append([pt[0], pt[1], pt[2], pt[3], score])
j += 1
from facedetection-dsfd.
Related Issues (20)
- how about the eval_tools? HOT 1
- Add 'configuration' files to install requirements easily
- TypeError: mul(): The parameter'other' (position 1) must be Tensor, not numpy.ndarray
- Excuse me, how to train the network? I don't seem to see the code about the training model
- How can we use webcam to test our DSFD model.
- FileNotFoundError: [Errno 2] No such file or directory: '/data/wider_face_split\\wider_face_val.mat' HOT 2
- [SOLVED] How to Implement DSFD on Windows, Mac, and Linux HOT 9
- [SOLVED] How to Implement DSFD on Windows, Mac, and Linux
- RandomBaiduCrop
- How do I test multiple images using Demo.py HOT 1
- TypeError: can't convert cuda:0 device type tensor to numpy. HOT 1
- Error in running demo.py
- demo.py RuntimeError: Legacy autograd function with non-static forward method is deprecated. HOT 2
- TypeError: forward() missing 1 required positional argument: 'x' HOT 5
- How do I test the video in the demo.py?
- GPU out of memory HOT 1
- Fix RuntimeError: Legacy autograd function with non-static forward method is deprecated
- training code
- Legacy autograd function with non-static forward method is deprecated.
- 论文里SSL损失函数公式最外面那个括号是不是放错位置了
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 facedetection-dsfd.