Comments (4)
Same issue here
from reltr.
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.
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.
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)
- name 'train_stats' is not defined HOT 2
- convert the reltr model to onnx forma
- about Predcls HOT 1
- Evaluation HOT 3
- checkpoint should be updated with enhanced version HOT 1
- Some misunderstanding about the heat map using to predict Relationship HOT 2
- Error during training in bbox.pyx : ValueError: Buffer dtype mismatch, expected 'DTYPE_t' but got 'double' HOT 1
- 请问如何将inference.py得到的场景图保存成一个json文件呢 HOT 1
- What happens when there are no relations in a sample? HOT 2
- When I was training data, I encountered an error HOT 1
- About OpenV6 HOT 3
- How to use the resulting weight file for evaluation HOT 1
- 1 HOT 5
- I can only get the relationships between entities, how can I get the scene graph? HOT 1
- Unable to train on a single GPU - ChildFailedError( torch.distributed.elastic.multiprocessing.errors.ChildFailedError HOT 1
- Incompatible tensor size when a running a batch size of 2 HOT 2
- demo HOT 3
- 关于openimages的数据处理问题 HOT 1
- Generated checkpoint files throwing error when trying to infere an image HOT 1
- Training failed on custom data set HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reltr.