Skip to content

Inference Code Bug, collapse when demo_num > 1. #17

@Kevin-lkw

Description

@Kevin-lkw

Hi! I find a code bug in inference.py:
It seems that context length is 16 frame_actions (16*347) , so we can set args.demo_num > 1 and set args.frams to 16-args.demo_num, and generate should work well.
However, when I set args.demo_num to some number > 1, the image collapse quickly.
possible reason:
I find that this is because When training(and inference), condition is in [image, action,image,action ... ] format. However, in inference code, condition (variable image_input) contains only images, and I guess this is OOD and caused collapse.
my solution: add actions between images, and it works well!

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