Git Product home page Git Product logo

Comments (3)

hotea1 avatar hotea1 commented on September 24, 2024

image

from drenet.

WindVChen avatar WindVChen commented on September 24, 2024

你好呀@hotea1

这个问题是因为400不是32的整数倍引起的。在DRENet网络中,feature map的长宽至多会缩小到原图的1/32(见Readme中的DRENet网络结构图),因此需要保证输入图像是32的整数倍。

你可以直接通过设置detect.py中的参数“--img-size”为32的整数倍来避免上述错误(例如设置为512),该设置会在你图像的边缘加入padding,因此不会改动你图像的空间分辨率(当然你也可以自行放缩图像到32的整数倍)。

此外,之前的detect.py需要做些许改动才能运行,我们更新了新的版本,请使用最新的detect.py文件。

如果觉得该方法有帮助的话,也可以给我们加:star:呀~

from drenet.

hotea1 avatar hotea1 commented on September 24, 2024

谢谢!已经能够运行了!

from drenet.

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.