Skip to content

Commit

Permalink
debugging trial
Browse files Browse the repository at this point in the history
  • Loading branch information
YousefMetwally committed Feb 7, 2025
1 parent ff6eeaf commit d1fa2cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tomotwin/embed_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def _main_():
ui.run()
check_for_updates()
config = ui.get_embed_configuration()
print(config.padding)
start(config)


Expand Down
1 change: 0 additions & 1 deletion tomotwin/modules/inference/argparse_embed_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def run(self, args=None) -> None:
self.padding = args.padding
if args.distribution_mode == 0:
self.distr_mode = DistrMode.DP
self.padding = args.padding

def get_embed_configuration(self) -> EmbedConfiguration:
conf = EmbedConfiguration(
Expand Down
3 changes: 2 additions & 1 deletion tomotwin/modules/tools/embedding_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def median_mode(self,
batch_size: int,
threshold: float,
dilation: float,
padding: bool = True
padding: bool
) -> np.array:
'''
Calculates a mask based on median embedding
Expand All @@ -162,6 +162,7 @@ def median_mode(self,
# Embed
emb_out_pth = os.path.join(tmp_pth, "embed")

print (padding)
conf = EmbedConfiguration(
model_path=model_pth,
volumes_path=tomo_pth,
Expand Down

0 comments on commit d1fa2cc

Please sign in to comment.