Slashdot Mirror


New AI Model Fills in Blank Spots in Photos (nikkei.com)

A new technology uses artificial intelligence to generate synthetic images that can pass as real. From a report, shared by a reader (the link may be paywalled): The technology was developed by a team led by Hiroshi Ishikawa, a professor at Japan's Waseda University. It uses convolutional neural networks, a type of deep learning, to predict missing parts of images. The technology could be used in photo-editing apps. It can also be used to generate 3-D images from real 2-D images. The team at first prepared some 8 million images of real landscapes, human faces and other subjects. Using special software, the team generated numerous versions for each image, randomly adding artificial blanks of various shapes, sizes and positions. With all the data, the model took three months to learn how to predict the blanks so that it could fill them in and make the resultant images look identical to the originals. The model's learning algorithm first predicts and fills in blanks. It then evaluates how consistent the added part is with its surroundings.

52 comments

  1. It might be ok and awful at the same time. by Mal-2 · · Score: 2

    I bet it will be pretty good in some contexts, and most likely an improvement overall compared to content-aware fills. However, when it completely falls on its face I bet it will be even funnier than the way content-aware fill blows up. Lower rate of occurrence, but much more hilarity when it happens.

    --
    How is the Riemann zeta function like Trump rallies? Both have an endless number of trivial zeros.
    1. Re:It might be ok and awful at the same time. by PolygamousRanchKid+ · · Score: 0, Troll

      However, when it completely falls on its face I bet it will be even funnier than the way content-aware fill blows up.

      I tried the prototype, and it filled all the holes with pictures and outrageously fake quoted statements from Donald and Hillary. The system must have been hacked by Russians already.

      The pictures will probably be updated really soon with pictures of the new presidential candidates, Oprah Winfrey and Zuckerberg.

      --
      Schroedinger's Brexit: The UK is both in and out of the EU at the same time!
    2. Re:It might be ok and awful at the same time. by ShanghaiBill · · Score: 1

      when it completely falls on its face I bet it will be even funnier than the way content-aware fill blows up.

      Just put the failures into the training set, re-run backprop, and deploy the upgraded NN.

  2. Alternate Headline by OzPeter · · Score: 3, Insightful

    The alternate headline is:

    Computer program analyzes data and based on that analysis invents new data that seems plausible to most people

    --
    I am Slashdot. Are you Slashdot as well?
    1. Re: Alternate Headline by javaman235 · · Score: 1

      I think it's really deeper tho. If you see just the tip of a football an NFL running back is holding, your brain has a plausible idea that he's holding a football, (not a puppy with a butt that looks like a football) and that will be confirmed when he spikes it in the end zone. Building most probable world models from partial information is a key thing human intelligence does.

      --
      -The art of programming is the pursuit of absolute simplicity.
    2. Re: Alternate Headline by OzPeter · · Score: 2

      I think it's really deeper tho. If you see just the tip of a football an NFL running back is holding, your brain has a plausible idea that he's holding a football, (not a puppy with a butt that looks like a football) and that will be confirmed when he spikes it in the end zone. Building most probable world models from partial information is a key thing human intelligence does.

      Nice straw man bro!

      There is a difference between inferring that a complete football is attached to the tip and creating (from scratch) an image of the hidden parts of the football. Because until you actually see it, the hidden parts of the football may well be painted to look like a puppy.

      As in the case of TFA where they created from scratch a shelf full of books without knowing if that shelf actually contained books or a bust of Plato. And in fact from all we know of the "before" image presented in the TFA there might have been a bust of Plato on the shelf - or even no shelf at all.

      --
      I am Slashdot. Are you Slashdot as well?
    3. Re: Alternate Headline by javaman235 · · Score: 2

      The feeling of surprise is when your brain encounters something different from the world model *it already built* from partial information and held subconsciously. It's a part of intelligence.

      I mean yeah, if someone peddles this is purely accurate info it's BS, but you can't deny that statements about what's probably in a concealed area, based on lots of experience/training are useful if taken for what they are.

      --
      -The art of programming is the pursuit of absolute simplicity.
  3. Can it capture the whole boob? by Anonymous Coward · · Score: 2, Insightful

    Many celebrities like to show off underboob, side boob, cleavage and the occasional nip slip.

    Does this software allow us to piece together a whole CELEBRITY BREAST?

    1. Re:Can it capture the whole boob? by Anonymous Coward · · Score: 1

      that's the spirit of old slashdot.

      Good to see it back.

    2. Re: Can it capture the whole boob? by Anonymous Coward · · Score: 0

      They are ugly as shit. Better off keep them away from sight.

    3. Re: Can it capture the whole boob? by Anonymous Coward · · Score: 0

      dunno, perhaps you should booble it?

    4. Re:Can it capture the whole boob? by sysrammer · · Score: 1

      that's the spirit of old slashdot.

      Good to see it back.

      Yeah...

      I can't wait 'til the internet teaches the AI about nazis and racism and stuff.

      --
      His ignorance covered the whole earth like a blanket, and there was hardly a hole in it anywhere. - Mark Twain
  4. No possible way to be used for fraud. Nope. by mark-t · · Score: 1

    Honestly, that's the first application I thought of if or when this tech becomes commonly available.

    Where it gets more scary is when it used to manipulate pictures that may be used in the future to ascertain the veracity of particular circumstances or events, possibly even for legal reasons.

  5. Interlacing? Special effects scaling? by Anonymous Coward · · Score: 0

    I wonder how well these techniques could be applied to interlaced material or whether it could be used to scale up special effects (e.g. Voyager). Since interlacing destroys information in some domain, being able to generate information that fits seems a natural use case. Scaling up special effects could work upon the same principle.

    1. Re:Interlacing? Special effects scaling? by Hal_Porter · · Score: 1
      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    2. Re:Interlacing? Special effects scaling? by ezdiy · · Score: 1

      Yes, simple GPU NN filters are routinely used for upscaling and deinterlacing (fe. nnedi3 in madvr) these are coarse, but work in real time.

      Filling missing parts of image is vastly more difficult problem though, and is very unlikely to work in real time - so it is useless for deinterlacing or upscaling.

  6. Useless by Anonymous Coward · · Score: 1

    Photos and videos are becoming so easily manipulated that they will soon be useless as proof of anything.

    1. Re:Useless by OzPeter · · Score: 0

      Photos and videos are becoming so easily manipulated that they will soon be useless as proof of anything.

      This is nothing new. Photos have been manipulated from the time of their invention. The very act of pointing a camera in a particular direction manipulates the image and hence proof of something.

      --
      I am Slashdot. Are you Slashdot as well?
    2. Re:Useless by omnichad · · Score: 1

      Security cameras need verifiable cryptographic signatures on both the timestamp and the frame contents right now. Yes, those can still be faked, but not as easily as image manipulation.

    3. Re:Useless by Maxo-Texas · · Score: 1

      But if they can be faked, then you can't trust them.

      You'll need multiple independent video sources (like different people with different camera's).

      The example photo sucks- it's obvious where it was filled. I bet it would be very obvious for video footage but I'm sure the tech will improve further over time.

      --
      She was like chocolate when she drank... semi-sweet at first and then increasingly bitter.
    4. Re:Useless by ShanghaiBill · · Score: 1

      Security cameras need verifiable cryptographic signatures on both the timestamp and the frame contents right now.

      Says who? My company has security cameras, and I can assure you that they do not encrypt anything. Are we breaking the law?

      Amazon sells dozens of security cameras. None of the descriptions mention any encryption other than for the Wifi connection.

    5. Re:Useless by HiThere · · Score: 1

      He didn't say encrypted, but rather cryptographically signed. That's essentially a modified hash of the picture, or well-defined parts of the picture. It generally wouldn't be visible if you were looking at the picture.

      OTOH, I also doubt that the general run of cameras used for security do this signing. I suspect that he had a specific variety (not brand) of camera that he was thinking of when he said "security camera" which is a lot different from the normal web-cam that is mounted on a porch.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    6. Re:Useless by Anonymous Coward · · Score: 0

      Security cameras need verifiable cryptographic signatures on both the timestamp and the frame contents right now.

      Ha, maybe in sci-fi movies they do.

    7. Re:Useless by Cederic · · Score: 1

      I interpreted him as suggesting that non-repudiation of video footage is now fucking hard to achieve and needs building into the initial capture.

    8. Re:Useless by omnichad · · Score: 1

      This. And there are few products even on the market yet, if any, that are doing this. I don't think anyone realized how soon this would be needed and nobody is willing to pay for it until it is.

    9. Re:Useless by sysrammer · · Score: 1

      In ancient times it used to be hard to do video spoofing, for any lengthy footage. I remember Forrest Gump being the first time that I really got the message that, just like photos, a video of an event will no longer be sure proof.

      What's the saying? Don't believe anything you hear, and only half of what you see?

      --
      His ignorance covered the whole earth like a blanket, and there was hardly a hole in it anywhere. - Mark Twain
  7. Put the heads back in? by Anonymous Coward · · Score: 0

    One of your psycho ex's or relatives cuts all the heads out of your family photos, this program puts them back in. Or maybe we use deepfake for that!

  8. Not bad, but not great by lurker412 · · Score: 4, Interesting

    The example shown in the linked article doesn't hold up under scrutiny. Look at the blue-green books on the center-right--the convergence of the shelves is wrong and the corner is not rendered correctly. Assuming this was a one-step edit, it's probably better than Photoshop's current content aware fill, but it still requires additional work to escape detection.

    1. Re:Not bad, but not great by epine · · Score: 1

      The example shown in the linked article doesn't hold up under scrutiny.

      The story submission did not say the approach was good enough to evade focussed scrutiny.

      Confucius Says: What was never held up is not able to not hold up. Then he pats himself contentedly on the belly.

  9. Might look real by nospam007 · · Score: 1

    ...but not necessarily _be_ real.

    Depending on what's missing of a photo of Long John Silver, it might create one with 2 parrots and 2 eye flaps.

  10. Anti-shake by bill_mcgonigle · · Score: 1

    Hopefully this can be applied to anti-shake filters where existing solutions do a really poor job of inventing blurry missing data.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    1. Re:Anti-shake by Solandri · · Score: 2

      Hopefully this can be applied to anti-shake filters where existing solutions do a really poor job of inventing blurry missing data.

      The data is actually still there, not missing. It's just smeared across several pixels instead of each point in space corresponding to a single pixel. You can use a deconvolution filter to un-smear it. Same goes for out-of-focus photos.

      In the case of camera shake, if the camera would record its movements while the photo was being taken and included that info in the photo, you could apply a perfect deconvolution filter that would almost completely eliminate the blur (it becomes less accurate near the edges because you've permanently lost info when parts of the photo moved out of the frame).

      Photoshop CC already includes this filter. I suspect the only reason it isn't yet built into phones to automatically de-blur photos with camera shake is because it's fairly processor intensive, making it easier just to take another photo. (Samsung's strategy is to take multiple photos held in a temporary memory buffer, then the phone determines which is sharpest, and lets you choose if you want to keep it, then deletes the others.)

    2. Re:Anti-shake by wonkey_monkey · · Score: 1

      In the case of camera shake, if the camera would record its movements while the photo was being taken and included that info in the photo, you could apply a perfect deconvolution filter that would almost completely eliminate the blur

      It's easier and probably more robust to compensate by moving the sensor.

      --
      systemd is Roko's Basilisk.
    3. Re:Anti-shake by Hal_Porter · · Score: 1

      In the case of camera shake, if the camera would record its movements while the photo was being taken and included that info in the photo, you could apply a perfect deconvolution filter that would almost completely eliminate the blur (it becomes less accurate near the edges because you've permanently lost info when parts of the photo moved out of the frame).

      That's a really excellent idea. Best thing is that if we started doing that now with an imperfect filter later on as filters improved the images would get sharper so long as you had access to the original image with the 'acceleration as a function of time' data in it.

      It's almost as good as Bladerunner's 'Zoom. Enhance' image processing.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    4. Re:Anti-shake by Hal_Porter · · Score: 1

      Why not do both? You could use acceleration data to do OIS but at the same time store the acceleration data in the image so that in the future when image processing improved you could get an even clearer image.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
  11. Please, someone make a plug-in... by Anonymous Coward · · Score: 0

    ...or add that to VLC to remove the bugs and popup ads that network TV adds to all this content. Ihateit, ihateit, ihateit, ihateit, ihateit, I HATE IT!

  12. Meh by Anonymous Coward · · Score: 0

    Deep Image Prior could do inpainting without a training set, and by training in parameter-space only.

    1. Re:Meh by wonkey_monkey · · Score: 1

      "Meh. Something superficially similar was done before therefore this is not noteworthy."?

      Great logic.

      --
      systemd is Roko's Basilisk.
  13. Dyslexia in adults... by Gravis+Zero · · Score: 1

    I saw these in my RSS feed...

    US's Greatest Vulnerability is Ignoring the Cyber Threats From Our Adversaries, Foreign Policy Expert Says
    New AI Model Fills in Blank Spots in Photos

    and misread the second as...

    New Al Gore Fills in Blank Spots in Photos

    I was very disappointed.

    --
    Anons need not reply. Questions end with a question mark.
  14. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  15. Now I can unblur... by CaptainDork · · Score: 0

    ... the Trump statues.

    --
    It little behooves the best of us to comment on the rest of us.
    1. Re:Now I can unblur... by CaptainDork · · Score: 1

      Too soon?

      --
      It little behooves the best of us to comment on the rest of us.
  16. Show the original by Anonymous Coward · · Score: 0

    It would have been useful if TFA had also shown the original photo without the elisions just to see how close the restoration came.

    1. Re:Show the original by HiThere · · Score: 1

      I think you're missing the point. The point is not to do an accurate reconstruction of missing information, but to do a plausible one. If the data is missing, this approach cannot regenerate it.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    2. Re:Show the original by crunchygranola · · Score: 1

      While it would have been somewhat interesting, the image fill in does not look normal at all. It is blurred, poorly colored, and distorted - like a bad photoshop. If one had been shown a stack of photos that had not been altered, and this one stuck in, and were asked to find the altered photo I don't think you would have had any problem picking this out.

      --
      Second class citizen of the New Gilded Age
  17. Algorithms and People by crunchygranola · · Score: 1

    Algorithms and people process images differently. This AI/ML technique creates plausible fill that will fool most people, most of time.

    Any Slashdot regular has seen the posting about image manipulation techniques that can fool a neural net image recognition system to think an AK-47 is bunny rabbit, or vice versa. But the manipulated images look pretty much the same to people. Why do the altered images get misidentified? We can;t really say, given that we can;t really say why the neural net identifies an unmodified image correctly in the first place, it just learned to. People on the other had can point out the parts of an AK-47 or a bunny rabbit.

    In this case I strongly suspect that no matter how much the fake fill in looks like real data, a suitable algorithm can detect the manipulated part of the image from the original image. There are many kinds of statistical tests that could be performed, and while a clever faker might be able to anticipate and "fix" some of them, it would be another matter entirely to be able to fix all possible ones.

    This is similar to the effective impossibility of a forger to write something supposedly written by someone else so that the forgery cannot be detected. You can copy style and language up to a point, but you can't mimic every feature that can be analyzed statistically, nor can you conceal all of you own habitual traits.

    It will be a good while yet before images can be altered in such a way that the fact of alteration cannot be detected. And as other note here, embedded cryptographic hashes can make images effectively secure even from that.

    The story is different of course if what you are dealing with is the lossy compression of an image.

    --
    Second class citizen of the New Gilded Age
  18. Content Aware by darkain · · Score: 1

    Content Aware Fill has been around for over a decade now. Adobe acquired a small team that worked on it in the early 2000s, and I believe Photoshop CS4 was the first version to use the tech as Content Aware Resize. CS5 included Content Aware Fill (which is what this article is describing it seems). These were released in 2008 and 2010 respectively.

    1. Re:Content Aware by wonkey_monkey · · Score: 1

      Umm, okay? This is just a bit of a step-up from Photoshop's Content-Aware Fill.

      I presume, to you, that the fax machine was nothing but a waffle iron with a phone attached.

      --
      systemd is Roko's Basilisk.
    2. Re:Content Aware by Goragoth · · Score: 1

      No, this is nothing like the content-aware algorithms used in Photoshop (the function is the same but the underlying technology is radically different). A content-aware algorithm simply analyses what is left of the picture and uses that information to guess what should go into the missing parts. The algorithm described here is a deep learning system trained on thousands of similar images. It can then use this data to help it guess how to fill in the missing pieces. This means it is capable of data synthesis that is not present within the image being processed. That's huge.

      All that said the example picture shown in the article had some rather obvious flaws. If that's a best-case outcome then I think they still have some work to do frankly (might just need training on more data).

  19. One image and no further links? Is that it? by wonkey_monkey · · Score: 1

    The extremely shorted linked article has a single, low-res, unzoomable image, and no link to any further information. There must be a better source than this.

    --
    systemd is Roko's Basilisk.
  20. Bubble your photos is soooo 2018 by Anonymous Coward · · Score: 0

    There must be someone on Reddit who has in interest in this.

  21. We need this and it's relative by pecosdave · · Score: 1

    I've wanted to come up with an AI software for old Academy Ratio movies like the Wizard of Oz.

    If a camera pans, use leading and trailing info to create edges.

    If it's a still shot use something like this to generate probable edges.

    Make Academy ratio movies 16:9 and do the same to some old TV shows. If I could pull this off I could potentially be the most hated man since the onset of colorization of old movies....

    --
    The preceding post was not a Slashvertisement.