Skip to content

OverflowError :cannot fit 'int' into an index-sized integer #35

@nnanhuang

Description

@nnanhuang

When I run your code, it fails and I got message below:
OverflowError
cannot fit 'int' into an index-sized integer
File "/data1/hn/high_reso_3d/stable-dreamfusion/guidance/pipeline_demofusion_sdxl.py", line 309, in encode_prompt
text_inputs = tokenizer(
File "/data1/hn/high_reso_3d/stable-dreamfusion/guidance/pipeline_demofusion_sdxl.py", line 919, in call
) = self.encode_prompt(
File "/data1/hn/high_reso_3d/stable-dreamfusion/test_demo_sdxl.py", line 11, in
images = pipe(prompt, negative_prompt=negative_prompt,
OverflowError: cannot fit 'int' into an index-sized integer

My Python and system architectures are correctly aligned (both 64-bit).

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