GuoleiSun / CountSeg

Official code for "Object counting and instance segmentation with image-level supervision", in CVPR 2019 and TPAMI 2020
162 stars 43 forks source link

Import Issue with 'imresize' #18

Open vedatimeri opened 8 months ago

vedatimeri commented 8 months ago

Checking all available modules cannot import name 'imresize' from 'scipy.misc' (/home/vedat/CountSeg/venv/lib/python3.8/site-packages/scipy/misc/init.py). The package "prm" under namespace "prm" could not be imported. Try to execute "pip install scipy>=1.0.1" to install the missing dependency. The annotation type torch.Tensor is not supported. The package "losses" under namespace "pytorch" could not be imported.

I have this problem because imresize not exist at scipy.misc. I do everything in right way to install this. Is there a recent change in the use of 'imresize' from 'scipy.misc' in the latest version of 'scipy'? Is there any solution implemented in 'prm' for this problem? Can you suggest any other alternative to 'imresize' that can be used instead of 'scipy.misc'?