Skip to content

dream.sh fail on M1 #273

Description

@i3oc9i

with last commit 0433b3d

i get this error

╰─ff python ./scripts/dream.py

  • Initializing, be patient...

Loading model from models/ldm/stable-diffusion-v1/model.ckpt
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
Using half precision math. Call with --full_precision to use more accurate but VRAM-intensive full precision.

Setting Sampler to k_lms
model loaded in 5.80s

  • Initialization done! Awaiting your command (-h for help, 'q' to quit)
    dream> a smiling face
    Traceback (most recent call last):
    File "/Users/ivano/Code/Ai/dream2/./scripts/dream.py", line 543, in
    main()
    File "/Users/ivano/Code/Ai/dream2/./scripts/dream.py", line 103, in main
    main_loop(t2i, opt.outdir, opt.prompt_as_dir, cmd_parser, infile)
    File "/Users/ivano/Code/Ai/dream2/./scripts/dream.py", line 230, in main_loop
    t2i.prompt2image(image_callback=image_writer, **vars(opt))
    File "/Users/ivano/Code/Ai/dream/ldm/simplet2i.py", line 289, in prompt2image
    torch.cuda.torch.cuda.reset_peak_memory_stats()
    File "/Users/ivano/.miniconda/envs/dream/lib/python3.10/site-packages/torch/cuda/memory.py", line 256, in reset_peak_memory_stats
    return torch._C._cuda_resetPeakMemoryStats(device)
    AttributeError: module 'torch._C' has no attribute '_cuda_resetPeakMemoryStats'

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