Deepmindbreak THIS PROJECT IS STILL in DEVELOPMENT. DO NOT

Total Page:16

File Type:pdf, Size:1020Kb

Deepmindbreak THIS PROJECT IS STILL in DEVELOPMENT. DO NOT deeppomf / DeepMindBreak Dismiss Join GitHub today GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together. Sign up Decensoring Hentai with Deep Neural Networks # hentai # deep-learning # anime # neural-network # gan # tensorflow 92 commits 1 branch 0 releases 2 contributors master New pull request Find file Clone or download Latest commit 1f4f847 Mar 8, 2018 deeppomf decensor color added to config models update Feb 11, 2018 readme_images guide update Feb 11, 2018 training_data remove print statemetns Feb 27, 2018 LICENSE decensor color added to config Mar 8, 2018 README.md decensor color added to config Mar 8, 2018 config.py decensor color added to config Mar 8, 2018 decensor.py decensor color added to config Mar 8, 2018 layer.py update Feb 11, 2018 load.py update Feb 11, 2018 model.py update Feb 11, 2018 model_mosaic.py Add files via upload Feb 19, 2018 poisson_blend.py readme, decensor Feb 11, 2018 test.py added testing output path to args Feb 27, 2018 train.py stop samples from being generated with small datasets Mar 1, 2018 train_mosaic.py Add files via upload Feb 19, 2018 README.md DeepMindBreak Decensoring Hentai with Deep Neural Networks This project applies an implementation of Globally and Locally Consistent Image Completion to the problem of hentai decensorship. Using a deep fully convolutional neural network, DeepMindBreak can replace censored artwork in hentai with plausible reconstructions. The user needs to only specify the censored regions. THIS PROJECT IS STILL IN DEVELOPMENT. DO NOT BE DISAPPOINTED IF THE RESULTS AREN'T AS GOOD AS YOU EXPECT. Limitations This project is LIMITED in capability. It is a proof of concept of ongoing research. The decensorship is intended to ONLY work on color hentai images that have minor bar censorship of the penis or vagina. It does NOT work with: Black and white images Monochrome images Hentai containing screentones (e.g. printed hentai) Real life porn Mosaic censorship Censorship of nipples Censorship of anus Animated gifs/videos In particular, if a vagina or penis is completely censored out, inpainting will be ineffective. Embarrassingly, because the neural network was trained to decensor horizontally and vertically oriented rectangles, it has trouble with angled rectangles. This will be fixed soon. Dependencies Python 2/3 TensorFlow 1.5 Pillow tqdm scipy pyamg (only needed if poisson blending is enabled in decensor.py) matplotlib (only for running test.py) No GPU required! Tested on Ubuntu 16.04 and Windows. Poisson blending is disabled by default since it has little effect on output quality. Pillow, tqdm, scipy, pyamg, and matplotlib can all be installed using pip. Model The pretrained model can be downloaded from https://drive.google.com/open? id=1mWHYSj0LDSbJQQxjR4hUMykQkVve2U3Q. Unzip the contents into the /models/ folder. Usage I. Decensoring hentai The decensorship process is fairly involved. A user interface will eventually be released to streamline the process. Using image editing software like Photoshop or GIMP, paint the areas you want to decensor the color with RGB values of (0,255,0). You can change the mask color in config. For each censored region, crop 128 x 128 size images containing the censored regions from your images and save them as new ".png" images. Move the cropped images to the "decensor_input_images" directory. Decensor the images by running $ python decensor.py Decensored images will be saved to the "decensor_output_images" directory. Paste the decensored images back into the original image. II. Train the pretrained model on custom dataset You must have a GPU for training since training on a CPU will take weeks. Your custom dataset should be 128 x 128 images of uncensored vaginas and penises cropped from hentai. The more images, the better: I used 70,000 images for training. Censoring these images yourself is unnecessary. Put your custom dataset for training in the "training_data/images" directory and convert images to npy format. $ cd training_data $ python to_npy.py To train, run $ python train.py If desired, you can train the pretrained model on your custom dataset by running $ python train.py --continue_training=True Training can be done separately for mosaics with train_mosaic.py, but decensor.py is not yet compatible with mosaic decensorship models. To do Add Python 3 compatibility Add random rotations in cropping rectangles Retrain for arbitrary shape censors Add a user interface Incorporate GAN loss into training Update the model to the new version Contributions are welcome! Special thanks to StartleStars for contributing code for mosaic decensorship. License Example image by dannychoo under CC BY-NC-SA 2.0 License. The example image is modified from the original, which can be found here. Model is licensed under CC BY-NC-SA 4.0 License. Code is licensed under CC BY-NC-SA 4.0 License and is modified from tadax's project Globally and Locally Consistent Image Completion with TensorFlow and shinseung428's project [https://github.com/shinseung428/GlobalLocalImageCompletion_TF], which are implementations of the paper Globally and Locally Consistent Image Completion. It also has a modified version of parosky's project poissonblending. Copyright (c) 2018 tadax, Seung Shin, parosky Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE..
Recommended publications
  • Film, Photojournalism, and the Public Sphere in Brazil and Argentina, 1955-1980
    ABSTRACT Title of Document: MODERNIZATION AND VISUAL ECONOMY: FILM, PHOTOJOURNALISM, AND THE PUBLIC SPHERE IN BRAZIL AND ARGENTINA, 1955-1980 Paula Halperin, Doctor of Philosophy, 2010 Directed By: Professor Barbara Weinstein Department of History University of Maryland, College Park My dissertation explores the relationship among visual culture, nationalism, and modernization in Argentina and Brazil in a period of extreme political instability, marked by an alternation of weak civilian governments and dictatorships. I argue that motion pictures and photojournalism were constitutive elements of a modern public sphere that did not conform to the classic formulation advanced by Jürgen Habermas. Rather than treating the public sphere as progressively degraded by the mass media and cultural industries, I trace how, in postwar Argentina and Brazil, the increased production and circulation of mass media images contributed to active public debate and civic participation. With the progressive internationalization of entertainment markets that began in the 1950s in the modern cities of São Paulo, Rio de Janeiro, and Buenos Aires there was a dramatic growth in the number of film spectators and production, movie theaters and critics, popular magazines and academic journals that focused on film. Through close analysis of images distributed widely in international media circuits I reconstruct and analyze Brazilian and Argentine postwar visual economies from a transnational perspective to understand the constitution of the public sphere and how modernization, Latin American identity, nationhood, and socio-cultural change and conflict were represented and debated in those media. Cinema and the visual after World War II became a worldwide locus of production and circulation of discourses about history, national identity, and social mores, and a space of contention and discussion of modernization.
    [Show full text]
  • Farias, Priscila L. Et Wilke, Regina C. BORDERLINE GRAPHICS AN
    BORDERLINE GRAPHICS: AN ANALYSIS OF CINEMA MARGINAL POSTERS REGINA C. WILKE PRISCILA L. FARIAS SENAC-SP / BRAZIL USP & SENAC-SP / BRAZIL [email protected] [email protected] ABSTRACT INTRODUCTION This paper presents a study on Brazilian Cinema The study of Cinema Marginal posters aims to Marginal film posters. It identifies the political and gathering information for a better understanding cultural context of the posters production, and of Brazilian design history. The posters selected considers their graphic, communicative and for this study are those designed for the films meaningful aspects. listed by Puppo (2008), in his catalogue for an In 1968, the Institutional Act #5 (AI-5) comes into exhibition of Cinema Marginal movies. force in Brazil, and, for the next ten years, the Initially, we describe the political and cultural country is haunted by the most violent period of context influencing Cinema Marginal , and military dictatorship. Cinema Marginal has its summarize the concepts that determine its heyday between 1968 and 1973, a period marked language. We then introduce the Brazilian graphic by the military regime (1964-1985). Such films arts environment of the era, and present the portray the spirit of that era in dissimilar ways identified authors of the posters. Finally, based on that alternate between eroticism, horror, an organization of the posters by affinity groups, romance and suspense, often with political we discuss the posters’ relation to the audiovisual messages in subtext. Its main shared language of the films, proposing a reflection on characteristics are the subversion of cinematic the visual, communicative and meaningful aspects language and experimental attitude.
    [Show full text]
  • Black and White Conversion
    From www.adobe.com/designcenter Product used Adobe Photoshop CS2 Black and White Conversion “One sees differently with color photography than black and white...in short, visualization must be modified by the specific nature of the equipment and materials being used.” –Ansel Adams The original color image. (left) The adjusted black and white conversion. (center) The final color toned black and white image. (right) Seeing in black and white Black and white conversions are radical transformations of images. They’re about reestablishing the tonal founda- tions of an image. That’s quite different than dodging and burning, or lightening and darkening locally, which is a matter of accentuating existing tonal relationships. The Channels palette shows the red, green, and blue components of a color image. Each channel offers a useful black and white interpretation of the color image that you can use to adjust the color. The key concept is for you to use the color channels as black and white layers. 2 Conversion methods There are almost a dozen ways to convert an image from color to black and white; and you can probably find at least one expert to support each way as the best conversion method. The bottom line is that most conversion methods work reasonably well. The method that works best for you depends on your particular workflow and the tools that you’re comfortable with. The following method isn’t necessarily the best and it isn’t the fastest—it generates a larger file—but it offers you the most control and flexibility. Creating layers from channels offers you more control than any other conversion method.
    [Show full text]
  • 4. Reconfigurations of Screen Borders: the New Or Not-So-New Aspect Ratios
    4. Reconfigurations of Screen Borders: The New or Not-So-New Aspect Ratios Miriam Ross Abstract The ubiquity of mobile phone cameras has resulted in many videos foregoing the traditional horizontal (landscape) frame in favour of a vertical (portrait) mode. While vertical framing is often derided as amateur practice, these new framing techniques are part of a wider contemporary screen culture in which filmmakers and artists are using unconventional aspect ratios and/or expanding and contracting aspect ratios over the course of their audio-visual work. This chapter briefly outlines historical contexts in which the border of the screen has been more flexible and open to changing configurations than is widely acknowledged. It then uses recent case studies to consider how our understanding of on-screen and off-screen space is determined by these framing configurations. Keywords: Aspect ratios, embodiment, framing, cinema In recent years, the increasing ubiquity of mobile phone videos has drawn attention to a radical challenge to traditional screen culture. It is not just that a wide variety of amateur users now have a filmmaking device at their fingertips—rather, that many of them are foregoing the more than a century- long norm for shooting with a horizontal frame. Appearing on social media sites such as YouTube, Facebook, and Twitter as well as in commercial news broadcasts, their footage stands tall in a vertical format. When replayed on horizontal screens, the startling strangeness of wide black bands on either side of the content focuses attention on the border of the frame as well as seem- ingly absent screen space.
    [Show full text]
  • Critical Study on History of International Cinema
    Critical Study on History of International Cinema *Dr. B. P. Mahesh Chandra Guru Professor, Department of Studies in Communication and Journalism, University of Mysore, Manasagangotri Karnataka India ** Dr.M.S.Sapna ***M.Prabhudevand **** Mr.M.Dileep Kumar India ABSTRACT The history of film began in the 1820s when the British Royal Society of Surgeons made pioneering efforts. In 1878 Edward Muybridge, an American photographer, did make a series of photographs of a running horse by using a series of cameras with glass plate film and fast exposure. By 1893, Thomas A. Edison‟s assistant, W.K.L.Dickson, developed a camera that made short 35mm films.In 1894, the Limiere brothers developed a device that not only took motion pictures but projected them as well in France. The first use of animation in movies was in 1899, with the production of the short film. The use of different camera speeds also appeared around 1900 in the films of Robert W. Paul and Hepworth.The technique of single frame animation was further developed in 1907 by Edwin S. Porter in the Teddy Bears. D.W. Griffith had the highest standing among American directors in the industry because of creative ventures. The years of the First World War were a complex transitional period for the film industry. By the 1920s, the United States had emerged as a prominent film making country. By the middle of the 19th century a variety of peephole toys and coin machines such as Zoetrope and Mutoscope appeared in arcade parlors throughout United States and Europe. By 1930, the film industry considerably improved its technical resources for reproducing sound.
    [Show full text]
  • Aston's Entertainment & Memorabilia Auction- May 2
    LearnAboutMoviePosters.com April 19, 2019 ASTON’S ENTERTAINMENT & MEMORABILIA AUCTION- MAY 2, 2019 Astons Auctioneers Dudley will present their Entertainment & Memorabilia Auction on May 2, 2019. It will feature cinema posters, vinyl records, comic books, film props, autographs, sports memorabilia and much more! Auction highlights include a great selection of James Bond cinema posters plus many more Bond posters and props. See Page 3. LAST CHANCE TO CONSIGN EMOVIEPOSTER.COM’S LAMP UNVEILS JUNE MAJOR AUCTION NEW POSTER ARTISTS IDENTIFICATION LOG, UPDATES CHANGES TO LAMP’S MEMBER SECTION! See Page 8 UPCOMING EVENTS/DEADLINES Deadline for Consignmed Items to be shipped for April 26, 2019 eMovieposter.com June Major Auction Aston’s Auctioneers Entertainment & Memorabilia May 2, 2019 Auction May 9, 2019 Aste Bolaffi Poster Auction Bonhams/TCM Presents ... Wonders of the Galaxy May 14, 2019 Auction Science Fiction and Fantasy in Films May 25, 2019 Hollywood Poster Auction 27 May 30, 2019 Ewbank’s Entertainment & Memorabilia Auction May 31, 2019 Ewbank’s Vintage Poster Auction June 2, 2019 Part I eMovieposter.com’s June Major Auction June 12, 2019 Bonham’s Entertainment Auction July 27-28, 2019 Heritage Movie Posters Signature Auction Wishing everyone a Happy Easter LAMP’s LAMP POST Film Accessory Newsletter features industry news as well as product and services provided by Sponsors and Dealers of Learn About Movie Posters and the Movie Poster Data Base. To learn more about becoming a LAMP sponsor, click HERE! Add your name to our Newsletter Mailing List HERE! Visit the LAMP POST Archive to see early editions from 2001-PRESENT.
    [Show full text]
  • The Experimental Film Remake and the Digital Archive Effect: a Movie by Jen Proctor and Man with a Movie Camera: the Global Remake
    The Experimental Film Remake and the Digital Archive Effect: A Movie by Jen Proctor and Man with a Movie Camera: The Global Remake Jaimie Baron When we think of fi lm remakes, what come to mind are likely Hollywood narratives reproduced with new stars, more special eff ects, and bigger budgets, whose producers hope to cash in on a tried and true formula “updated” to suit the tastes of contemporary audiences. Recently, however, a number of experimental fi lmmakers have chosen quite diff erent sources to “update.” Over the past few years fi lmmakers Jennifer Proctor and Perry Bard have returned to classics of experimental fi lm to “remake” these provocative works in and for the digital era. Jennifer Proctor’s A Movie by Jen Proctor (US, 2010) uses images from online fi le-sharing sites to mimic Bruce Conner’s classic 1958 experimental fi lm A Movie, while Perry Bard’s Man with a Movie Camera: Th e Global Remake (ongoing since 2008) uses online interactive soft ware to allow users worldwide to upload images and participate in a collective, daily remake of Dziga Vertov’s seminal 1929 fi lm Man with a Movie Camera. Given that experimental fi lm oft en encourages the viewer to explore the very experience of viewing a fi lm, these digitally based remakes of experimental fi lms inevitably draw attention not only to how the world that is imaged within them has changed but also to how our experiences of that world through its reproduction as image have been altered by digital media.
    [Show full text]
  • Colorization of Black-And-White Cartoons
    Colorization of Black-and-White Cartoons Daniel S´ykora a,∗, Jan Buri´anek b, Jiˇr´ı Z´araˇ a aDepartment of Computer Science and Engineering, FEE, CTU in Prague, Technick´a2, Praha 6, 166 27, Czech Republic bDigital Media Production, Meˇcislavova 164/7, Praha 4, 140 00, Czech Republic Abstract We introduce a novel colorization framework for old black-and-white cartoons which has been originally produced by a cel or paper based technology. In this case the dynamic part of the scene is represented by a set of outlined homogeneous regions that superimpose static background. To reduce a large amount of manual inter- vention we combine unsupervised image segmentation, background reconstruction and structural prediction. Our system in addition allows the user to specify the brightness of applied colors unlike the most of previous approaches which operate only with hue and saturation. We also present a simple but effective color modu- lation, composition and dust spot removal techniques able produce color images in broadcast quality without additional user intervention. Key words: colorization, image registration, image segmentation, edge detection, image analogies, image restoration, color-by-example, patch-based sampling, probabilistic relaxation 1 Introduction In the history of black-and-white cartoon-making, it is possible to find really valuable and artistically advanced works which still stand up in front of the world-wide, modern cartoon production [1]. They provide an invaluable source of inspiration for each new generation of children. However, now these works are usually stored in depositories with non-optimal humidity conditions where they undergo a progressive degradation of visual quality.
    [Show full text]
  • Analysis of the Paperman
    The Idea of an Essay Volume 5 Two-tongued, Bach’s Flute, and Homeschool Article 3 September 2018 Analysis of the Paperman Anna Lyons Cedarville University Follow this and additional works at: https://digitalcommons.cedarville.edu/idea_of_an_essay Part of the English Language and Literature Commons Recommended Citation Lyons, Anna (2018) "Analysis of the Paperman," The Idea of an Essay: Vol. 5 , Article 3. Available at: https://digitalcommons.cedarville.edu/idea_of_an_essay/vol5/iss1/3 This Essay is brought to you for free and open access by the Department of English, Literature, and Modern Languages at DigitalCommons@Cedarville. It has been accepted for inclusion in The Idea of an Essay by an authorized administrator of DigitalCommons@Cedarville. For more information, please contact [email protected]. Lyons: Analysis of the Paperman Anna Lyons—Best Analysis Anna Lyons is a freshman nursing major from Claxton, Georgia. Outside of nursing, Anna plays the French horn in the Cedarville orchestra and is hoping to add a women’s ministry minor to her time here at CU. Analysis of the Paperman John Kahrs, known for his animation work in Tangled, Ratatouille, Incredibles, and Monsters Inc., purposefully directed the Disney short, Paperman, in a “stylized photorealism” to tell the story of a potential romance in which strangers have an abrupt initial encounter (Radish 2,7). Kahrs has hopped between Pixar and Disney animation productions (Radish 2). The techniques from each are shown through his stylistic choices to illustrate the story in an unfamiliar combination of varying techniques. The Paperman received an Annie Award for best short film and an Oscar in 2013 (Oatley 2,7).
    [Show full text]
  • Hollywood Diversity Report 2019
    Acknowledgements This report was authored by Dr. Darnell Hunt, Dr. Ana-Christina Ramón, and Michael Tran. Michael Tran, Debanjan Roychoudhury, Christina Chica, and Alexandria Brown contributed to data collection for analyses. Financial support in 2018 was provided by the following: The Division of Social Sciences at UCLA, The Institute for Research on Labor and Employment (IRLE) at UCLA, The Will & Jada Smith Family Foundation, The Fox Group, Time Warner Inc., and individual donors. Photo Credits: Jake Hills/Unsplash (front cover); warrengoldswain/iStock (front cover); Andrey_Popov/Shutterstock (p. 20); 3DMart/Shutterstock (p.28); Joe Seer/ Shutterstock (p. 44); Myvector/Shutterstock (top, p. 50); Blablo101/Shutterstock (bottom, p. 50); monkeybusinessimages/Thinkstock (p. 58); bannosuke/ Shutterstock (p. 62); Markus Mainka/Shutterstock (p. 63); Stock-Asso/Shutterstock (p. 64). Table of Contents Study Highlights ............................................................................................................2 Introduction ...................................................................................................................6 Hollywood Landscape ....................................................................................................8 Genre ............................................................................................................................12 Leads ............................................................................................................................ 14 Overall
    [Show full text]
  • 9.10 the Silent Revolution – Cinema in the 1920S
    Silent film goes back to basics for surprise hit In a world of 3D blockbusters and surround sound, a silent, black and white movie has taken cinemas by storm. How has something so simple and old-fashioned done so well? For director Michel Hazanavicius, The Artist was a big risk. In a world of 3D technology, special effects and computer animation, the prospects for a silent, black-and- white melodrama did not look bright. This soundless film, however, is making a big noise. With a host of awards, rave reviews, and impressive audience figures, it is becoming more popular than its eccentric creator ever hoped. Set in 1927, The Artist centres on George Valentin, a successful silent movie star, and unknown actress Peppy Miller. The pair embark on a romance – but as the arrival of sound in cinema makes Peppy a celebrity, the new talkies mark the end of George’s career. In the early 20th Century, this was not an unusual story. Back in the 1920s, sound couldn’t be used in film, and silent movies were big business. Actors like Charlie Chaplin and Gloria Swanson were huge stars, and people flocked to watch cinema’s stylised melodramas, always accompanied by live music. People thought sound was just a fad when The Jazz Singerbecame the first successful talkie in 1927. But two years later, the last commercially successful silent movie had already been produced. The stars of the era – who often looked much better than they sounded – faded into obscurity. In the years since, some 1920s gems like Fritz Lang’s surrealist sci-fi epic Metropolis have achieved a cult following.
    [Show full text]
  • America in Black and White: One Nation, Indivisible by Stephan Thernstrom and Abigail Thernstrom (Simon and Schuster, New York, ??Pp., $??.??)
    page 1 America in Black and White: One Nation, Indivisible by Stephan Thernstrom and Abigail Thernstrom (Simon and Schuster, New York, ??pp., $??.??) Reviewed by Glenn C. Loury, University Professor, Professor of Economics, and Director of the Institute on Race and Social Division at Boston University [for The Atlantic Monthly, November 1997] I That the United States of America, "a new nation, conceived in liberty and dedicated to the proposition that all men are created equal," began as a slave society is a profound historic irony. The “original sin” of slavery has left an indelible imprint on our nation’s soul. Hundreds of thousands were slaughtered in a tragic, calamitous civil war-- the price this new democracy had to pay to rid itself of that most undemocratic institution. But, of course, the end of slavery did not usher in an era of democratic equality for blacks. Another century was to pass before a national commitment to pursue that goal could be achieved. Meaningful civic inclusion even now eludes many of our fellow citizens recognizably of African descent. What does that say about the character of our civic culture as we move to a new century? For its proper telling, this peculiarly American story in black and white requires an appreciation of irony, and a sense of the tragic. White attitudes toward blacks today are not what they were at the end of slavery, or in the 1930s. Neither is black marginalization nearly as severe. Segregation is dead. And, the open violence once used to enforce it has, for all practical purposes, been eradicated.
    [Show full text]