Skip to content

Commit

Permalink
Remove weight traversal output
Browse files Browse the repository at this point in the history
  • Loading branch information
nkovela1 committed Jan 5, 2024
1 parent f513023 commit e65814e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions keras_cv/utils/preset_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,6 @@ def load_from_preset(
# Default to loading weights if available.
if load_weights is not False and config["weights"] is not None:
weights_path = get_file(preset, config["weights"])
import h5py

f = h5py.File(weights_path)
f.visititems(lambda name, _: print(name))

if hasattr(layer, "_layer_checkpoint_dependencies"):
legacy_load_weights(layer, weights_path)
else:
Expand Down

0 comments on commit e65814e

Please sign in to comment.