Abstract
This paper presents the Fully Automatic Color Transformer (FACT), a GAN-based framework designed for object-specific recoloring via natural language commands. By leveraging saliency masks, a novel paired discriminator, and cycle-consistency losses, FACT enables realistic color transformations without the need for paired training data. The system demonstrates robustness to imperfect segmentation and achieves superior performance in both image quality and object recognition metrics compared to existing baselines.
Introduction
In professional photography and graphic design, recoloring specific objects—such as changing a model's shirt from red to "midnight blue"—traditionally requires tedious manual masking and expert color grading. While general image-to-image translation has advanced significantly, targeting specific objects within a complex scene remains a challenge. Existing tools typically require manual interaction or apply global style transfers that affect the entire image background. To address this, researchers from Adobe and the University of Central Florida developed the Fully Automatic Color Transformer (FACT), which executes recoloring through simple text commands like recolor <object> to <color>.
The Challenge of Unpaired Data
The primary obstacle in training object-specific recoloring models is the lack of paired datasets. In real-world scenarios, it is rare to find two identical photographs where only the color of a single object differs. Training a deep learning model to understand the appearance of a "blue potato" while preserving its unique texture and the surrounding environment is a complex translation problem. FACT overcomes this by utilizing a weakly supervised approach that does not require "before and after" image pairs.
The FACT Framework
The FACT pipeline integrates several components to ensure localized and realistic color changes. The process begins by using an off-the-shelf object detector (Faster-RCNN) and a saliency mask extractor to isolate the target object.
As shown in the architecture diagram above, the system utilizes a U-Net generator where the target color is injected into the decoder layers as a color mask. A critical innovation is the Paired Discriminator. Unlike standard GAN discriminators that evaluate a single image's realism, this component analyzes a pair of images (original and recolored). It ensures the output matches the target color tag while maintaining structural and textural consistency with the source.
To further refine the output, the model employs three specific loss functions:
- Cycle Consistency: Ensures that recoloring an object to a new color and then back to its original state reproduces the initial image.
- Background Preservation ($L_4$): Constrains the model to only modify pixels within the identified object mask.
- Identity Loss: Prevents any changes when the target color matches the object's current color.
Dataset Generation and Robustness
To train the model, the authors constructed a custom dataset by scraping nearly 6,000 queries from Google Images, combining 421 object tags with 14 common colors. These images were auto-annotated using pre-trained models to ensure the detected objects matched the search queries.
One of the most significant findings was the model's robustness to "noisy" inputs. Even when the initial saliency masks were distorted by up to 15%, the GAN learned to refine the edges during the adversarial training process, resulting in natural-looking boundaries that often surpassed the quality of the initial segmentation.
Results and Evaluation
FACT was evaluated against palette-based and user-guided colorization baselines using both quantitative and qualitative metrics.
- Inception Score (IS): FACT achieved a score of 8.31, outperforming baselines (8.22 and 7.94), indicating higher image quality and diversity.
- Mismatched Detected Objects (MDO): This metric measures how often the recoloring process causes an object detector to fail. FACT maintained the lowest MDO (83.36), suggesting that the recolored objects remain highly recognizable and realistic to other AI systems.
Qualitatively, the model successfully handles "unnatural" requests—such as turning a potato blue—while maintaining realistic lighting, shadows, and fine textures, such as the veins in a leaf or the weave of a fabric.
Conclusion
FACT represents a significant step toward automated, language-driven image editing. By combining object detection with adversarial learning and paired discrimination, it provides a robust solution for object-specific recoloring. Future work will focus on increasing output resolution beyond $256 \times 256$ and improving the system's ability to handle complex global illumination, where colored objects reflect onto their surroundings.
Summary updated