Skip to main content

RI Research Brings Together Humans, Robots and Generative AI To Create Art

Media Inquiries
Name
Aaron Aupperlee
Title
School of Computer Science

Researchers at Carnegie Mellon University's Robotics Institute(opens in new window) (RI) have developed a robotic system that interactively co-paints with people. 

Collaborative FRIDA (CoFRIDA)(opens in new window) can work with users of any artistic ability, inviting collaboration to create art in the real world.

"It's like the drawing equivalent of a writing prompt," said Jim McCann(opens in new window), an associate RI professor who runs the RI's Textiles Lab(opens in new window). "If you're stuck and you don't know what to do, it can put something on the page for you. It can break the barrier of an empty page. It's a really interesting way of enhancing human creativity."

Peter Schaldenbrand, a Ph.D. student in the Robotics Institute at Carnegie Mellon University’s Robotics Institute, poses next to CoFRIDA with a portrait of the robot he created with the collaborative painting system.

Peter Schaldenbrand, a Ph.D. student in the Robotics Institute poses next to CoFRIDA.

CoFRIDA builds on past work with FRIDA, a multilab collaboration in the School of Computer Science(opens in new window). Named after the artist Frida Kahlo, FRIDA (Framework and Robotics Initiative for Developing Arts) can use a paintbrush or a Sharpie to create a painting from a human user's text prompts or image examples. The project was founded by Jean Oh(opens in new window), an associate research professor in the RI and head of the Bot Intelligence Group (BIG), jointly with McCann and Ph.D. student Peter Schaldenbrand(opens in new window).

To support a more collaborative artistic creation experience, RI Ph.D. student Gaurav Parmar(opens in new window) and Assistant Professor Jun-Yan Zhu(opens in new window) joined the FRIDA team to develop CoFRIDA. The new system allows users to provide text inputs to describe what they want to paint. They can also participate in the creation process, taking turns painting directly on the canvas with the robot until they've realized their artistic vision.

"CoFRIDA requires a higher level of intelligence than the original FRIDA, which creates an artwork alone from start to completion," Oh said. "Co-painting is analogous to working with another person, constantly needing to guess what they want. CoFRIDA has to understand the human user's high-level goals to make that user's strokes meaningful toward the goal."

Co-painting is by its nature collaborative, and developing data that trains a robot to collaborate is difficult and time-consuming. To get around this complication, CoFRIDA uses self-supervised training data based on FRIDA's stroke simulator and planner. The researchers created a self-supervised, fine-tuning dataset by having FRIDA simulate paintings that consisted of a sequence of brush strokes, from which some strokes could be removed to produce examples of partial paintings. The team had to determine how to remove elements from drawings in the training data while leaving enough of the image for CoFRIDA to recognize it. For example, researchers took away details like the rim of a wheel or windows in a car but left the outline of the vehicle.

"We tried to simulate different states of the drawing process," Zhu said. "It's easy to get to the final sketch, but it's quite hard to imagine the intermediate stage of this process."

Using the dataset of partial and complete paintings, the researchers fine-tuned a text-to-image model, InstructPix2Pix(opens in new window), that enabled CoFRIDA to add brush strokes and work with existing content on the canvas. This approach, which relies on data created using CoFRIDA's brush simulator, means that generating a painting incorporates the robot's real constraints, such as its limited set of tools.

Outside the lab, researchers hope CoFRIDA can teach people about robotics and expand creativity, encouraging people who may doubt their artistic abilities. CoFRIDA can also help make users' visions come to life or take the artwork in a whole new direction.

"If you start from a very simple sketch, CoFRIDA takes the artwork in vastly different directions. If you ask for six different drawings, you'll get six very different options," Schaldenbrand said. "It's nice to be able to make decisions at a high level because it makes me feel like an art director. The robot makes these low-level decisions of where to put the marker, but I get to decide what the overall thing will look like. I still feel in control of the creative process, and in a world where artists fear replacement by AI, CoFRIDA as an example of a robot designed to support human creativity is incredibly relevant."

Researchers hope further work can integrate personalization into CoFRIDA, giving users even more control over the style of the finished product.

The team's paper, "CoFRIDA: Self-Supervised Fine-Tuning for Human-Robot Co-Painting(opens in new window)," won the Best Paper Award on Human Robot Interaction at the 2024 IEEE International Conference on Robotics and Automation(opens in new window) (ICRA) in Yokohama, Japan. An accompanying CoFRIDA demonstration was a finalist for the Best Demo at the ICRA EXPO. 

— Related Content —