glaze
AdverseCleaner
glaze | AdverseCleaner | |
---|---|---|
18 | 19 | |
894 | 299 | |
- | - | |
9.9 | 6.5 | |
6 days ago | 8 months ago | |
C++ | Python | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
glaze
- [C++20] to_tuple with compile-time names
-
More helpful reflection in Glaze for GCC and Clang (MSVC please take note)
Previously in the Glaze library, you would need to write out your key names along with the member object pointers. However, as of version 1.8.0, these key names are now optional. If the keys are not provided the member variable name will be reflected for serialization/deserialization. I'm even more excited about this reflection than the previously announced pure Clang reflection, because it works well with user customization and supports non-aggregate, non-default constructible, and non-constexpr types.
-
Efficient Versatile Encoding (EVE) - A new, extremely fast binary data format
BEVE fully supports JSON messages. The Glaze C++ JSON library allows users to use the same API to encode/decode to either JSON or EVE binary. Glaze also encodes/decodes directly into your C++ structures and standard library containers, making it easy to use without additional copies.
-
How to arrange a bunch of variables into one array of bytes in memory?
I would either look at https://github.com/eyalz800/zpp_bits or https://github.com/stephenberry/glaze. FYI, glaze both supports json and binary.
- [Cpp] Nouvelle bibliothèque JSON la plus rapide pour C ++ 20
- DynaMix 2.0.0 Released
-
Full source code of Glaze is leaked. I'm curious if someone with knowledge is able to reverse engineer this techinque for enhanced model training with minial style interference.
Glaze is a software that uses artificial intelligence to create realistic images from text descriptions. It is based on Stable Diffusion, an open source framework for image synthesis using diffusion models. Glaze claims to offer enhanced model training with minimal style interference by using a technique called ControlNet1.
-
enum_name (yet another enum to/from string conversion utility >=C++11)
I ended up adopting this approach in some test code https://godbolt.org/z/GKW8Preva when I was thinking about adding automatic enum serialization/deserialization to stephenberry/glaze. But there are too many limitations.
-
Help Needed Regarding "conversion of endianness" while binary-serializing files
Alternatively, use a preexisting library for binary serialization and deserialization. If you’re trying to serialize your own stuff, glaze is a good option since it supports both json and binary serialization/deserialization. https://github.com/stephenberry/glaze
-
Glaze JSON library version 1.0 release
This parse file has some of the chunk simd processing: https://github.com/stephenberry/glaze/blob/main/include/glaze/util/parse.hpp
AdverseCleaner
-
An image preprocessing tool to protect artworks from AI-for-Art based mimicry
These tools do not work in the real world for several reasons: first, people who train LoRA or models curate their datasets, removing adversarial noise is trivial: https://github.com/lllyasviel/AdverseCleaner; second, if they are trying to defend themselves against training AI models, then it will probably do almost nothing at all, models trained from scratch will learn the distribution, even one where the samples have adversarial noise (which can only attack a frozen model, like a VAE), SDXL has a new VAE, so the VAE will just be more robust if there is adversarial noise on the images, because it will learn to ignore it, many other models do not have a VAE to begin with.
Also, resizing the image (as is almost always done when training the model) will probably destroy most if not all of the adversarial noise.
-
Image Restoration vs Glaze
Glaze's new FAQ says that no one has bypassed Glaze yet and ignores that two papers have already suggested it's simple to bypass. They say that AdverseCleaner doesn't work and show a quote from the creator that suggests it doesn't. Has anyone else tried image restoration techniques like ESRGan or SwinIR? They seem to completely neutralize Glaze.
-
Can artists protect their work from AI? – BBC News
GitHub - lllyasviel/AdverseCleaner: Remove adversarial noise from images
-
Why you should NOT glaze/mist your work (for now). A view into what that actually does for you.
I appreciate the warning since it is done out of good faith, but I would still like to disagree with you. I tested many of these adversarial noise removers, such as "AdverseCleaner" (https://github.com/lllyasviel/AdverseCleaner), and they simply don't work, they don't remove the noise and just smooth it out to make it less noticeable. As long as you use a high enough strength, these cleaners will not be effective.
- ControlNet and A1111 Devs Discussing New Inpaint Method Like Adobe Generative Fill
-
Glazing, Noisifying, Bluring, Pixelizing, Lineifiction...
Also, aren't most of those techniques beaten by some 16 lines Python scripts, like https://github.com/lllyasviel/AdverseCleaner?
-
the anti-AI lobby
glaze doesn't work (needs millions of glazed images to poison ai models) and also stole code and can also be beaten in 16 lines of code
- any Anti-glaze or Glaze-Decrypt In planning?
-
Full source code of Glaze is leaked. I'm curious if someone with knowledge is able to reverse engineer this techinque for enhanced model training with minial style interference.
adverse cleaner (repo owned by the author of controlnet): https://github.com/lllyasviel/AdverseCleaner
-
16-line Python code for removing adversarial noise from images
This article is about adversarial noise. Check the https://github.com/lllyasviel/AdverseCleaner/blob/main/clean.py. In simple words, it reads an input image, applies the bilateral filter multiple times to remove noise, applies the guided filter multiple times to remove adversarial noise, and writes the resulting denoised image to an output file.
What are some alternatives?
json - A C++11 library for parsing and serializing JSON to and from a DOM container in memory.
AdverseCleanerExtension - Remove adversarial noise from images
benchmarks - Some benchmarks of different languages
alpaca-discord - A Simple Discord Bot for the Alpaca LLM
dyno - Runtime polymorphism done right
stable-diffusion-webui-adverse-cleaner-tab - An extension of AUTOMATIC1111's webui to remove adverse noise from images.
polytail - Rust-like trait-based polymorphism for C++
sd-webui-controlnet - WebUI extension for ControlNet
te - C++17 Run-time polymorphism (type erasure) library
diffusionbee-stable-diffusion-ui - Diffusion Bee is the easiest way to run Stable Diffusion locally on your M1 Mac. Comes with a one-click installer. No dependencies or technical knowledge needed.
mk_parse_int - String to int (in C89).
lfjson - A memory-optimized and data-oriented JSON library written in C++