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

example notebook #2

Closed
wants to merge 6 commits into from
Closed

example notebook #2

wants to merge 6 commits into from

Conversation

casperdcl
Copy link
Member

part of #1

@casperdcl casperdcl added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 22, 2024
@casperdcl casperdcl self-assigned this Feb 22, 2024
@casperdcl casperdcl mentioned this pull request Feb 22, 2024
11 tasks
@casperdcl casperdcl assigned paskino and unassigned casperdcl May 2, 2024
@casperdcl casperdcl force-pushed the main branch 10 times, most recently from 1ad233c to bf940ca Compare June 18, 2024 17:26
Copy link
Member

@KrisThielemans KrisThielemans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of this is very much out of date, unfortunately. Merging it will cause more confusion than anything else.

@@ -0,0 +1,126 @@
#%%
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a CBCT example. It could be useful to some, but more than likely it is confusing to most. Please remove.


## Requirements

- CIL with callbacks https://github.com/TomographicImaging/CIL/pull/1659
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has long been merged.


### Installation

Currently building from this SuperBuild branch https://github.com/SyneRBI/SIRF-SuperBuild/pull/718
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be master as well.

Comment on lines +17 to +19
docker/compose.sh -dgb -- --build-arg EXTRA_BUILD_FLAGS='-DGadgetron_TAG=6202fb7352a14fb82817b57a97d928c988eb0f4b -DISMRMRD_TAG=v1.13.7 -Dsiemens_to_ismrmrd_TAG=v1.2.11 -DDEVEL_BUILD=ON -DBUILD_CIL=ON -DCCPi-Regularisation-Toolkit_TAG=origin/master' --build-arg RUN_CTEST=0

```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most of this should no longer be there.

docker/compose.sh -dgb -- --build-arg EXTRA_BUILD_FLAGS='-DGadgetron_TAG=6202fb7352a14fb82817b57a97d928c988eb0f4b -DISMRMRD_TAG=v1.13.7 -Dsiemens_to_ismrmrd_TAG=v1.2.11 -DDEVEL_BUILD=ON -DBUILD_CIL=ON -DCCPi-Regularisation-Toolkit_TAG=origin/master' --build-arg RUN_CTEST=0

```
where `-dgb` tells to `b`uild the `g`pu and `d`evelopment branches. The whole lot of flags can be checked [here](https://github.com/SyneRBI/SIRF-SuperBuild/blob/c21a2a45591550a6e257fc6f3dc343294b2c3127/docker/compose.sh#L24-L31)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly wrong ref

Comment on lines +205 to +215
"# add RDP prior to the objective functions\n",
"step_size = 1e-7\n",
"add_regulariser = True\n",
"if add_regulariser:\n",
" alpha = 500\n",
" prior = construct_RDP(alpha, initial_image, kappa)\n",
" # epsilon = initial_image.max()*1e-4\n",
" # prior = add_RDP(alpha, epsilon, obj_funs)\n",
" add_prior(prior, obj_funs)\n",
" step_size = 1e-10"
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will have to be replaced after merging #20

"# ISTA default step_size is 0.99*2.0/F.L\n",
"step_size_rule = ConstantStepSize(step_size)\n",
"\n",
"alg = GD(initial=initial_image, objective_function=F, step_size=step_size_rule)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not using ISTA here, but GD. Please change and add positivity constraint

@@ -0,0 +1,805 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file is out-of-date. Don't merge.

@casperdcl casperdcl marked this pull request as draft June 27, 2024 23:18
@casperdcl
Copy link
Member Author

@KrisThielemans this PR is definitely old and not intended for merging (yet).

Marked as draft.

@paskino
Copy link
Contributor

paskino commented Aug 1, 2024

An example is currently available.

@paskino paskino closed this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants