Nvidia to Open StyleGan Source Code

This machine learning project allows to create of people faces by imitating photographs
11 February 2019   776

NVIDIA has open source code if developments related to the StyleGAN project, which allows generating images of new faces of people by imitating photographs. The system automatically takes into account aspects of the placement of individuals and makes the result indistinguishable from real photos (most of the respondents could not distinguish the original photos from the generated ones). For the synthesis of individuals, a machine learning system based on a generative-competitive neural network (GAN) is used. The code is written in Python using the TensorFlow framework and published under the Creative Commons BY-NC 4.0 license (for non-commercial use only).

Both ready-made trained models and collections of images for self-learning of a neural network are available for download. The basic model was trained on the basis of the Flickr-Faces-HQ (FFHQ) collection, which includes 70,000 high-quality (1024x1024) PNG images of people's faces. At the same time, the system is not tied to persons - as an example, the variants trained on collections of photographs of cars, cats and beds are shown. It requires one or more NVIDIA graphics cards (Tesla V100 GPU recommended), at least 11 GB of RAM, NVIDIA 391.35+ drivers, CUDA 9.0+ tools and the cuDNN 7.3.1 library.

The system allows you to synthesize the image of a new face based on interpolation of features of several faces, combining features characteristic of them, as well as adapting the final image to the required age, gender, hair length, smile character, nose shape, skin color, glasses, face rotation in the photo. The generator considers the image as a collection of styles, automatically separates the characteristic details (freckles, hair, glasses) from common high-level attributes (posture, gender, age changes) and allows you to combine them in an arbitrary form with the definition of the dominant properties through weights.

OpenAI to Create Fake News Creating Algorithm

On the basis of one or two phrases that set the theme, it is able to “write” a fairly plausible story
18 February 2019   146

The GPT-2 algorithm, created by OpenAI for working with language and texts, turned out to be a master in creating fake news. On the basis of one or two phrases that set the theme, it is able to “compose” a fairly plausible story. For example:

  • an article about scientists who have found a herd of unicorns in the Andes;
  • news about pop star Miley Cyrus caught on shoplifting;
  • artistic text about Legolas and Gimli attacking the orcs;
  • an essay on how waste recycling harms the economy, nature, and human health.

The developers did not publish the source code of the model entirely, fearing abuse by unscrupulous users. For fellow researchers, they posted on GitHub a simplified version of the algorithm and gave a link to the preprint of the scientific article. The overall results are published on the OpenAI blog.

GPT-2 is a general purpose algorithm. The developers taught it to answer questions, “understand” the logic of a text, a sentence, finish building phrases. In this case, the algorithm worked worse than the model of a specific purpose. Researchers suggest that the indicators can be improved by expanding the training datasets and choosing computers more efficiently.