Skip to content

Commit

Permalink
cleaned train_npe
Browse files Browse the repository at this point in the history
  • Loading branch information
Dingel321 committed Dec 6, 2023
1 parent 6225a18 commit 762b900
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cryo_sbi/inference/train_npe_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from cryo_sbi.wpa_simulator.cryo_em_simulator import cryo_em_simulator
from cryo_sbi.wpa_simulator.validate_image_config import check_image_params
from cryo_sbi.inference.validate_train_config import check_train_params
import cryo_sbi.utils.image_utils as img_utils


def load_model(
Expand Down Expand Up @@ -121,7 +122,7 @@ def npe_train_no_saving(
)
step = GDStep(optimizer, clip=train_config["CLIP_GRADIENT"])
mean_loss = []

print("Training neural netowrk:")
estimator.train()
with tqdm(range(epochs), unit="epoch") as tq:
Expand Down

0 comments on commit 762b900

Please sign in to comment.