Skip to content

TypeError: 'int' object is not subscriptable #6

@Chenjingsuo

Description

@Chenjingsuo

E:\PyCharm_project\1_Experiment_case\Polyner-master\Polyner.py:87: SyntaxWarning: 'NoneType' object is not subscriptable; perhaps you missed a comma?
img_pre = network(xy)[(None[:None], int(np.mean(np.arange(0, e_level))))].view(2 * SOD + 1, 2 * SOD + 1)
Traceback (most recent call last):
File "E:\PyCharm_project\1_Experiment_case\Polyner-master\main.py", line 21, in
Polyner.train(img_id=i, config=config)
File "E:\PyCharm_project\1_Experiment_case\Polyner-master\Polyner.py", line 42, in train
spectrum = spectrum[((e_1 - 1)[:e_n], 1)]
~~~~~~~~~^^^^^^
TypeError: 'int' object is not subscriptable
请问作者,这是那里发生了错误,里面的东西我都没改

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