code stringlengths 3 6.57k |
|---|
class (via ignore_index) |
bbox_annotation (pour tous les objets à détecter) |
ignore_annotation (pour toutes les régions à ignorer) |
calc_iou(anchors[0, :, :], bbox_annotation[:, :4]) |
torch.max(IoU, dim=1) |
cal_ioa(anchors[0, :, :], ignore_annotation[:, :4]) |
torch.max(IoA, dim=1) |
torch.ones(classification.shape) |
torch.cuda.is_available() |
targets.cuda() |
torch.lt(IoU_max, 0.4) |
torch.ge(IoA_max, 0.5) |
torch.ones((num_anchors) |
type(torch.ByteTensor) |
torch.ge(IoU_max, 0.5) |
positive_indices.sum() |
torch.ones((num_anchors) |
type(torch.ByteTensor) |
torch.tensor(0) |
long() |
torch.cuda.is_available() |
torch.ones(targets.shape) |
cuda() |
torch.ones(targets.shape) |
torch.where(torch.eq(targets, 1.) |
torch.where(torch.eq(targets, 1.) |
torch.pow(focal_weight, gamma) |
torch.log(classification) |
torch.log(1.0 - classification) |
torch.cuda.is_available() |
torch.where(torch.ne(targets, -1.0) |
torch.zeros(cls_loss.shape) |
cuda() |
torch.where(torch.ne(targets, -1.0) |
torch.zeros(cls_loss.shape) |
classification_losses.append(cls_loss.sum() |
torch.clamp(num_positive_anchors.float() |
torch.clamp(gt_widths, min=1) |
torch.clamp(gt_heights, min=1) |
torch.log(gt_widths / anchor_widths_pi) |
torch.log(gt_heights / anchor_heights_pi) |
torch.stack((targets_dx, targets_dy, targets_dw, targets_dh) |
targets.t() |
torch.cuda.is_available() |
torch.Tensor([[0.1, 0.1, 0.2, 0.2]]) |
cuda() |
torch.Tensor([[0.1, 0.1, 0.2, 0.2]]) |
torch.abs(targets - regression[positive_indices, :]) |
torch.le(regression_diff, 1.0 / 9.0) |
torch.pow(regression_diff, 2) |
regression_losses.append(regression_loss.mean() |
torch.cuda.is_available() |
regression_losses.append(torch.tensor(0) |
float() |
cuda() |
regression_losses.append(torch.tensor(0) |
float() |
torch.stack(classification_losses) |
mean(dim=0, keepdim=True) |
torch.stack(regression_losses) |
mean(dim=0, keepdim=True) |
provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
TestStorageV1alpha1Api(unittest.TestCase) |
setUp(self) |
kubernetes_asyncio.client.api.storage_v1alpha1_api.StorageV1alpha1Api() |
tearDown(self) |
test_create_volume_attachment(self) |
test_delete_collection_volume_attachment(self) |
test_delete_volume_attachment(self) |
test_get_api_resources(self) |
test_list_volume_attachment(self) |
test_patch_volume_attachment(self) |
test_read_volume_attachment(self) |
test_replace_volume_attachment(self) |
unittest.main() |
Flask(__name__, static_url_path='/static') |
app.config.from_pyfile('local_settings.py') |
app.route('/') |
index() |
get_session_id(source_number, destination_number) |
uuid.uuid4() |
get_client() |
jsonify({'error': msg}) |
app.route('/join_conference', methods=['GET', 'POST']) |
app.route('/call_number', methods=['GET', 'POST']) |
join_conference() |
request.form.get('source_number', None) |
request.form.get('dest_number', None) |
print(f"Call Request received! source_number:{source_number}, dest_number:{dest_number}") |
jsonify({'error': msg}) |
get_client() |
get_session_id(source_number, dest_number) |
str(session_id) |
str(session_id) |
print("Initiated a Source number Call, session_id:", session_id) |
hasattr(e, 'msg') |
str(e) |
jsonify({'error': message}) |
jsonify({'message': 'Success!'}) |
app.route('/voip_callback/<string:session_id>', methods=['GET', 'POST']) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.