Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples ladle #183

Merged
merged 4 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,441 changes: 3,441 additions & 0 deletions examples/benchmarks/ladle_furnace.ipynb

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
666 changes: 666 additions & 0 deletions examples/getting_started/00_Hello_World.ipynb

Large diffs are not rendered by default.

8,176 changes: 8,176 additions & 0 deletions examples/getting_started/01_Indepth_tutorial_single_cycle.ipynb

Large diffs are not rendered by default.

1,370 changes: 1,370 additions & 0 deletions examples/getting_started/02_Indepth_tutorial_optimisation_and_callbacks.ipynb

Large diffs are not rendered by default.

537 changes: 537 additions & 0 deletions examples/getting_started/03_fixed_budget_mode.ipynb

Large diffs are not rendered by default.

628 changes: 0 additions & 628 deletions examples/panel_detectors/00_Hello_World.ipynb

This file was deleted.

8,144 changes: 0 additions & 8,144 deletions examples/panel_detectors/01_Indepth_tutorial_single_cycle.ipynb

This file was deleted.

1,371 changes: 0 additions & 1,371 deletions examples/panel_detectors/02_Indepth_tutorial_optimisation_and_callbacks.ipynb

This file was deleted.

546 changes: 0 additions & 546 deletions examples/panel_detectors/03_fixed_budget_mode.ipynb

This file was deleted.

Binary file removed examples/panel_detectors/imgs/panel detector.png
Binary file not shown.
Binary file removed examples/panel_detectors/imgs/volume_layout.png
Binary file not shown.
4 changes: 2 additions & 2 deletions tomopt/benchmarks/ladle_furnace/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ...optimisation.callbacks import Callback
from ...volume import Volume

__all__ = ["EdgeDetLadleFurnaceFillLevelInferrer", "PocaZLadleFurnaceFillLevelInferrer"]
__all__ = ["EdgeDetLadleFurnaceFillLevelInferrer", "PocaZLadleFurnaceFillLevelInferrer", "LinearCorrectionCallback"]


class EdgeDetLadleFurnaceFillLevelInferrer(AbsIntClassifierFromX0):
Expand Down Expand Up @@ -416,7 +416,7 @@ def on_x0_pred_end(self) -> None:

self.wrapper.fit_params.pred = self.linear(self.wrapper.fit_params.pred)

def on_backwards_begin(self) -> None:
def on_backwards_end(self) -> None:
x = torch.stack(self._preds, 0)
y = torch.stack(self._targs, 0)
for i in range(10000):
Expand Down
2 changes: 1 addition & 1 deletion tomopt/optimisation/callbacks/opt_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
if TYPE_CHECKING:
from ...optimisation.wrapper import AbsVolumeWrapper

__all__ = ["OneCycle"]
__all__ = ["OneCycle", "EpochSave"]


class AbsOptSchedule(PostWarmupCallback, metaclass=ABCMeta):
Expand Down
Loading