Coder Social home page Coder Social logo

AP landscape about ld HOT 2 OPEN

jwfanDL avatar jwfanDL commented on August 28, 2024
AP landscape

from ld.

Comments (2)

Zzh-tju avatar Zzh-tju commented on August 28, 2024

I can't access the server which has this part of code for the time being, but it will be released once I can. But I can provide some modification suggestions here.

First, you must modify tools/test.py so as to load two detectors. The relevant files are tools/test.py, the function multi_gpu_test() of mmdet/apis/test.py and the function simple_test() of mmdet/models/detectors/single_stage.py.

Then, if I remenber correctly, the main modifications are in the function simple_test() of mmdet/models/detectors/single_stage.py. And the most important part is line 112-113.

In L112, the variable x contains the 5 FPN output feature maps. And then x will be feed into the head networks in L113.

Suppose you have loaded two detectors here, you get x1 and x2 of two detectors. One should note that x is a tuple, it cannot be modified directly. So, you can transform x1, x2 to numpy arrays. And for each FPN level, i.e., x[0], x[1], ..., x[4] (totally 5 levels), you can do math transformation to get a new feature map x[i] = a*x1[i] + b*x2[i], where a,b\in[-0.5,1.5] in the paper. And then transform the numpy array x to a tuple so that it can be feed into L113 outs = self.bbox_head(x) to inference as usual.

Finally, wait the inferece and the evaluation process, you will get the evaluation measures and don't forget to save them.

As a reminder, the 2D AP landscape in the paper evaluates 400 times. It is time-consuming.

from ld.

Zzh-tju avatar Zzh-tju commented on August 28, 2024

@JwFbupt updated, you can see readme. For any further question or bugs, please post here.

from ld.

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.