Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combine or Concatenate encoded attribute features? #26

Open
Starry-lei opened this issue May 19, 2024 · 0 comments
Open

Combine or Concatenate encoded attribute features? #26

Starry-lei opened this issue May 19, 2024 · 0 comments

Comments

@Starry-lei
Copy link

Hi, I find it is a combination, not the concatenation illustrated on paper, right?

if self.seperate_all:
x_class = self.class_embedf(x[:, self.bbox_dim:self.bbox_dim+self.class_dim, :])
if self.objectness_dim >0:
x_object = self.objectness_embedf(x[:, self.bbox_dim+self.class_dim:self.bbox_dim+self.class_dim+self.objectness_dim, :])
else:
x_object = 0

        if self.objfeat_dim > 0:
            x_objfeat = self.objfeat_embedf(x[:, self.bbox_dim+self.class_dim+self.objectness_dim:self.bbox_dim+self.class_dim+self.objectness_dim+self.objfeat_dim, :])
        else:
            x_objfeat = 0
            
        x_bbox = self.bbox_embedf(x[:, 0:self.bbox_dim, :])
        x = x_class + x_bbox + x_object + x_objfeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant