Git Product home page Git Product logo

Comments (4)

jihanyang avatar jihanyang commented on August 12, 2024

Yes. I just use them to try some ideas in my previous attempts, and they are not used in current version.

from st3d.

s-ryosky avatar s-ryosky commented on August 12, 2024

Thank you for your reply. I understood.

I have another question.
It seems that it uses all pseudo labels stored in memory bank for training, including those whose state is ignored.
Is this a bug?

def fill_pseudo_labels(self, input_dict):
gt_boxes = self_training_utils.load_ps_label(input_dict['frame_id'])
gt_scores = gt_boxes[:, 8]
gt_classes = gt_boxes[:, 7]
gt_boxes = gt_boxes[:, :7]
# only suitable for only one classes, generating gt_names for prepare data
gt_names = np.array([self.class_names[0] for n in gt_boxes])

gt_classes = gt_boxes_with_classes[:, :, 7]
gt_boxes = gt_boxes_with_classes[:, :, :7]
for k in range(batch_size):
cur_gt = gt_boxes[k]
cnt = cur_gt.__len__() - 1
while cnt > 0 and cur_gt[cnt].sum() == 0:
cnt -= 1
cur_gt = cur_gt[:cnt + 1]
cur_gt_classes = gt_classes[k][:cnt + 1].int()
target_list = []
for anchor_class_name, anchors in zip(self.anchor_class_names, all_anchors):
if cur_gt_classes.shape[0] > 1:
mask = torch.from_numpy(self.class_names[cur_gt_classes.cpu().abs() - 1] == anchor_class_name)

from st3d.

jihanyang avatar jihanyang commented on August 12, 2024

No. If I don't store ignored pseudo labels, anchors don't have corresponding GTs will activate negative loss. I set the labels of ignored pseudo labels with negative values, and ignore their losses when calculating loss.

from st3d.

s-ryosky avatar s-ryosky commented on August 12, 2024

I understood it.
I didn't notice that the anchors corresponding to the labels with negative values were trained as negative samples.

Thank you.

from st3d.

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.