Skip to content

denoise_cnn causes error #148

@uhkeller

Description

@uhkeller

I'm on macOS 15.7.2, M1 Pro, G'MIC CLI installed using Homebrew.

❯ gmic 512,512,1,1 noise 20 denoise_cnn
[gmic]./ Start G'MIC interpreter (v.3.6.3).
[gmic]./ Input black image at position 0 (1 image 512x512x1x1).
[gmic]./ Add gaussian noise to image [0], with standard deviation 20.
[gmic]./ Denoise image [0] using a convolutional neural network, with automatic noise level estimation and patch size 64.
[gmic] *** Error in ./denoise_cnn/*local/run/__run/nn_conv2d/ *** Command 'nn_conv2d': Invalid argument 'C0_CONV2,.,48,3,1,1,0,1,1,0,4'.
[gmic] Command 'nn_conv2d' has the following description:

  nn_conv2d:
      out,in,nb_channels>0,_kernel_size>0,_stride>0,_dilation,_shrink>=0,
        _boundary_conditions,_learning_mode,_weight_decay>=0,_initialization

    Add a 'conv2d' layer (2D convolutional layer) to the current network.
    'boundary_conditions' can be { 0:Dirichlet | 1:Neumann | 2:Periodic |
    3:Mirror }.
    'learning_mode' can be { 0:No learning | 1:Weights only | 2:Biases
    only | 3:Weights+biases }.
    'initialization' can be { 0:Zero | 1:identity | 2:Lecun-initialization
    | 3:He-initialization }.

    Default values: 'kernel_size=3', 'stride=1', 'dilation=1', 'shrink=0',
     'boundary_conditions=1', 'learning_mode=3', 'weight_decay=0' and
     'initialization=3'.
❯ stat ~/.cache/gmic/gmic_denoise_cnn.gmz
16777231 209268007 -rw-r--r-- 1 myuser (1429829944 0 796751 "Nov 15 10:55:23 2025" "Nov 15 10:55:23 2025" "Nov 15 10:55:23 2025" "Nov 15 10:55:23 2025" 4096 1560 0 /Users/mysuser/.cache/gmic/gmic_denoise_cnn.gmz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions