vis4d.op.box.samplers.combined¶
Combined Sampler.
Classes
|
Combined sampler. |
- class CombinedSampler(*args, pos_strategy, neg_strategy, neg_pos_ub=3.0, floor_thr=-1.0, floor_fraction=0.0, num_bins=3, bg_label=0, **kwargs)[source]¶
Combined sampler. Can have different strategies for pos/neg samples.
Creates an instance of the class.
- static instance_balanced_sampling(idx_tensor, assigned_gts, assigned_gt_ious, sample_size)[source]¶
Sample indices with balancing according to matched GT instance.
- Return type:
Tensor