Skip to content

Missing DropPath Import in pixart_relactrl_v1.py #14

@eightgirls

Description

@eightgirls

In diffusion/model/nets/pixart_relactrl_v1.py, the code uses DropPath class but doesn't import it directly. The class is referenced in the RGLC_Block constructor but there's no corresponding import statement.

Steps to Reproduce

Check the code at line ~100 in diffusion/model/nets/pixart_relactrl_v1.py:

self.drop_path = DropPath(drop_path) if drop_path > 0. else nn.Identity()

Proposed Solution

Add the following import to the top of the file:

from timm.models.layers import DropPath

This is consistent with other model files in the repository that properly import this class.

Nice works!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions