Chinese Yellow Pages | Classifieds | Knowledge | Tax | IME

C++20 features

modules concept ( can put some limit/restrict on the template type ) template <template-parameter-list> concept concept-name = constraint-expression; https://ggulgulia.medium.com/c-20-concepts-part-1-the-basics-40f051c72776 #include <iostream> #include <vector>//first define a concept for print //lets call it…

How to run stable diffusion on CPU boxes

Docker image: https://hub.docker.com/r/siutin/stable-diffusion-webui-docker docker pull siutin/stable-diffusion-webui-docker:latest-cpu   https://github.com/siutin/stable-diffusion-webui-docker Run it: docker run -it –name sdw –network host -v $(pwd)/models:/app/stable-diffusion-webui/models -v $(pwd)/outputs:/app/stable-diffusion-webui/outputs –rm siutin/stable-diffusion-webui-docker:latest-cpu bash webui.sh –skip-torch-cuda-test –no-half –use-cpu all –share…