Skip to content

Commit

Permalink
setting backend to torch (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmig committed Feb 9, 2024
1 parent 24e00c4 commit 2410a27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cellfinder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import os

# check if environment variable exists?
os.environ["KERAS_BACKEND"] = "jax" # "torch" "jax", "tensorflow"
os.environ["KERAS_BACKEND"] = "torch" # "torch" "jax", "tensorflow"

except PackageNotFoundError as e:
raise PackageNotFoundError("error setting up Keras backend") from e
Expand Down
3 changes: 3 additions & 0 deletions cellfinder/core/train/train_yml.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ def run(
epochs=epochs,
callbacks=callbacks,
)
# model.built = True,
# model.compiled=True, and
# compile_metrics_unbuilt ---> I get error

if save_weights:
logger.info("Saving model weights")
Expand Down

0 comments on commit 2410a27

Please sign in to comment.