Skip to content

Missing DropPath Import in pixart_relactrl_v1.py #14

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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