Comments (4)
I never used serving. So I cant help you with that.
Also I would not advise you to use this models in production, the quality of generated images is rather low compared to production requirements. Moreover it will not generalize outside the dataset.
The closest thing I have is demo.py
, usage is following:
- Put an image of your person to
data/source_image.jpg
- Put image from which to extract pose to data/target_images
- Download pose estimator and some checkpoint (see Readme where)
python demo.py --generator_checkpoint path_to_checkpoint --warp_skip mask --dataset dataset_name --cache_pose_rep 0
- Result should be in
output/generated_images
There are already some images in the repository, you will need to remove them/
from pose-gan.
Ah, sorry. This was written for market. You should change resize in the line:
Line 61 in abda787
to (256, 256).
from pose-gan.
Thanks for the detailed explanation.
I'm getting the following error when I followed the above steps.
Traceback (most recent call last):
File "demo.py", line 108, in <module>
input_images, target_images, generated_images, names = generate_images(dataset, generator, args.use_input_pose)
File "/home/shan/Documents/pg/test.py", line 90, in generate_images
batch, name = dataset.next_generator_sample_test(with_names=True)
File "/home/shan/Documents/pg/pose_dataset.py", line 174, in next_generator_sample_test
batch = self.load_batch(index, False, True)
File "/home/shan/Documents/pg/pose_dataset.py", line 153, in load_batch
result = [self.load_image_batch(pair_df, 'from')]
File "/home/shan/Documents/pg/pose_dataset.py", line 131, in load_image_batch
batch[i] = imread(os.path.join(self._images_dir_test, p[direction]))
ValueError: could not broadcast input array from shape (128,64,3) into shape (256,256,3)
from pose-gan.
OK, it's working now
Thanks
from pose-gan.
Related Issues (20)
- Generation of heatmap HOT 1
- problems when test checkpoint files HOT 2
- ValueError: Dimension 0 in both shapes must be equal, but are 3 and 64. Shapes are [3,3,18,64] and [64,21,3,3]. for 'Assign_2' (op: 'Assign') with input shapes: [3,3,18,64], [64,21,3,3]. HOT 5
- Error while executing create_pairs_dataset.py HOT 5
- Error while executing "create_pairs_dataset.py" file HOT 1
- Create fasion annotation and pairing fasion data HOT 8
- Parameters to enhance the training speed HOT 5
- error while training HOT 2
- About pretrained model HOT 2
- question about compute_coordinates.py
- Real-Data in your paper HOT 4
- Downloading testing checkpoints HOT 1
- demo.py ValueError HOT 1
- Inference time HOT 3
- IOError: Unable to open file (unable to open file: name = 'pose_estimator.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0) HOT 3
- when I try to run compute_coordinates.py, it shows the wrong result HOT 1
- how can I get these pose-stick mask pictures? HOT 3
- How to deal with missing joint? HOT 2
- Keypoint detect problem HOT 1
- Error in Compute_coordinates.py
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 pose-gan.