Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A simple way to save 99% network data flowing and 3x speed up the generating with much more face quality #16

Closed
lllyasviel opened this issue Aug 18, 2017 · 8 comments

Comments

@lllyasviel
Copy link

lllyasviel commented Aug 18, 2017

step 1. generate about 1x10^7 face images with your tesla in about 24 hours on monday every week.
step 2. delete all the generated images on sunday every week.
step 3. do binary search each time your user requires a image and send them the 128p result in jpg version.

Because the AI do not need user to upload their sketch or highly Individualization like paintschainer or styletransfer, you can do as follow.

step 4. You can use discriminator to give "score" to the mentioned 1x10^7 face images when generating them in step 1 and sort this score in step 3 to give your user the best result.

@lllyasviel lllyasviel changed the title A simple way to save 99% network data flowing and 3x speed up the generating A simple way to save 99% network data flowing and 3x speed up the generating with much more face quality Aug 18, 2017
@lllyasviel
Copy link
Author

then even a 5 dollar server can hold the app, if someone write a fully php or asp or asp.net version.

@zhangjk95
Copy link
Member

zhangjk95 commented Aug 18, 2017

Thank you for your suggestion. However, we can't accept it.
This website is not only a tool for generating images, but also a demo that shows our research. Therefore, we can't simply return the images to users. It is essential to show how it really works. And users can even do some "hackings" to it in order to archive some more interesting results (e.g. http://tosaka2.hatenablog.com/entry/2017/08/15/174439).

@lllyasviel
Copy link
Author

Then the "how it really works" is more important than all these as follow?

  1. 99% network data saving.
  2. much more faster image giving.
  3. much more higher image quality.
  4. every one can run this app using his own server with very little money cost.

btw: the "hacking" will still works, if we use some simple trick

@zhangjk95
Copy link
Member

zhangjk95 commented Aug 18, 2017

The answer to your question is "yes", because that's the reason why we created this website.
Besides, the number of combinations of options is more than 4*10^4. To ensure that every user can get a unique image each time he/she request an image for his/her option, it requires a huge amount of pregenerated images, which is almost impossible.
Note that the "uniqueness" of image is very important because we don't wan't users to get a image that he/she has already seen on twitter timeline or somewhere else.

@lllyasviel
Copy link
Author

easy.
1x10^7 is enough and not impossible.
delete the image every time you give it to a user will ensure the "unique". then if images is running out we can use step 1 every 3 days instead of a week.

@lllyasviel
Copy link
Author

batchsize is 32
each batch use 1.5s in your tesla
then 1*10^7 takes 17.5 hours

@ghost
Copy link

ghost commented Aug 19, 2017

@lllyasviel
你再混几年这个业界再过来跟我说,把这些图片做成缓存处理。
Too young, too simple, sometimes naive.

@lllyasviel
Copy link
Author

@anonymous066
The main advantage of my idea is not only the cache. The most important thing is we can use discriminator to score these cache, then we can sort their score to achieve the best result.
And the problem of "unique" can be tackled by dynamic deleting as I mentioned above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants