GithubHelp home page GithubHelp logo

Some questions about your code about up-detr HOT 5 CLOSED

dddzg avatar dddzg commented on May 27, 2024
Some questions about your code

from up-detr.

Comments (5)

dddzg avatar dddzg commented on May 27, 2024

Thanks for your attention. The paches input is generated during the pre-training in

def get_random_patch_from_img(img, min_pixel=8):

For UP-DETR, the model is pre-trained on ImageNet (by running main.py) and fine-tuned on COCO (by running detr_main.py).
For pre-training and fine-tuning code, we share the engine.py file.
Please check https://github.com/dddzg/up-detr#unsupervised-pre-training for more details about how to pre-train UP-DETR on ImageNet.

You can try to read the code in datasets/selfdet.py and models/updetr.py for more details about the pre-training procedure.

from up-detr.

dddzg avatar dddzg commented on May 27, 2024

Feel free to re-open the issue if you have any other questions.

from up-detr.

Huzhen757 avatar Huzhen757 commented on May 27, 2024

from up-detr.

dddzg avatar dddzg commented on May 27, 2024

No. We expect the directory structure of the pre-training to be the following:

path/to/imagenet/
  n06785654/  # caterogey directory
    n06785654_16140.JPEG # images
  n04584207/  # caterogey directory
    n04584207_14322.JPEG # images

You can adjust the code in

for (troot, _, files) in os.walk(root, followlinks=True):

to support coco2017 as the pre-training dataset.

from up-detr.

Huzhen757 avatar Huzhen757 commented on May 27, 2024

from up-detr.

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.