Giter Club home page Giter Club logo

Comments (5)

justindujardin avatar justindujardin commented on August 31, 2024 2

You need to add the weights files from your screenshot somewhere and fix the paths:

from celebbasis.

ygtxr1997 avatar ygtxr1997 commented on August 31, 2024 2

We use PIPNet to align and crop the face, but missed their weight files.
You may visit PIPNet repo to download the missing weight files or using the files provided by @justindujardin .
These files can also be downloaded from our Baidu Yun Drive with extracting code ygss.
We'll fix the hardcoded file paths ASAP!

from celebbasis.

aiXander avatar aiXander commented on August 31, 2024

Just updating the paths to relative paths (after putting the weight files there) works:

evaluation/face_align/PIPNet/lib/tools.py line 60:

    weight_file = 'evaluation/face_align/PIPNet/weights/epoch59.pth'
    state_dict = torch.load(weight_file, map_location=device)
    net.load_state_dict(state_dict)

    detector = FaceBoxesDetector(
        "FaceBoxes",
        "evaluation/face_align/PIPNet/weights/FaceBoxesV2.pth",
        use_gpu=True,
        device="cuda:0",
    )

from celebbasis.

aiXander avatar aiXander commented on August 31, 2024

This entire section of code is also full of hardcoded paths:
https://github.com/ygtxr1997/CelebBasis/blob/main/scripts/stable_txt2img.py#L272

from celebbasis.

ygtxr1997 avatar ygtxr1997 commented on August 31, 2024

Just updating the paths to relative paths (after putting the weight files there) works:

evaluation/face_align/PIPNet/lib/tools.py line 60:

    weight_file = 'evaluation/face_align/PIPNet/weights/epoch59.pth'
    state_dict = torch.load(weight_file, map_location=device)
    net.load_state_dict(state_dict)

    detector = FaceBoxesDetector(
        "FaceBoxes",
        "evaluation/face_align/PIPNet/weights/FaceBoxesV2.pth",
        use_gpu=True,
        device="cuda:0",
    )
  1. Code updated, 82fdc0e.

This entire section of code is also full of hardcoded paths: https://github.com/ygtxr1997/CelebBasis/blob/main/scripts/stable_txt2img.py#L272

  1. For stable_txt2img.py#L272, these hardcoded paths are not used under the default setting. We consider removing these codes or adding the relevant testing options.

from celebbasis.

Related Issues (19)

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.