cxgincsu / SemanticGuidedHumanMatting

Robust Human Matting via Semantic Guidance, ACCV 2022.
MIT License
242 stars 36 forks source link

Np.int -> int #18

Closed sklipnoty closed 8 months ago

sklipnoty commented 1 year ago

Given

AttributeError: module 'numpy' has no attribute 'int'. np.intwas a deprecated alias for the builtinint. To avoid this error in existing code, useintby itself. Doing this will not modify any behavior and is safe. When replacingnp.int, you may wish to use e.g.np.int64ornp.int32to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidan

I had to replace

size = np.int(2 * half_size + 1)

With

size = int(2 * half_size + 1)

Then everything works, great results!

cxgincsu commented 8 months ago

fixed