Giter Club home page Giter Club logo

Comments (1)

liguoyu666 avatar liguoyu666 commented on June 29, 2024

when I used "python demo_swap.py --gpu_ids 0 --batch_size 1", it reported errors,
`load face model from assets/pretrains/sphere20a_20171020.pth
step: 49; total: 3.061088; cyc: 0.145273; str: 0.061302; fid: 0.992965; msk: 0.000475: 100%|█████████████████████████████████████████████████████████| 50/50 [00:33<00:00, 1.40it/s]

                    Personalization: completed...

                    Swapping: ./assets/src_imgs/imper_A_Pose/009_5_1_000.jpg wear the clothe of ./assets/src_imgs/fashion_woman/fashionWOMENBlouses_Shirtsid0000666802_4full.jpg...

Traceback (most recent call last):
File "demo_swap.py", line 62, in
visualizer=visualizer)
File "/home/lgy/.local/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 43, in decorate_no_grad
return func(*args, **kwargs)
File "/home/lgy/PycharmProjects/impersonator/models/swapper.py", line 213, in swap
src_part_mask = (torch.sum(src_info['part'][:, selected_ids, ...], dim=1) != 0).bool()
AttributeError: 'Tensor' object has no attribute 'bool'
`

from impersonator.

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.