SciSharp / SciSharp/NumSharp

help me

Open
#418 0 comments 0 reactions 1 assignee View on GitHub

@Nucs is already working on this.

Since Aug 2, 2020.

Dominant language
C#
Stars
1.5k
Forks
205
Avg merge
7d 7h
Merged PRs (30d)
2

Description

what im do wrong np.meshgrid return only one NDArray, second always null

(scales, ratios) = np.meshgrid(np.array(scales), np.array(ratios));
scales = scales.flatten();
ratios = ratios.flatten();
// Enumerate heights and widths from scales and ratios
var heights = scales / np.sqrt(ratios);
var widths = scales * np.sqrt(ratios);
//Enumerate shifts in feature space
var shifts_y = np.arange(0, shape[0], anchor_stride) * feature_stride;
var shifts_x = np.arange(0, shape[1], anchor_stride) * feature_stride;
(shifts_x, shifts_y) = np.meshgrid(shifts_x, shifts_y);
// Enumerate combinations of shifts, widths, and heights
var (box_widths, box_centers_x) = np.meshgrid(widths, shifts_x);
var (box_heights, box_centers_y) = np.meshgrid(heights, shifts_y);

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.