GFZ / arosics

AROSICS - Automated and Robust Open-Source Image Co-Registration Software
https://git.gfz-potsdam.de/danschef/arosics
Apache License 2.0
137 stars 26 forks source link

TypeError: ransac() got an unexpected keyword argument 'rng' #30

Closed SpatLyu closed 10 months ago

SpatLyu commented 10 months ago

Description

When I use arosics.COREG_LOCAL..correct_shifts() ,it raises an error called TypeError: ransac() got an unexpected keyword argument 'rng'

What I Did

import arosics

CRL = arosics.COREG_LOCAL('./data/reference-image.tif','./data/sensed-image.tif',
                          grid_res=200,max_points=1000,path_out='./register_image_by_ospy/result.tif',
                          fmt_out='GTIFF')
CRL.correct_shifts()

image image

danschef commented 10 months ago

Thanks for raising this. This goes back to https://git.gfz-potsdam.de/danschef/arosics/-/merge_requests/39 which replaced random_state with rng due to a recent update of scikit-image. AROSICS now requires scikit-image >=0.21.0, but I just saw that I forgot to update the recipe of the conda-forge package. I will update it soon. Until then, just update scikit-image.

danschef commented 10 months ago

New conda-forge build is in progress: https://github.com/conda-forge/arosics-feedstock/pull/71

SpatLyu commented 10 months ago

Thanks for your prompt reply and I will update scikit-image

danschef commented 10 months ago

The new build is merged and will be installable from conda-forge within the next hours.