Demuxer is corrupting object meta of secondary detector - nvidia-jetson

• DeepStream Version 6.0
I am following this repo https://github.com/NVIDIA-AI-IOT/deepstream_reference_apps/tree/master/back-to-back-detectors and running secondary gie as secondary detector mode.
I have pipeline like this
source → h264parser → decoder → streammux → primary_detector → tracker → secondary_detector ->nvvidconv → nvosd → sink
there is a callback attached at the sink of nvvidconv.
I can able to process the object meta of a primary as well as a secondary detector. I am able to get parent meta from secondary object meta.
But when I change my pipeline to something like this (adding demuxer between nvvidconv and secondary detector). I know there is no need for demuxer here but in other application I have demuxer in between.
source → h264parser → decoder → streammux → primary_detector → tracker → secondary_detector → demux → nvvidconv → nvosd → sink
there is a callback attached at the sink of nvvidconv.
I can able to process the object meta of a primary as well as a secondary detector. But now I can’t get parent meta from secondary object meta.
For debugging, I attached callbacks on sink and src of demuxer. On sink callback, I can get parent meta from secondary object meta as expected but on src callback, I can’t get parent meta from secondary object meta.
What could be the problem here? Am I missing something here?

Related

Import edge direction from networkfile

I have a network file created using a tool developed by me, the network file looks like this
GeneA GeneB <-
GeneB GeneC ->
GeneD GeneC ->
GeneD GeneF <-
Importing the network itself was successfully done, but I am looking for a way to import the directions in the network. Since the directions are not always the same, can somebody tell me how to import such directions into cytoscape. I have looked a lot and could not find the solution.
In Cytoscape.js you can put arrows to four different locations (see the documentation for more details).
The standard one for a directed graph would be arrows at the end of edge pointing towards to the target node. This can be achieved by setting target-arrow-shape to a supported shape (such as triangle, tee, vee and etc.). You also need to set the source and target of each edge properly. In your example
GeneA GeneB <-
GeneB would be source and GeneA would be the target,
GeneB GeneC ->
GeneB would be source and GeneC would be the target and so on.
For different arrow types see this example.

Adding "properties" to objects in a Blender scene

I am just starting my dive into Blender coming mainly from Quake's Radiant. I am trying to research whether it will fit the need I have for a level editor replacement. So with that in mind, here is my question:
What is the best method for creating and storing a set of prefab "entity" objects such as health packs, ammo pickups, and "moveable" objects such that they have a set of "properties" that can be changed within Blender?
I have found this page, but I am still getting lost as to how to integrate them on a per object basis and achieve the desired result:
https://docs.blender.org/manual/en/dev/editors/properties_editor.html
Note: It is not my goal to use the Blender game engine - just attach values to things for me to export to my own engine.
Edit1: Found an article discussing the topic although it seems very outdated:
https://www.gamasutra.com/blogs/IwanGabovitch/20120524/171032/Using_Blender_3D_as_a_3d_map_editor_rather_than_programming_your_own_from_scratch.php
Example:
// entity 105
{
"inv_item" "2"
"inv_name" "#str_02917"
"classname" "item_medkit"
"name" "item_medkit_11"
"origin" "-150 2322 72"
"triggerFirst" "1"
"triggersize" "40"
"rotation" "0.224951 0.97437 0 -0.97437 0.224951 0 0 0 1"
}
While we can manually add custom properties to any object, these are added to the specific object so can be unique to each object.
A better way of integrating new properties is to use bpy.props, these can be added to an objects class in blender, this means every object will have the same properties available.
You can setup a custom panel to edit your properties, like this simple example. Both the properties and panel as well as your object exporter can be defined in an addon which you can have enable at startup so that it is available every time you run blender. An addon also makes it easier for you to share your game editor with others.
The link I found seems to be the best option and allow for the most flexibility. The source code for the Super Tux Kart plugins serve as a great reference implementation:
https://sourceforge.net/p/supertuxkart/code/HEAD/tree/media/trunk/blender_26/

intellij cannot create class-file when creating test class with maven project

I created a maven project, and my hierarchy is :
MyPro:
.ideas
src
-main
-java
-mypackage
-MyClass.java
-test
-java
-mypackage
- (PLACEHOLDER)
When I try to create MyClassTest.java at PLACEHOLDER i.e. in test/java/mypackage, I got unable to parse template class, cannot create class-file.
But if I create TestMyClass.java file, it works. I wonder why is that?
Do you have MyClassTest.java or something similar listed under:
Settings → Editor → File Types→ Text files ?
If so, try removing that pattern and check if you can create the class.
I was able to reproduce this error in a standard maven project, after adding the following file type:
And then trying to create the MyClassTest.java:
And after removing the file type there were no problems creating the Test class.

Adding logs to a WellSectionWindow

How would one add logs to a well-section window programatically? For the following well-logs within my Petrel input tree and using the code below only "Sonic" log is displayed on the WellSectionWindow
Well
->WellLogs
- Density
- Sonic
- Gamma ray
Borehole borehole = arguments.object as Borehole;
WellSectionWindow wsw = WellSectionWindow.CreateWindow();
wsw.ShowObject(borehole);
Within Petrel(2013.1), I can navigate to the Log element->(right-click)->"Add to template"->"Vertical"->"In new track". I would like to know if something similar could be achieved using Ocean APIs and guide me towards relevant documentation. Also, I'd like to know why "Sonic" log was displayed within the WellSectionWindow in Petrel and how did it get prioritized over Density or Gamma ray log.
The WellLogVersion of a WellLog corresponds to the global well log in the input tree.
If you want to display the log, you can call wsw.ShowObject(wellLogVersion) and it will be displayed.
If you want to control the order of the logs being displayed, you'll need to deal with the format template nodes of the well section templates. The details can be found in the Ocean dev guide, Volume 9, Chapter 3.

Add popup/reminder when user creates a new Stream

To create a new stream in RTC source control I right click on a snapshot and select 'New' -> 'Stream from Snapshot'. Is it possible to add a reminder/popup at this point to indicate to the user that certain files should be changed as part of creation of this new stream ? Or better yet update the files on the stream itself ?
I don't see any way to add a popup on the Stream creation.
You could define a hook, but the "Team Configuration / Operation Behavior" section doesn't include a "Create Stream" action.
So there don't seem to be any native way to achieve what you need.