Comments (4)
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.
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.
@starstars123 Sorry, we did not test on Windows. Let me know if you solve the problem.
from psgan.
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)
- Download training dataset HOT 8
- landmark and segments file HOT 3
- partial makeup example HOT 3
- Test result HOT 4
- CUDA out of memory HOT 6
- Histogram loss on lip and eyes HOT 10
- PSGAN++ HOT 3
- about 'affine' param in InstanceNorm2d HOT 1
- white spots in the generated image HOT 5
- 如果使用自己的数据集训练 seg与landmark如何生成 HOT 1
- Download makeup-wild Dataset HOT 2
- Error occurred when i run demo.py HOT 5
- how to get attention map? HOT 1
- RuntimeError: 'weight' must be 2-D HOT 1
- Some advice about license compliance
- Histogram Loss Doesn't Match Paper
- How do I get the png image under the landmark folder
- training result is not good
- How to convert to ONNX?
- ImportError: cannot import name 'load_state_dict_from_url' from 'torchvision.models.vgg'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psgan.