Skip to content

Random seed seems to have no effect on ANTs with SyN and CC #1470

@gandreadis

Description

@gandreadis

Describe the problem

I'm using the ANTs antsRegistration CMD-line executable, with SyN as transform and CC as metric. I'm using the --random-seed option to set the value, but no matter what I set it (0, which should use system time, or any positive non-0 value, which should set that as seed), the output and metric/convergence values over time are always exactly the same. I've also tried the ANTS_RANDOM_SEED environment variable, but no success with this, either.

Following the wiki, I've also tried to specify a sampling strategy for CC (random with percentage [0-1]), but this does not change the result. I've used --verbose to verify that this sampling strategy is indeed set.

To Reproduce
Use the antsRegistration script with two images, using the SyN transform with CC, and try to set the random seed with --random-seed [int].

System information (please complete the following information)

  • OS: Linux CentOS
  • OS version: Stream release 8
  • Type of system: HPC cluster

ANTs version information

  • ANTs code version: v2.4.2.post39-gbaa2bd1
  • ANTs installation type: Compiled from source

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions