Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update checkpoint filenames in modl example scripts
Browse files Browse the repository at this point in the history
Cristina Garcia-Cardona committed Nov 13, 2023
1 parent 6994a66 commit 1bcc0d5
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/scripts/ct_astra_modl_train_foam2.py
Original file line number Diff line number Diff line change
@@ -169,7 +169,7 @@

checkpoint_files = []
for dirpath, dirnames, filenames in os.walk(workdir2):
checkpoint_files = [fn for fn in filenames if str.split(fn, "_")[0] == "checkpoint"]
checkpoint_files = [fn for fn in filenames]

if len(checkpoint_files) > 0:
model = sflax.MoDLNet(
2 changes: 1 addition & 1 deletion examples/scripts/deconv_modl_train_foam1.py
Original file line number Diff line number Diff line change
@@ -164,7 +164,7 @@

checkpoint_files = []
for dirpath, dirnames, filenames in os.walk(workdir2):
checkpoint_files = [fn for fn in filenames if str.split(fn, "_")[0] == "checkpoint"]
checkpoint_files = [fn for fn in filenames]

if len(checkpoint_files) > 0:
model = sflax.MoDLNet(

0 comments on commit 1bcc0d5

Please sign in to comment.