Skip to content

[Segnet] TypeError: new() received an invalid combination of arguments #42

Open
@tailongnguyen

Description

@tailongnguyen

Hi,
I am using pytorch version 0.4.0, python 3.6 and this code appears to need a minor modification to make Segnet works.
Here is the bug:
image
I found out that the line 12 should change from
middle_channels = in_channels / 2
to
middle_channels = in_channels // 2

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