keepcalculator

06 Numbers and Powers

Nightshade Art Protection: How to Use It

Card No. 06·66155 · Updated · Standard formula, shown below

Nightshade is a tool that helps artists protect their artwork from being used to train generative AI models without permission. It works by adding invisible perturbations to your images that cause AI models to misinterpret them—for example, a picture of a dog might be learned as a cat. This guide walks you through using Nightshade to protect your art, from downloading the tool to applying it to your files.

What You’ll Need

  • A computer running Windows, macOS, or Linux.
  • The Nightshade software (available for free from the University of Chicago’s Glaze project website).
  • Your artwork as image files (PNG, JPG, or TIFF).
  • Optional: A GPU (NVIDIA recommended) for faster processing, but not required.

Step-by-Step

  1. Download and install Nightshade. Go to the official Glaze project website (glaze.cs.uchicago.edu) and download the version for your operating system. Run the installer and follow the on-screen instructions. On macOS, you may need to right-click the app and select “Open” to bypass Gatekeeper.
  2. Launch Nightshade. Open the application. You’ll see a simple interface with options to select your files and adjust settings.
  3. Add your artwork. Click the “Select Images” button (or drag and drop your files into the window). You can add multiple images at once. Supported formats include PNG, JPG, and TIFF.
  4. Choose your output folder. Click “Select Output Folder” to decide where the protected images will be saved. It’s a good idea to create a new folder so you don’t overwrite your originals.
  5. Adjust the intensity slider. Nightshade lets you control how strongly the perturbations are applied. A higher intensity means stronger protection but may make the image look slightly different. Start with the default (usually around 50%) and adjust based on your needs.
  6. Select your rendering mode. If you have a compatible GPU, choose “GPU” for faster processing. Otherwise, select “CPU” (slower but works on any machine).
  7. Click “Run Nightshade.” The tool will begin processing. Depending on the number and size of images, this can take a few minutes to several hours. You’ll see a progress bar.
  8. Check your output. Once done, navigate to your output folder. The protected images will have “_nightshaded” appended to their filenames. Visually compare them to the originals—they should look nearly identical to the human eye.
  9. Use the protected images. Upload the nightshaded versions to your website, social media, or portfolio. Keep the originals as backups. The protection works best when you share the images publicly, as that’s where AI scrapers typically collect data.

Common Mistakes

  • Using the original images instead of the nightshaded ones. Make sure you download and share the files from the output folder, not your originals.
  • Setting the intensity too low. If you set it below 30%, the protection may be too weak to affect AI training. Stick to the recommended range.
  • Sharing images that have been resized or compressed. Nightshade works best on full-resolution images. If you resize or heavily compress the protected file, the perturbations may be lost.
  • Expecting immediate results. Nightshade doesn’t remove your images from existing AI models. It only prevents future training from using your protected images.
  • Running on too many images at once. Processing hundreds of images at high intensity can take days. Batch in smaller groups if you’re in a hurry.

Tips

  • Combine with Glaze. Glaze is a complementary tool that protects against style mimicry. Using both on the same image provides broader protection.
  • Keep backups. Always keep the original, unshaded files in a separate location. Nightshade is irreversible—you can’t remove the perturbations later.
  • Test on one image first. Before processing your entire portfolio, run Nightshade on a single image to see how it looks and how long it takes.
  • Use a GPU if possible. Processing is significantly faster on a GPU. If you don’t have one, consider using a cloud GPU service for large batches.
  • Monitor your image quality. If you notice visible artifacts or color shifts, lower the intensity slightly until the image looks clean.

Troubleshooting

  • The app won’t open on macOS. Right-click the app and select “Open” to bypass Gatekeeper. If that fails, go to System Preferences > Security & Privacy and click “Open Anyway.”
  • Processing is extremely slow. On CPU, Nightshade can take several minutes per image. Close other applications to free up resources. If you have a GPU, make sure it’s selected in the settings.
  • The output images look distorted. This usually means the intensity is too high. Re-run with a lower intensity (e.g., 40-50%).
  • I get an error about insufficient memory. Large images (e.g., 4K) require lots of RAM. Try processing smaller batches or resizing images to 2048px on the longest side before running Nightshade.
  • The tool crashes on Windows. Make sure you have the latest graphics drivers installed. If it persists, try running in compatibility mode (right-click > Properties > Compatibility > Run as Windows 7).

Frequently Asked Questions

Does Nightshade work on all AI models?

Nightshade is designed to disrupt training for most major generative AI models, but its effectiveness can vary. It’s most effective against models that scrape images from the web, like Stable Diffusion. It may not affect models that are already trained.

Will Nightshade ruin the look of my artwork?

At the recommended intensity, the changes are invisible to the human eye. You may notice slight color shifts or noise if you zoom in, but when displayed normally, the image should look identical.

Can I use Nightshade on any type of image?

Yes, Nightshade works on any image format supported by the tool (PNG, JPG, TIFF). However, it’s most effective on detailed, high-resolution artwork. Simple logos or text may not be as well protected.

Is Nightshade free to use?

Yes, Nightshade is free and open-source, developed by researchers at the University of Chicago. You can download it from their official website.

Does Nightshade protect against AI already trained on my images?

No, Nightshade only prevents future training. It cannot remove your images from models that have already been trained. For existing copies, you’d need to request removal from the platform hosting the model.

Can I undo Nightshade if I change my mind?

No, the perturbations are permanent. Once applied, you cannot remove them. Always keep your original, unshaded files.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →