Giter Site home page Giter Site logo

Comments (10)

xiaojiemeidu avatar xiaojiemeidu commented on May 25, 2024 1

Could it be a problem with the latest version of xformers?

possibly

Ok, I will downgrade the xformers version and try again, thank you for your reply.

from batch-face-swap.

xiaojiemeidu avatar xiaojiemeidu commented on May 25, 2024 1

Just setting p.batch_size to 1 seems to be working.

Can you please try it out?

p.batch_size = 1
p.n_iter = 0
p.init_images[0] = all_images[0]

p.batch_size = 0
p.n_iter = 0
p.init_images[0] = all_images[0]

image

image
python: 3.10.6  •  torch: 2.0.0+cu118  •  xformers: 0.0.19

it works!thanks!

from batch-face-swap.

kex0 avatar kex0 commented on May 25, 2024

I just updated to the latest A1111, updated torch and xformers and it's working. I don't know what could be causing your issue.

from batch-face-swap.

xiaojiemeidu avatar xiaojiemeidu commented on May 25, 2024

I just updated to the latest A1111, updated torch and xformers and it's working. I don't know what could be causing your issue.

Your xformers 0.0.17?

from batch-face-swap.

kex0 avatar kex0 commented on May 25, 2024

Your xformers 0.0.17?

Yes
chrome_qzdcRuRfvq

from batch-face-swap.

xiaojiemeidu avatar xiaojiemeidu commented on May 25, 2024

Your xformers 0.0.17?

Yes chrome_qzdcRuRfvq

Could it be a problem with the latest version of xformers?

from batch-face-swap.

kex0 avatar kex0 commented on May 25, 2024

Could it be a problem with the latest version of xformers?

possibly

from batch-face-swap.

kex0 avatar kex0 commented on May 25, 2024

I just tested img2img tab and I'm getting the same error, I'll look into it.

from batch-face-swap.

kex0 avatar kex0 commented on May 25, 2024

Alright, looks like these lines are causing the issue

p.batch_size = 0
p.n_iter = 0
p.init_images[0] = all_images[0]

Removing them works but then it generates 2x as many images in img2img

The reason is because I'm already generating the faces here

proc = renderImg2Img(
bfs_prompt,
bfs_nprompt,
sd_sampler,
steps,
cfg_scale,
seed,
bfs_width,
bfs_height,
image,
image_mask,
batch_size,
n_iter,
denoising_strength,
mask_blur,
inpainting_fill,
inpainting_full_res,
inpaint_full_res_padding,
do_not_save_samples = True,
)

but then it continues and does the regular img2img. I need to somehow stop it after it's done with the faces.

from batch-face-swap.

kex0 avatar kex0 commented on May 25, 2024

Just setting p.batch_size to 1 seems to be working.

Can you please try it out?

p.batch_size = 1
p.n_iter = 0
p.init_images[0] = all_images[0]

p.batch_size = 0
p.n_iter = 0
p.init_images[0] = all_images[0]

from batch-face-swap.

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.