Skip to content

error while running the script #1

@SaddamBInSyed

Description

@SaddamBInSyed

@Mohamed209
thanks for your work.

I am getting the below error while runnng the script on my win10 pc ( cpu only) + pycharm

Traceback (most recent call last):
File "C:/Users/saddam.h.SMARTV/Downloads/monitoring-social-distancing-CSRNet-master/monitoring-social-distancing-CSRNet-master/predict.py", line 2, in
model = CSRNet()
File "C:\Users\saddam.h.SMARTV\Downloads\monitoring-social-distancing-CSRNet-master\monitoring-social-distancing-CSRNet-master\model\model.py", line 26, in init
self.frontend.state_dict().items()[i][1].data[:] = mod.state_dict().items()[i][1].data[:]
TypeError: 'odict_items' object does not support indexing

please advise

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions