Coder Social home page Coder Social logo

Anchor boxes visualization about nts-net HOT 9 OPEN

ygean avatar ygean commented on September 20, 2024
Anchor boxes visualization

from nts-net.

Comments (9)

zbxzc35 avatar zbxzc35 commented on September 20, 2024

可视化比较简单,这样做
`,anchors,=generate_default_anchor_maps()
print type(anchors),anchors.shape

print len(anchors)
for anc in anchors:
if anc[0]<0 or anc[1]<0 or anc[2]<0 or anc[3]<0:
print anc

import matplotlib.pyplot as plt
xmin=-224
xmax=672
ymin=-224
ymax=672
fig = plt.figure(figsize=(8,8))
ax = fig.add_subplot(111)
plt.xlim( (xmin, xmax) )
plt.ylim( (ymin, ymax) )
#rect = plt.Rectangle((0.1,0.1),0.5,0.3)
#ax.add_patch(rect)
for anch in anchors:
rect = plt.Rectangle((anch[1],anch[0]),#(x0,y0)
anch[3]-anch[1],#width
anch[2]-anch[0],#height
edgecolor='r',
facecolor='none')
ax.add_patch(rect)
plt.show()`

from nts-net.

ray-lee-94 avatar ray-lee-94 commented on September 20, 2024

I want to know how to draw the box when testing , so that i can find if the network focus the most import regins. The paper had a amazing visualization.

from nts-net.

ygean avatar ygean commented on September 20, 2024

Actually, I did it by my mentioned approach not zbxzc35 mentioned . But it seems does not have amazing visualization , which anchor boxes should be localized discriminative feature regions on image directly, my visualization result told me that effect of RPN module still confuses me. It need author's help to tell more details.

from nts-net.

ygean avatar ygean commented on September 20, 2024

@VCBE123 I think you need to find anchor boxes selected by trained model and pad your image with constant value for resizing image's size and then, the way of drawing anchor boxes on PIL image format is easy on searching from stackoverflow.com, good luck for you, guy.

from nts-net.

ray-lee-94 avatar ray-lee-94 commented on September 20, 2024

@zhouyuangan Thank you for your help.

from nts-net.

dongzhi0312 avatar dongzhi0312 commented on September 20, 2024

@zbxzc35 为什么坐标是 -224 672 输入图片大小不是 448*448 吗,这样的设置不会导致坐标超出图片的大小吗

from nts-net.

jxingm avatar jxingm commented on September 20, 2024

@VCBE123 I think you need to find anchor boxes selected by trained model and pad your image with constant value for resizing image's size and then, the way of drawing anchor boxes on PIL image format is easy on searching from stackoverflow.com, good luck for you, guy.

Hello, when I run test.py on CUB_200 dataset, nothing has been output.Is this normal? then where to find the result of bounding boxes of the test images ? without the bbox information how can I visualize? I really need help.

from nts-net.

dawnsdaw avatar dawnsdaw commented on September 20, 2024

@VCBE123 I think you need to find anchor boxes selected by trained model and pad your image with constant value for resizing image's size and then, the way of drawing anchor boxes on PIL image format is easy on searching from stackoverflow.com, good luck for you, guy.

Hello, when I run test.py on CUB_200 dataset, nothing has been output.Is this normal? then where to find the result of bounding boxes of the test images ? without the bbox information how can I visualize? I really need help.

I would like to ask, did you successfully draw the bounding box during the test? How to visualize? thank you very much.

from nts-net.

atnegam avatar atnegam commented on September 20, 2024

#25

from nts-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.