Skip to content

Some questions and confirmation information #1

Description

@zRzRzRzRzRzRzR

Dear Development Team,

Hello, I have successfully installed the model and run it according to the requirements in the README, but I have encountered some issues and look forward to your response.

  1. The repository does not seem to provide example prompt requirements, such as the language and how to structure the length properly. By reading the code, I gathered the following information:
  • No negative_prompt
  • The length of the input prompt should be < 77 Tokens (CLIP)
  • The input must be in English.

In this case, I am unsure how to structure the prompt, so I simply wrote a prompt:

A little girl is riding a bicycle at high speed. Focused, detailed, realistic.

and set the seed to 42:

def set_seed(seed):
    random.seed(42)
    os.environ['PYTHONHASHSEED'] = str(42)
    np.random.seed(42)
    torch.manual_seed(42)
    torch.cuda.manual_seed(42)

I set the output to 720x480 according to the README, and configured it as follows:

                        prompt,
                        negative_prompt="",
                        num_inference_steps=50,
                        guidance_scale=7.5,
                        width=768,
                        height=432, #480x288  624x352 432x240 768x432
                        frames=8*20,
                    )

It occupied 67904MiB of GPU memory. The other parameters remained unchanged, with 50 sampling steps. The final video can be found here:

sample_1_seed0.mp4

Is this the expected result?

  1. I did not see any relevant details about I2V in the code, nor any place where an image can be used as input. Should I understand that this open-source model is a T2V model?

  2. It seems that there is no parameter to control the frame rate.

  • According to the promotion, the model can generate videos at 24 frames per second.
    image

However, the video I generated only has 8 frames, with a total of 40 frames, as verified using the following command:

ffprobe -v 0 -of csv=p=0 -select_streams v:0 -show_entries stream=r_frame_rate sample_1_seed0.mp4

8/1
  • I tried adjusting the frame rate based on the parameter I saw. If I generate a 20-second video on a single GPU with a frame rate of 24, it results in an out-of-memory (OOM) error on a single A100 GPU, even with the following settings:

image

Is it because the open-source model only outputs 8 frames?

Additionally, there may be some issues in the code within the repository:

  1. device = None,

    This should be modified to device = "cuda", or add device = "cuda" in:
    pipe = VchitectXLPipeline(args.ckpt_path)

    Otherwise, a tensor not on the same device error will occur during pos embed.

  2. https://github.com/Vchitect/Vchitect-2.0/tree/master/models/__pycache__
    Should this be deleted? It seems unnecessary.

Looking forward to your response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions