Giter Club home page Giter Club logo

Comments (4)

wtjiang98 avatar wtjiang98 commented on July 16, 2024

Does it works with the default images? I think this error occur when you use your own images.
I suggest you to use images that have the same type and shape as the default images.

from psgan.

starstars123 avatar starstars123 commented on July 16, 2024

Does it works with the default images? I think this error occur when you use your own images.
I suggest you to use images that have the same type and shape with default images.

if name == 'main':
# source image, reference image
images = ['xfsy_0106.png', 'vFG586.png']
使用的应该就是默认图片,然后出现的这个错误,我用的windows系统下的pycharm运行的。

from psgan.

wtjiang98 avatar wtjiang98 commented on July 16, 2024

@starstars123 Sorry, we did not test on Windows. Let me know if you solve the problem.

from psgan.

vuexiaob avatar vuexiaob commented on July 16, 2024

Traceback (most recent call last):
File "D:/devCode/PSGAN-master/demo.py", line 72, in
main()
File "D:/devCode/PSGAN-master/demo.py", line 57, in main
image, face = inference.transfer(source, reference, with_face=True)
File "D:\devCode\PSGAN-master\psgan\inference.py", line 33, in transfer
source_input, face, crop_face = self.preprocess(source)
File "D:\devCode\PSGAN-master\psgan\preprocess.py", line 152, in call
lms = futils.dlib.landmarks(image, face) * self.img_size / image.width
File "D:\devCode\PSGAN-master\faceutils\dlibutils\main.py", line 111, in landmarks
shape = predictor(np.asarray(image), face).parts()
RuntimeError: Expected writable numpy.ndarray with shape set.

from psgan.

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.