Code Monkey home page Code Monkey logo

Comments (4)

CurtisDeCastro avatar CurtisDeCastro commented on July 19, 2024

Same issue here

from reltr.

yrcong avatar yrcong commented on July 19, 2024

Hi all,

sorry for the late reply. I got the point. The error is caused by the version change. Now I have fixed the inference code. Actually, nothing changed only adding some attributes for the initialization.

Now I can run inference.py successfully:) You could have a try now.

thanks for the update!

from reltr.

xixihawokao avatar xixihawokao commented on July 19, 2024

thanks!it’s nice job,but when i use this find another problem
my datasets is coco OpenEnded_mscoco_val2014_questions,
specially,for “COCO_val2014_000000339761.jpg”this picture,i get this:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Input In [9], in <cell line: 70>()
103 topk = 10
104 keep_queries = torch.nonzero(keep, as_tuple=True)[0]
--> 105 indices = torch.argsort(-probas[keep_queries].max(-1)[0] * probas_sub[keep_queries].max(-1)[0] * probas_obj[keep_queries].max(-1)[0])[:topk]
106 keep_queries = keep_queries[indices]
108 # use lists to store the outputs via up-values

RuntimeError: cannot perform reduction function max on tensor with no elements because the operation does not have an identity
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
There are other pictures that will do the same,could you please solve this [problem?this dataset is from (https://okvqa.allenai.org/download.html).

from reltr.

yrcong avatar yrcong commented on July 19, 2024

The error shows no relationships above the threshold are found by RelTR.

When you are using a customized image or image from other datasets. It could be that the entities in the image are not included in the VG-150 classes (also relationships).

In this case, you could lower the threshold in Line137/138 (I set it to 0.3, for your example, I use 0.1 and get something interesting). However, the lower threshold means that RelTR is not confident in the output so there could be some dummy triplets.

I will also release the pre-trained model on OpenImages which contains more than 250 object categories in the future.

from reltr.

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.