Code Monkey home page Code Monkey logo

r-deep-learning's Issues

Troubleshooting Missing Python Packages

Myself and other participants in the workshop have issues when fitting models using the image_data_generator() function in notebook 2 & 3.

The issues I and other have gotten so far include:

  1. "Error in py_call_impl(callable, dots$args, dots$keywords) : ImportError: Could not import PIL.Image. The use of load_img requires PIL."
  2. "Error in py_call_impl(callable, dots$args, dots$keywords) : ImportError: Could not import PIL.Image. The use of load_img requires PIL."
# For R-Deep-Learning package missing issues when using datagen

# Step 1: Figure out what package is missing, for example: 
#"Error in py_call_impl(callable, dots$args, dots$keywords) : ImportError: Could not import PIL.Image. The use of `load_img` requires PIL."  
# Issue is no python library PIL

# Step 2: Install the library using conda_install() from the reticulate package
library(reticulate)

# install SciPy
conda_install("r-reticulate", "scipy")
# install PIL
conda_install("r-reticulate", "PIL") # replace PIL with whatever python package is missing


# If conda_install() fails try:
py_install("PACKAGE_NAME_HERE")

# Step 3: Restart your R-session and try the code that broke again!

This worked well for most participants.

Auto-image downloader

Add auto-image downloader section to learn how to apply deep learning to image classes downloaded from Google.

Workshop Title

Workshop title should be "R-Introduction-to-Deep-Learning:-Parts-1-2"

Dataset revision suggestions to diversify human images (currently 90+% white)

Datasets look good except in notebook 2, where the people in the human image training and validation datasets look maybe ~90%+ white (a classic problem with a lot of this research: https://www.aaihs.org/race-after-technology/).

I didn't feel quite comfortable enough with the subject matter to revise the code to incorporate new datasets, but this could be a less white option:
https://paperswithcode.com/dataset/fairface

Since those are images of faces instead of full people, though, we could then compare it (possibly? not sure if the model would pick up white space differences more than faces) with this dog face dataset:
https://github.com/GuillaumeMougeot/DogFaceNet

Might also be great to incorporate into the slide deck some of the recent literature on how machine learning algorithm output can reproduce or magnify racist trends in the feeder datasets.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.