Pyro: scipy imresize is deprecated

Created on 20 May 2019  路  2Comments  路  Source: pyro-ppl/pyro

imresize is used in air example, but it is deprecated now. We need to replace it by something else to make tests pass.

More context about this issue: imresize is used in observations but this library is deprecated now in favour of tensorflow datasets. But multi-mnist is not available in tensorflow's datasets yet. So I'm not sure what is a good solution for this issue.

bug

Most helpful comment

The problem is with the observations library (that uses this function) which is not being maintained anymore. I think we need to remove dependency on observations.

All 2 comments

The problem is with the observations library (that uses this function) which is not being maintained anymore. I think we need to remove dependency on observations.

We need to replace it by something else

The docs suggest using numpy.array(Image.fromarray(arr).resize()) inplace of imresize. This requires PIL which AIR already has as a dependency.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eb8680 picture eb8680  路  4Comments

fritzo picture fritzo  路  4Comments

fehiepsi picture fehiepsi  路  4Comments

fritzo picture fritzo  路  5Comments

neerajprad picture neerajprad  路  5Comments