展开菜单
首页 精品内容 本月促销 装机必备 Windows PDF教程 macOS软件 IOS软件 Android AI 专题
全部分类

当前位置:

首页 > 编程开发 > 下面介绍以Python为基础的深度学习TensorFlow参数初始化器initializer的方法

下面介绍以Python为基础的深度学习TensorFlow参数初始化器initializer的方法

所有初始化方法定义#Copyright2015TheTensorFlowAuthors.AllRightsReserved.##LicensedundertheApacheLicense,Version2.0(the"License");#youmaynotusethisfileexceptincompliancewiththeLicense.#YoumayobtainacopyoftheLicenseat##http://www.apache.org/licenses/LICENSE-2.0##Unle

本文目录

    所有初始化方法定义

    # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #     http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    # ==============================================================================
    """Operations often used for initializing tensors.
    All variable initializers returned by functions in this file should have the
    following signature:
    def _initializer(shape, dtype=dtypes.float32, partition_info=None):
      Args:
        shape: List of `int` representing the shape of the output `Tensor`. Some
          initializers may also be able to accept a `Tensor`.
        dtype: (Optional) Type of the output `Tensor`.
        partition_info: (Optional) variable_scope._PartitionInfo object holding
          additional information about how the variable is partitioned. May be
          `None` if the variable is not partitioned.
      Returns:
        A `Tensor` of type `dtype` and `shape`.
    """
    from __future__ import absolute_import
    from __future__ import division
    from __future__ import print_function
    import math
    from tensorflow.python.framework import constant_op
    from tensorflow.python.framework import dtypes
    from tensorflow.python.ops import array_ops
    from tensorflow.python.ops import linalg_ops
    from tensorflow.python.ops import random_ops
    class Initializer(object):
      """Initializer base class: all initializers inherit from this class.
      """
      def __call__(self, shape, dtype=None, partition_info=None):
        raise NotImplementedError
    class Zeros(Initializer):
      """Initializer that generates tensors initialized to 0."""
      def __init__(self, dtype=dtypes.float32):
        self.dtype = dtype
      def __call__(self, shape, dtype=None, partition_info=None):
        if dtype is None:
          dtype = self.dtype
        return constant_op.constant(False if dtype is dtypes.bool else 0,
                                    dtype=dtype, shape=shape)
    class Ones(Initializer):
      """Initializer that generates tensors initialized to 1."""
      def __init__(self, dtype=dtypes.float32):
        self.dtype = dtype
      def __call__(self, shape, dtype=None, partition_info=None):
        if dtype is None:
          dtype = self.dtype
        return constant_op.constant(1, dtype=dtype, shape=shape)
    class Constant(Initializer):
      """Initializer that generates tensors with constant values.
      The resulting tensor is populated with values of type `dtype`, as
      specified by arguments `value` following the desired `shape` of the
      new tensor (see examples below).
      The argument `value` can be a constant value, or a list of values of type
      `dtype`. If `value` is a list, then the length of the list must be less
      than or equal to the number of elements implied by the desired shape of the
      tensor. In the case where the total number of elements in `value` is less
      than the number of elements required by the tensor shape, the last element
      in `value` will be used to fill the remaining entries. If the total number of
      elements in `value` is greater than the number of elements required by the
      tensor shape, the initializer will raise a `ValueError`.
      Args:
        value: A Python scalar, list of values, or a N-dimensional numpy array. All
          elements of the initialized variable will be set to the corresponding
          value in the `value` argument.
        dtype: The data type.
        verify_shape: Boolean that enables verification of the shape of `value`. If
          `True`, the initializer will throw an error if the shape of `value` is not
          compatible with the shape of the initialized tensor.
      Examples:
        The following example can be rewritten using a numpy.ndarray instead
        of the `value` list, even reshaped, as shown in the two commented lines
        below the `value` list initialization.
      ```python
        >>> import numpy as np
        >>> import tensorflow as tf
        >>> value = [0, 1, 2, 3, 4, 5, 6, 7]
        >>> # value = np.array(value)
        >>> # value = value.reshape([2, 4])
        >>> init = tf.constant_initializer(value)
        >>> print('fitting shape:')
        >>> with tf.Session():
        >>>   x = tf.get_variable('x', shape=[2, 4], initializer=init)
        >>>   x.initializer.run()
        >>>   print(x.eval())
        fitting shape:
        [[ 0.  1.  2.  3.]
         [ 4.  5.  6.  7.]]
        >>> print('larger shape:')
        >>> with tf.Session():
        >>>   x = tf.get_variable('x', shape=[3, 4], initializer=init)
        >>>   x.initializer.run()
        >>>   print(x.eval())
        larger shape:
        [[ 0.  1.  2.  3.]
         [ 4.  5.  6.  7.]
         [ 7.  7.  7.  7.]]
        >>> print('smaller shape:')
        >>> with tf.Session():
        >>>   x = tf.get_variable('x', shape=[2, 3], initializer=init)
        ValueError: Too many elements provided. Needed at most 6, but received 8
        >>> print('shape verification:')
        >>> init_verify = tf.constant_initializer(value, verify_shape=True)
        >>> with tf.Session():
        >>>   x = tf.get_variable('x', shape=[3, 4], initializer=init_verify)
        TypeError: Expected Tensor's shape: (3, 4), got (8,).
      ```
      """
      def __init__(self, value=0, dtype=dtypes.float32, verify_shape=False):
        self.value = value
        self.dtype = dtype
        self.verify_shape = verify_shape
      def __call__(self, shape, dtype=None, partition_info=None):
        if dtype is None:
          dtype = self.dtype
        return constant_op.constant(self.value, dtype=dtype, shape=shape,
                                    verify_shape=self.verify_shape)
    class RandomUniform(Initializer):
      """Initializer that generates tensors with a uniform distribution.
      Args:
        minval: A python scalar or a scalar tensor. Lower bound of the range
          of random values to generate.
        maxval: A python scalar or a scalar tensor. Upper bound of the range
          of random values to generate.  Defaults to 1 for float types.
        seed: A Python integer. Used to create random seeds. See
          @{tf.set_random_seed}
          for behavior.
        dtype: The data type.
      """
      def __init__(self, minval=0, maxval=None, seed=None, dtype=dtypes.float32):
        self.minval = minval
        self.maxval = maxval
        self.seed = seed
        self.dtype = dtype
      def __call__(self, shape, dtype=None, partition_info=None):
        if dtype is None:
          dtype = self.dtype
        return random_ops.random_uniform(shape, self.minval, self.maxval,
                                         dtype, seed=self.seed)
    class RandomNormal(Initializer):
      """Initializer that generates tensors with a normal distribution.
      Args:
        mean: a python scalar or a scalar tensor. Mean of the random values
          to generate.
        stddev: a python scalar or a scalar tensor. Standard deviation of the
          random values to generate.
        seed: A Python integer. Used to create random seeds. See
          @{tf.set_random_seed}
          for behavior.
        dtype: The data type. Only floating point types are supported.
      """
      def __init__(self, mean=0.0, stddev=1.0, seed=None, dtype=dtypes.float32):
        self.mean = mean
        self.stddev = stddev
        self.seed = seed
        self.dtype = _assert_float_dtype(dtype)
      def __call__(self, shape, dtype=None, partition_info=None):
        if dtype is None:
          dtype = self.dtype
        return random_ops.random_normal(shape, self.mean, self.stddev,
                                        dtype, seed=self.seed)
    class TruncatedNormal(Initializer):
      """Initializer that generates a truncated normal distribution.
      These values are similar to values from a `random_normal_initializer`
      except that values more than two standard deviations from the mean
      are discarded and re-drawn. This is the recommended initializer for
      neural network weights and filters.
      Args:
        mean: a python scalar or a scalar tensor. Mean of the random values
          to generate.
        stddev: a python scalar or a scalar tensor. Standard deviation of the
          random values to generate.
        seed: A Python integer. Used to create random seeds. See
          @{tf.set_random_seed}
          for behavior.
        dtype: The data type. Only floating point types are supported.
      """
      def __init__(self, mean=0.0, stddev=1.0, seed=None, dtype=dtypes.float32):
        self.mean = mean
        self.stddev = stddev
        self.seed = seed
        self.dtype = _assert_float_dtype(dtype)
      def __call__(self, shape, dtype=None, partition_info=None):
        if dtype is None:
          dtype = self.dtype
        return random_ops.truncated_normal(shape, self.mean, self.stddev,
                                           dtype, seed=self.seed)
    class UniformUnitScaling(Initializer):
      """Initializer that generates tensors without scaling variance.
      When initializing a deep network, it is in principle advantageous to keep
      the scale of the input variance constant, so it does not explode or diminish
      by reaching the final layer. If the input is `x` and the operation `x * W`,
      and we want to initialize `W` uniformly at random, we need to pick `W` from
          [-sqrt(3) / sqrt(dim), sqrt(3) / sqrt(dim)]
      to keep the scale intact, where `dim = W.shape[0]` (the size of the input).
      A similar calculation for convolutional networks gives an analogous result
      with `dim` equal to the product of the first 3 dimensions.  When
      nonlinearities are present, we need to multiply this by a constant `factor`.
      See [Sussillo et al., 2014](https://arxiv.org/abs/1412.6558)
      ([pdf](http://arxiv.org/pdf/1412.6558.pdf)) for deeper motivation, experiments
      and the calculation of constants. In section 2.3 there, the constants were
      numerically computed: for a linear layer it's 1.0, relu: ~1.43, tanh: ~1.15.
      Args:
        factor: Float.  A multiplicative factor by which the values will be scaled.
        seed: A Python integer. Used to create random seeds. See
          @{tf.set_random_seed}
          for behavior.
        dtype: The data type. Only floating point types are supported.
      """
      def __init__(self, factor=1.0, seed=None, dtype=dtypes.float32):
        self.factor = factor
        self.seed = seed
        self.dtype = _assert_float_dtype(dtype)
      def __call__(self, shape, dtype=None, partition_info=None):
        if dtype is None:
          dtype = self.dtype
        scale_shape = shape
        if partition_info is not None:
          scale_shape = partition_info.full_shape
        input_size = 1.0
        # Estimating input size is not possible to do perfectly, but we try.
        # The estimate, obtained by multiplying all dimensions but the last one,
        # is the right thing for matrix multiply and convolutions (see above).
        for dim in scale_shape[:-1]:
          input_size *= float(dim)
        # Avoid errors when initializing zero-size tensors.
        input_size = max(input_size, 1.0)
        max_val = math.sqrt(3 / input_size) * self.factor
        return random_ops.random_uniform(shape, -max_val, max_val,
                                         dtype, seed=self.seed)
    class VarianceScaling(Initializer):
      """Initializer capable of adapting its scale to the shape of weights tensors.
      With `distribution="normal"`, samples are drawn from a truncated normal
      distribution centered on zero, with `stddev = sqrt(scale / n)`
      where n is:
        - number of input units in the weight tensor, if mode = "fan_in"
        - number of output units, if mode = "fan_out"
        - average of the numbers of input and output units, if mode = "fan_avg"
      With `distribution="uniform"`, samples are drawn from a uniform distribution
      within [-limit, limit], with `limit = sqrt(3 * scale / n)`.
      Arguments:
        scale: Scaling factor (positive float).
        mode: One of "fan_in", "fan_out", "fan_avg".
        distribution: Random distribution to use. One of "normal", "uniform".
        seed: A Python integer. Used to create random seeds. See
          @{tf.set_random_seed}
          for behavior.
        dtype: The data type. Only floating point types are supported.
      Raises:
        ValueError: In case of an invalid value for the "scale", mode" or
          "distribution" arguments.
      """
      def __init__(self, scale=1.0,
                   mode="fan_in",
                   distribution="normal",
                   seed=None,
                   dtype=dtypes.float32):
        if scale <= 0.:
          raise ValueError("`scale` must be positive float.")
        if mode not in {"fan_in", "fan_out", "fan_avg"}:
          raise ValueError("Invalid `mode` argument:", mode)
        distribution = distribution.lower()
        if distribution not in {"normal", "uniform"}:
          raise ValueError("Invalid `distribution` argument:", distribution)
        self.scale = scale
        self.mode = mode
        self.distribution = distribution
        self.seed = seed
        self.dtype = _assert_float_dtype(dtype)
      def __call__(self, shape, dtype=None, partition_info=None):
        if dtype is None:
          dtype = self.dtype
        scale = self.scale
        scale_shape = shape
        if partition_info is not None:
          scale_shape = partition_info.full_shape
        fan_in, fan_out = _compute_fans(scale_shape)
        if self.mode == "fan_in":
          scale /= max(1., fan_in)
        elif self.mode == "fan_out":
          scale /= max(1., fan_out)
        else:
          scale /= max(1., (fan_in + fan_out) / 2.)
        if self.distribution == "normal":
          stddev = math.sqrt(scale)
          return random_ops.truncated_normal(shape, 0.0, stddev,
                                             dtype, seed=self.seed)
        else:
          limit = math.sqrt(3.0 * scale)
          return random_ops.random_uniform(shape, -limit, limit,
                                           dtype, seed=self.seed)
    class Orthogonal(Initializer):
      """Initializer that generates an orthogonal matrix.
      If the shape of the tensor to initialize is two-dimensional, i is initialized
      with an orthogonal matrix obtained from the singular value decomposition of a
      matrix of uniform random numbers.
      If the shape of the tensor to initialize is more than two-dimensional,
      a matrix of shape `(shape[0] * ... * shape[n - 2], shape[n - 1])`
      is initialized, where `n` is the length of the shape vector.
      The matrix is subsequently reshaped to give a tensor of the desired shape.
      Args:
        gain: multiplicative factor to apply to the orthogonal matrix
        dtype: The type of the output.
        seed: A Python integer. Used to create random seeds. See
          @{tf.set_random_seed}
          for behavior.
      """
      def __init__(self, gain=1.0, dtype=dtypes.float32, seed=None):
        self.gain = gain
        self.dtype = _assert_float_dtype(dtype)
        self.seed = seed
      def __call__(self, shape, dtype=None, partition_info=None):
        if dtype is None:
          dtype = self.dtype
        # Check the shape
        if len(shape) < 2:
          raise ValueError("The tensor to initialize must be "
                           "at least two-dimensional")
        # Flatten the input shape with the last dimension remaining
        # its original shape so it works for conv2d
        num_rows = 1
        for dim in shape[:-1]:
          num_rows *= dim
        num_cols = shape[-1]
        flat_shape = (num_rows, num_cols)
        # Generate a random matrix
        a = random_ops.random_uniform(flat_shape, dtype=dtype, seed=self.seed)
        # Compute the svd
        _, u, v = linalg_ops.svd(a, full_matrices=False)
        # Pick the appropriate singular value decomposition
        if num_rows > num_cols:
          q = u
        else:
          # Tensorflow departs from numpy conventions
          # such that we need to transpose axes here
          q = array_ops.transpose(v)
        return self.gain * array_ops.reshape(q, shape)
    # Aliases.
    # pylint: disable=invalid-name
    zeros_initializer = Zeros
    ones_initializer = Ones
    constant_initializer = Constant
    random_uniform_initializer = RandomUniform
    random_normal_initializer = RandomNormal
    truncated_normal_initializer = TruncatedNormal
    uniform_unit_scaling_initializer = UniformUnitScaling
    variance_scaling_initializer = VarianceScaling
    orthogonal_initializer = Orthogonal
    # pylint: enable=invalid-name
    def glorot_uniform_initializer(seed=None, dtype=dtypes.float32):
      """The Glorot uniform initializer, also called Xavier uniform initializer.
      It draws samples from a uniform distribution within [-limit, limit]
      where `limit` is `sqrt(6 / (fan_in + fan_out))`
      where `fan_in` is the number of input units in the weight tensor
      and `fan_out` is the number of output units in the weight tensor.
      Reference: http://jmlr.org/proceedings/papers/v9/glorot10a/glorot10a.pdf
      Arguments:
        seed: A Python integer. Used to create random seeds. See
          @{tf.set_random_seed}
          for behavior.
        dtype: The data type. Only floating point types are supported.
      Returns:
        An initializer.
      """
      return variance_scaling_initializer(scale=1.0,
                                          mode="fan_avg",
                                          distribution="uniform",
                                          seed=seed,
                                          dtype=dtype)
    def glorot_normal_initializer(seed=None, dtype=dtypes.float32):
      """The Glorot normal initializer, also called Xavier normal initializer.
      It draws samples from a truncated normal distribution centered on 0
      with `stddev = sqrt(2 / (fan_in + fan_out))`
      where `fan_in` is the number of input units in the weight tensor
      and `fan_out` is the number of output units in the weight tensor.
      Reference: http://jmlr.org/proceedings/papers/v9/glorot10a/glorot10a.pdf
      Arguments:
        seed: A Python integer. Used to create random seeds. See
          @{tf.set_random_seed}
          for behavior.
        dtype: The data type. Only floating point types are supported.
      Returns:
        An initializer.
      """
      return variance_scaling_initializer(scale=1.0,
                                          mode="fan_avg",
                                          distribution="normal",
                                          seed=seed,
                                          dtype=dtype)
    # Utility functions.
    def _compute_fans(shape):
      """Computes the number of input and output units for a weight shape.
      Arguments:
        shape: Integer shape tuple or TF tensor shape.
      Returns:
        A tuple of scalars (fan_in, fan_out).
      """
      if len(shape) < 1:  # Just to avoid errors for constants.
        fan_in = fan_out = 1
      elif len(shape) == 1:
        fan_in = fan_out = shape[0]
      elif len(shape) == 2:
        fan_in = shape[0]
        fan_out = shape[1]
      else:
        # Assuming convolution kernels (2D, 3D, or more).
        # kernel shape: (..., input_depth, depth)
        receptive_field_size = 1.
        for dim in shape[:-2]:
          receptive_field_size *= dim
        fan_in = shape[-2] * receptive_field_size
        fan_out = shape[-1] * receptive_field_size
      return fan_in, fan_out
    def _assert_float_dtype(dtype):
      """Validate and return floating point type based on `dtype`.
      `dtype` must be a floating point type.
      Args:
        dtype: The data type to validate.
      Returns:
        Validated type.
      Raises:
        ValueError: if `dtype` is not a floating point type.
      """
      if not dtype.is_floating:
        raise ValueError("Expected floating point type, got %s." % dtype)
      return dtype

    1、tf.constant_initializer()

    也可以简写为tf.Constant()

    初始化为常数,这个非常有用,通常偏置项就是用它初始化的。

    由它衍生出的两个初始化方法:

    a、 tf.zeros_initializer(), 也可以简写为tf.Zeros()

    b、tf.ones_initializer(), 也可以简写为tf.Ones()

    例:在卷积层中,将偏置项b初始化为0,则有多种写法:

    conv1 = tf.layers.conv2d(batch_images, 
                             filters=64,
                             kernel_size=7,
                             strides=2,
                             activation=tf.nn.relu,
                             kernel_initializer=tf.TruncatedNormal(stddev=0.01)
                             bias_initializer=tf.Constant(0),
                            )

    或者:

    bias_initializer=tf.constant_initializer(0)

    或者:

    bias_initializer=tf.zeros_initializer()

    或者:

    bias_initializer=tf.Zeros()

    例:如何将W初始化成拉普拉斯算子?

    value = [1, 1, 1, 1, -8, 1, 1, 1,1]
    init = tf.constant_initializer(value)
    W= tf.get_variable('W', shape=[3, 3], initializer=init)

    2、tf.truncated_normal_initializer()

    或者简写为tf.TruncatedNormal()

    生成截断正态分布的随机数,这个初始化方法好像在tf中用得比较多。

    它有四个参数(mean=0.0, stddev=1.0, seed=None, dtype=dtypes.float32),分别用于指定均值、标准差、随机数种子和随机数的数据类型,一般只需要设置stddev这一个参数就可以了。

    例:

    conv1 = tf.layers.conv2d(batch_images, 
                             filters=64,
                             kernel_size=7,
                             strides=2,
                             activation=tf.nn.relu,
                             kernel_initializer=tf.TruncatedNormal(stddev=0.01)
                             bias_initializer=tf.Constant(0),
                            )

    或者:

    conv1 = tf.layers.conv2d(batch_images, 
                             filters=64,
                             kernel_size=7,
                             strides=2,
                             activation=tf.nn.relu,
                             kernel_initializer=tf.truncated_normal_initializer(stddev=0.01)
                             bias_initializer=tf.zero_initializer(),
                            )

    3、tf.random_normal_initializer()

    可简写为 tf.RandomNormal()

    生成标准正态分布的随机数,参数和truncated_normal_initializer一样。

    4、random_uniform_initializer = RandomUniform()

    可简写为tf.RandomUniform()

    生成均匀分布的随机数,参数有四个(minval=0, maxval=None, seed=None, dtype=dtypes.float32),分别用于指定最小值,最大值,随机数种子和类型。

    5、tf.uniform_unit_scaling_initializer()

    可简写为tf.UniformUnitScaling()

    和均匀分布差不多,只是这个初始化方法不需要指定最小最大值,是通过计算出来的。参数为(factor=1.0, seed=None, dtype=dtypes.float32)

    max_val = math.sqrt(3 / input_size) * factor

    这里的input_size是指输入数据的维数,假设输入为x, 运算为x * W,则input_size= W.shape[0]

    它的分布区间为[ -max_val, max_val]

    6、tf.variance_scaling_initializer()

    可简写为tf.VarianceScaling()

    参数为(scale=1.0,mode="fan_in",distribution="normal",seed=None,dtype=dtypes.float32)

    scale: 缩放尺度(正浮点数)

    mode:  "fan_in", "fan_out", "fan_avg"中的一个,用于计算标准差stddev的值。

    distribution:分布类型,"normal"或“uniform"中的一个。

    当 distribution="normal" 的时候,生成truncated normal   distribution(截断正态分布) 的随机数,其中stddev = sqrt(scale / n) ,n的计算与mode参数有关。

    • 如果mode = "fan_in", n为输入单元的结点数;         

    • 如果mode = "fan_out",n为输出单元的结点数;

    • 如果mode = "fan_avg",n为输入和输出单元结点数的平均值。

    当distribution="uniform”的时候 ,生成均匀分布的随机数,假设分布区间为[-limit, limit],则

    limit = sqrt(3 * scale / n)

    7、tf.orthogonal_initializer()

    简写为tf.Orthogonal()

    生成正交矩阵的随机数。

    当需要生成的参数是2维时,这个正交矩阵是由均匀分布的随机数矩阵经过SVD分解而来。

    8、tf.glorot_uniform_initializer()

    也称之为Xavier uniform initializer,由一个均匀分布(uniform distribution)来初始化数据。

    假设均匀分布的区间是[-limit, limit],则

    limit=sqrt(6 / (fan_in + fan_out))

    其中的fan_in和fan_out分别表示输入单元的结点数和输出单元的结点数。

    9、glorot_normal_initializer()

    也称之为 Xavier normal initializer. 由一个 truncated normal distribution来初始化数据.

    stddev = sqrt(2 / (fan_in + fan_out))

    其中的fan_in和fan_out分别表示输入单元的结点数和输出单元的结点数。

    本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系bd@zhengruan.com
    作者最新文章
    编程开发 Python
    相关文章 更多
    精品专题 更多
    装机必备

    正软商城装机必备专区,精选办公、浏览器、安全防护、影音播放、压缩解压、设计创作和系统工具等电脑常用正版软件,帮助用户快速完成新电脑软件配置。

    Windows

    正软商城Windows软件专区,汇集适用于Windows电脑的办公、设计、安全防护、影音播放、开发工具和系统优化软件,提供软件介绍、系统要求、正版授权及购买下载服务。

    PDF教程

    正软商城PDF教程频道提供PDF编辑、转换、合并、拆分、压缩及格式处理方法,同时介绍常用PDF软件和工具的使用技巧。

    macOS软件

    正软商城macOS软件专区,精选适用于Mac电脑的办公、设计、影音、效率、开发和系统工具,提供软件功能介绍、macOS兼容版本、正版授权及购买下载服务。

    IOS软件

    正软商城iOS软件专区,精选适用于iPhone和iPad的办公、学习、影音、设计、效率及AI应用,提供功能介绍、适用设备、系统要求和正版获取方式等信息。

    AI

    正软商城AI软件专区,汇集AI写作、AI绘画、AI视频、AI办公、AI编程、AI翻译、智能客服和数据分析等人工智能工具,提供功能介绍、适用平台、收费方式及正版购买信息。

    Mac软件 更多
    Postman macOS版
    Postman macOS版

    Postman是一套面向API全生命周期的开发与测试平台,可在Mac上发送和调试多种协议请求,管理集合、环境及认证信息,并完成脚本测试、模拟服务、监控、文档发布和团队协作。它适合开发、测试及运维人员使用,提供个人免费方案。

    Docker Desktop macOS版
    Docker Desktop macOS版

    Docker Desktop 是 Docker 官方为 Mac 提供的容器开发环境,集成 Docker Engine、命令行工具、Compose、Build、Kubernetes 与图形化管理界面。

    Android Studio macOS版
    Android Studio macOS版

    Android Studio 是 Google 面向安卓应用开发提供的官方集成开发环境,基于 IntelliJ IDEA 构建。它整合智能代码编辑、Gradle 构建、界面预览、设备模拟、性能分析、调试测试及 APK 分析等工具。

    Xcode macOS版
    Xcode macOS版

    Xcode 是苹果面向 Mac 提供的官方集成开发环境,将代码编辑、项目构建、SwiftUI 实时预览、设备模拟、自动化测试、断点调试、性能分析和应用分发整合在同一套工作流中,适合开发与维护 iPhone、iPad、Mac、Apple Wa

    JetBrains WebStorm macOS版
    JetBrains WebStorm macOS版

    JetBrains WebStorm 是面向 JavaScript、TypeScript 和现代 Web 技术的专业集成开发环境,可智能理解项目结构,提供代码补全、重构、错误检查、运行调试、测试及 Git 工具。

    PhpStorm macOS版
    PhpStorm macOS版

    PhpStorm 是 JetBrains 推出的专业 PHP 集成开发环境,可在 Mac 上完成代码编写、智能检查、重构、调试、测试和数据库管理。它支持主流 PHP 框架、Composer、Git、Docker 与远程解释器。

    JetBrains PyCharm macOS版
    JetBrains PyCharm macOS版

    JetBrains PyCharm 是面向 Python 开发者的集成开发环境,提供智能补全、代码检查、重构、调试、测试、版本控制及虚拟环境管理功能。Mac 版兼容 Intel 与 Apple 芯片,核心功能可免费使用。

    JetBrains IntelliJ IDEA macOS版
    JetBrains IntelliJ IDEA macOS版

    IntelliJ IDEA 是 JetBrains 推出的专业集成开发环境,重点服务于 Java、Kotlin 与 JVM 项目开发。软件集成代码补全、静态检查、重构、调试、测试、版本控制及构建工具,并可借助插件扩展语言和框架支持。

    Visual Studio Code macOS版
    Visual Studio Code macOS版

    Visual Studio Code 是微软提供的免费代码编辑器,支持 macOS,并为 Intel 与 Apple 芯片 Mac 提供适配版本。软件集代码编辑、调试、Git 源代码管理、集成终端和扩展市场于一体。

    REAPER macOS版
    REAPER macOS版

    REAPER是Cockos开发的数字音频工作站,提供多轨音频与MIDI录制、剪辑、处理、混音和母带制作工具。Mac版兼容Intel与Apple芯片,支持AU、VST、VST3、CLAP等插件格式,并提供高度可定制的工作流程。

    Adobe Audition macOS版
    Adobe Audition macOS版

    Adobe Audition 是面向播客、影视后期、音乐制作及内容创作者的专业音频工作站,提供波形精修、多轨录制与混音、频谱编辑、降噪修复、响度匹配和效果处理工具,并可与 Adobe Premiere 协同完成视频声音制作。

    Pro Tools macOS版
    Pro Tools macOS版

    Pro Tools 是 Avid 推出的专业数字音频工作站,覆盖多轨录音、无损剪辑、MIDI 编曲、插件处理、自动化混音及声音与画面同步等工作。它拥有 Intro、Artist、Studio 和 Ultimate 等方案。

    WINDOWS 更多
    PixPix 网页版
    PixPix 网页版

    PixPix 是面向品牌、卖家和内容团队的在线 AI 图片视频创作平台,提供图视频 Agent、无限画布、图片生成、视频生成、自然语言编辑及商品套图、产品精修和带货视频等电商工具。

    Postman Windows版
    Postman Windows版

    Postman 是面向 API 全生命周期的开发与协作平台。Windows 桌面版可用于构建和发送 HTTP、GraphQL、gRPC、WebSocket、MQTT 等请求,并提供环境变量、集合、脚本测试、模拟服务、监控、文档及团队工作区等

    Docker Desktop Windows版
    Docker Desktop Windows版

    Docker Desktop 为 Windows 开发者提供集成式容器环境,内置 Docker Engine、命令行工具、Compose、Build 与 Kubernetes 等组件,可在本机完成镜像构建、容器运行、日志查看和资源管理。

    Android Studio Windows版
    Android Studio Windows版

    Android Studio 是 Google 面向 Android 应用开发提供的官方集成开发环境,以 IntelliJ IDEA 为基础,集成智能代码编辑、Gradle 构建、设备模拟、界面预览、调试测试及性能分析工具,

    JetBrains WebStorm Windows版
    JetBrains WebStorm Windows版

    WebStorm 是 JetBrains 面向 JavaScript、TypeScript 和现代 Web 技术打造的集成开发环境。它提供项目级代码分析、智能补全、安全重构、导航搜索,并集成调试、测试、终端、Git 与常用前端工具,

    JetBrains PhpStorm Windows版
    JetBrains PhpStorm Windows版

    PhpStorm 是 JetBrains 面向 PHP 与现代 Web 开发打造的专业集成开发环境,提供代码补全、静态检查、重构、调试、测试、数据库、版本控制及前端语言支持。Windows 用户可直接下载安装程序,

    JetBrains PyCharm Windows版
    JetBrains PyCharm Windows版

    PyCharm 是 JetBrains 推出的 Python 集成开发环境,提供智能代码补全、错误检查、重构、调试、测试、Git、终端及 Jupyter Notebook 支持。统一版安装后可体验 30 天 Pro 功能,

    JetBrains IntelliJ IDEA Windows版
    JetBrains IntelliJ IDEA Windows版

    JetBrains IntelliJ IDEA 是以 Java、Kotlin 和 JVM 项目为核心的专业集成开发环境,提供智能补全、代码检查、安全重构、调试、测试、版本控制及构建工具集成。统一发行版的核心功能可免费用于商业和非商业项目,

    Visual Studio Code Windows版
    Visual Studio Code Windows版

    Visual Studio Code 是微软推出的免费代码编辑器,Windows 版集成智能补全、代码导航、调试、终端和版本控制,并可通过扩展添加语言、格式化及远程开发能力。它启动较快、配置灵活,

    REAPER Windows版
    REAPER Windows版

    REAPER 是 Cockos 推出的数字音频工作站,适用于录音、MIDI 编曲、音频编辑、混音、母带制作及声音设计。软件安装包小巧,支持多轨录制、灵活路由、自动化、第三方插件和脚本扩展,并提供完整功能的 60 天免费评估期。

    Adobe Audition Windows版
    Adobe Audition Windows版

    Adobe Audition 是面向播客、影视后期、广播与音乐制作的专业音频工作站,提供波形编辑、多轨混音、频谱分析、录音、降噪修复和效果处理等功能。Windows 版通过 Adobe Creative Cloud 安装和管理,

    Pro Tools Windows版
    Pro Tools Windows版

    Pro Tools 是 Avid 推出的专业数字音频工作站,提供多轨录音、音频剪辑、MIDI编曲、插件处理、自动化混音及影视声音制作能力。它适合音乐人、录音师、制作人和音频后期团队使用,并提供免费入门版、订阅方案及永久授权选择。