nagadomi / nunif

Misc; latest version of waifu2x; 2D video to stereo 3D video conversion
MIT License
1.58k stars 142 forks source link

The ability to scale not only photos but also websites. #41

Closed My12123 closed 1 year ago

My12123 commented 1 year ago

2023-06-05_16-15-52

nagadomi commented 1 year ago

Usually more than 1000 people visit waifu2x.udp.jp at the same time. So it is not allowed to take a lot of time for one request.

Currently images are cached for 30 minutes, and that is more than 5GB in 30 minutes. So it is not allowed to keep caches for long hours. Also, for privacy policy reasons, I prefer not to keep the image cashes as much as possible.

My12123 commented 1 year ago

Is it possible to do this for the local version?

My12123 commented 1 year ago

Where are the processed images stored in the local version?

nagadomi commented 1 year ago

Where are the processed images stored in the local version?

You can specify it with --cache-dir option, tmp/waifu2x_cache by default. Also, you can specify the expiration time of the cache with the following option. ( 30 minutes by default)

--cache-ttl CACHE_TTL
                        cache TTL(min) (default: 30)

However, cache files are diskcache format so they cannot be viewed with common image viewers.

Is it possible to do this for the local version?

All you need is a web crawler (scraper) software. You should use another software for that purpose.

  1. Downloading images with crawler software
  2. Processing images with waifu2x CLI
My12123 commented 1 year ago

All you need is a web crawler (scraper) software. You should use another software for that purpose. Downloading images with crawler software Processing images with waifu2x CLI

How can this be done? I found a crawler https://github.com/BruceDone/awesome-crawler

nagadomi commented 1 year ago

It depends on the structure of the target website, so find good software for yourself. For example, for twitter, you can use gallery-dl. (supported sites)

If it is not a well-known website, you may need to write your own rules using a generic web crawler. Anyway, I am not knowledgeable about crawler softwares, so find good software for yourself.

My12123 commented 1 year ago

Will a waifu2x crawler version be created?

My12123 commented 1 year ago

https://github.com/1j01/rezzy-zoom-and-enhance I found this but it doesn't really help the Art/Scans model is better suited for manga.

nagadomi commented 1 year ago

Will a waifu2x crawler version be created?

I will not develop it.