Git Product home page Git Product logo

Comments (2)

huan085128 avatar huan085128 commented on September 3, 2024

me too, can't change width and height

100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 50/50 [00:08<00:00,  5.75it/s]
  0%|                                                                                                                                            | 0/35 [00:04<?, ?it/s]
Traceback (most recent call last):
  File "/mnt/private/fuhuan/projects/X-Adapter/inference.py", line 124, in <module>
    run_inference(args)
  File "/mnt/private/fuhuan/projects/X-Adapter/inference.py", line 117, in run_inference
    inference_lora(args)
  File "/mnt/private/fuhuan/projects/X-Adapter/scripts/inference_lora.py", line 239, in inference_lora
    pipe(prompt=prompt, prompt_sd1_5=prompt_sd1_5, negative_prompt=negative_prompt, width=768,
  File "/root/miniconda3/envs/xadapter/lib/python3.10/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "/mnt/private/fuhuan/projects/X-Adapter/pipeline/pipeline_sd_xl_adapter.py", line 987, in __call__
    noise_pred = self.unet(
  File "/root/miniconda3/envs/xadapter/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
    return forward_call(*input, **kwargs)
  File "/root/miniconda3/envs/xadapter/lib/python3.10/site-packages/accelerate/hooks.py", line 165, in new_forward
    output = old_forward(*args, **kwargs)
  File "/mnt/private/fuhuan/projects/X-Adapter/model/unet_adapter.py", line 1019, in forward
    sample += up_block_additional_residual.pop(0)
RuntimeError: The size of tensor a (24) must match the size of tensor b (32) at non-singleton dimension 2

from x-adapter.

Laidawang avatar Laidawang commented on September 3, 2024

i fixed in #20, Try updating my code.

from x-adapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.