Web
Build WASM File Without Glue JS File And Use It In Html
Here are our files in project: Add a simple C function in lib.c: Get wasm without glue js file Download the wasm file and use the interface in html Result:
Here are our files in project: Add a simple C function in lib.c: Get wasm without glue js file Download the wasm file and use the interface in html Result:
Here are some folders which contain json files.These json files have a version value, just look like the following image. We will increase this number by 10 for every json file in current folders recursively.Install command line tool jq to modify json Read more…
The function insert of std::map would fail if the key equivalent to the one of an element already in the container.when it happens, the new element is not inserted, and return an iterator to this existing element. Demo: The update Read more…
We have created an e-book titled “Speed Reading Classics,” which enables rapid reading of various classic literary works. The latest chapter features the Chinese modern novel “Camel Xiangzi,” written by Lao She. It was serialized in magazines from 1936 to Read more…
We had written some books and uploaded them. The relative page is These books are produced using gitbook technology, we will update them continuously.
The post introduces how to use stable diffusion to convert photo image to cartoon picture. Switch to img2img function. Drop image to the area. Click on the following button to generate prompt automatically. Other setting: Steps: 20, Sampler: DPM++ 2S Read more…
Demo images: Video: stable diffusion txt2img prompt:
Here is a example about how to use vtkCommand to listen for user’s key press event and change cell scalar to get different cell color.The project is based on VTK9.2 CMakeLists.txt main.cpp Demo: