HankYe / PAGCP

PAGCP for the compression of YOLOv5
GNU General Public License v3.0
111 stars 11 forks source link

Cannot successfully run compress.py #1

Closed LishaTang closed 1 year ago

LishaTang commented 1 year ago

Hi, thanks for ur work. However, I failed to run the compressor.py following your commands written in readme. I met quite a lot errors in the importing part, for example, ImportError: cannot import name 'color_list' from 'utils.plots' (~/PRBNet_PyTorch/prb_PAGCP/utils/plots.py) ImportError: cannot import name 'fitness' from 'utils.metrics' (~/PRBNet_PyTorch/prb_PAGCP/utils/metrics.py) compress.py: error: unrecognized arguments: --sequential

Could u give me some advice on these? Thanks for your time and patience.

HankYe commented 1 year ago

Hi, thanks for ur work. However, I failed to run the compressor.py following your commands written in readme. I met quite a lot errors in the importing part, for example, ImportError: cannot import name 'color_list' from 'utils.plots' (~/PRBNet_PyTorch/prb_PAGCP/utils/plots.py) ImportError: cannot import name 'fitness' from 'utils.metrics' (~/PRBNet_PyTorch/prb_PAGCP/utils/metrics.py) compress.py: error: unrecognized arguments: --sequential

Could u give me some advice on these? Thanks for your time and patience.

Hi, thanks for ur attention to our work. We have updated the code files to solve the mentioned bugs. And one confusion is about the error _ImportError: cannot import name 'colorlist' from 'utils.plots', which we do not meet during the debug process. If u still have this problem, you could provide more information about this problem.