Skip to content

Commit

Permalink
Rename flax data files
Browse files Browse the repository at this point in the history
  • Loading branch information
bwohlberg committed Jan 11, 2024
1 parent 52810bf commit 5fba865
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scico/denoiser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2020-2023 by SCICO Developers
# Copyright (C) 2020-2024 by SCICO Developers
# All rights reserved. BSD 3-clause License.
# This file is part of the SCICO package. Details of the copyright and
# user license can be found in the 'LICENSE' file distributed with the
Expand Down Expand Up @@ -234,7 +234,7 @@ def __init__(self, variant: str = "6M"):
self.is_blind = True

model = DnCNNNet(depth=nlayer, channels=channels, num_filters=64, dtype=np.float32)
variables = load_weights(_flax_data_path("dncnn%s.npz" % variant))
variables = load_weights(_flax_data_path("dncnn%s.mpk" % variant))
super().__init__(model, variables)

def __call__(self, x: snp.Array, sigma: Optional[float] = None) -> snp.Array:
Expand Down

0 comments on commit 5fba865

Please sign in to comment.