Document feedback

Question document fragment

When a question document fragment contains a formula, it is displayed as a space.

Submission type
issue

It's a little complicated...

I'd like to ask someone.

PR

Just a small problem.

I can fix it online!

Please select the submission type

Problem type
Specifications and Common Mistakes

- Specifications and Common Mistakes:

- Misspellings or punctuation mistakes,incorrect formulas, abnormal display.

- Incorrect links, empty cells, or wrong formats.

- Chinese characters in English context.

- Minor inconsistencies between the UI and descriptions.

- Low writing fluency that does not affect understanding.

- Incorrect version numbers, including software package names and version numbers on the UI.

Usability

- Usability:

- Incorrect or missing key steps.

- Missing main function descriptions, keyword explanation, necessary prerequisites, or precautions.

- Ambiguous descriptions, unclear reference, or contradictory context.

- Unclear logic, such as missing classifications, items, and steps.

Correctness

- Correctness:

- Technical principles, function descriptions, supported platforms, parameter types, or exceptions inconsistent with that of software implementation.

- Incorrect schematic or architecture diagrams.

- Incorrect commands or command parameters.

- Incorrect code.

- Commands inconsistent with the functions.

- Wrong screenshots.

- Sample code running error, or running results inconsistent with the expectation.

Risk Warnings

- Risk Warnings:

- Lack of risk warnings for operations that may damage the system or important data.

Content Compliance

- Content Compliance:

- Contents that may violate applicable laws and regulations or geo-cultural context-sensitive words and expressions.

- Copyright infringement.

Please select the type of question

Problem description

Describe the bug so that we can quickly locate the problem.

mindearth.cell.DEMNet

View Source On Gitee
class mindearth.cell.DEMNet(in_channels=1, channels=256, kernel_size=3, scale=5, num_blocks=42)[source]

Digital Elevation Model is based on deep residual network and transfer learning. The details can be found in Super-resolution reconstruction of a 3 arc-second global DEM dataset.

Parameters
  • in_channels (int) – The channels of input image.

  • out_channels (int) – The number of output channels.

  • kernel_size (int) – Kernel size.

  • scale (int) – The scale factor of new size of the tensor.

  • num_blocks (int) – The number of blocks in the DEMNet.

Inputs:
  • x (Tensor) - Tensor of shape (batch_size,outchannels,height_size,width_size).

Outputs:

Tensor, the output of the DEMNet.

  • output (Tensor) - Tensor of shape (batch_size,outchannels,newheight_size,newwidth_size).

Supported Platforms:

Ascend GPU

Examples

>>> import numpy as np
>>> import mindspore as ms
>>> from mindspore import ops, Tensor
>>> from mindspore.nn import Cell
>>> from mindearth.cell import DEMNet
>>> input_images = np.random.rand(64, 1, 32, 32).astype(np.float32)
>>> net = DEMNet(in_channels=1, out_channels=256, kernel_size=3, scale=5, num_blocks=42)
>>> out = net(Tensor(input_images, ms.float32))
>>> print(out.shape)
(64, 1, 160, 160)