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

implementations? #4

Open
Borda opened this issue Feb 4, 2020 · 6 comments
Open

implementations? #4

Borda opened this issue Feb 4, 2020 · 6 comments

Comments

@Borda
Copy link

Borda commented Feb 4, 2020

Hello,
I was wondering if you could also share code for samples/illustrations presented in this repo.
It would be very useful... Thx :]

@hbgtjxzbbx
Copy link
Collaborator

hbgtjxzbbx commented Feb 8, 2020

Hi Borda
Thanks for your interests. For the code, you can refer to https://github.com/uncbiag/mermaid/blob/master/docs/source/notes/rdmm_example.rst

@Borda
Copy link
Author

Borda commented Feb 8, 2020

that is an example, I was more thinking about providing the particular code you used for the animations, so it would be a great starting point...

@hbgtjxzbbx
Copy link
Collaborator

hbgtjxzbbx commented Feb 10, 2020

Sorry, the animation code is not added for now. I will update the code for animation later ( hopefully this week).
The script example_2d_synth.py can output the frame at any time point. To do that, you need first get the optimal momentum by running optimization once. Then, vary the "tTo" parameter ( the default is 1.0) to 0.1, 0.2 ....0.9, 1.0. Run the evaluate part multiple time and get pngs for each time point. We use online tools to generate the gif from pngs.

@Borda
Copy link
Author

Borda commented Aug 31, 2020

@hbgtjxzbbx any update here? 🐰

@hbgtjxzbbx
Copy link
Collaborator

@hbgtjxzbbx any update here? rabbit

Hey Borda
I might mistake your point. The link mentioned above (https://github.com/uncbiag/mermaid/blob/master/docs/source/notes/rdmm_example.rst) includes toy data generation and supports several fluid-based registration approaches including in this repository, i.e., vsvf, lddmm, rdmm.

The optional settings in example_2d_synth.py are as follows:

Registration demo for 2d synthetic data

optional arguments:
  -h, --help            show this help message and exit
  --expr_name EXPR_NAME
                        the name of the experiment
  --data_task_path DATA_TASK_PATH
                        the path of data task folder
  --model_name MODEL_NAME
                        non-parametric method, vsvf/lddmm/rdmm are currently
                        supported in this demo
  --use_predefined_weight_in_rdmm
                        this flag is only for RDMM model, if set true, the
                        predefined regularizer mask will be loaded and only
                        the momentum will be optimized; if set false, both
                        weight and momenutm will be jointly optimized
  --mermaid_setting_path MERMAID_SETTING_PATH
                        path of mermaid setting json

@mlcJoin
Copy link

mlcJoin commented Apr 20, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants