GithubHelp home page GithubHelp logo

gavin231mao / digital-futures-2020 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from city-intelligence-lab/digital-futures-2020

1.0 0.0 0.0 26.18 MB

The official repo for the Artificial Intelligence for Resilient Urban Planning workshop by the City Intelligence Lab.

Home Page: https://www.digitalfutures.world/workshops-europe-mideast-africa-blog/chronis

License: MIT License

Jupyter Notebook 92.13% Python 7.87%

digital-futures-2020's Introduction

DigitalFUTURES 2020

The official repo for the Artificial Intelligence for Resilient Urban Planning workshop by the City Intelligence Lab. The workshop was conducted from the 28th of June to the 3rd of July and was streamed live to our YouTube channel. This repo contains all of the workshop slides and files.

Software Requirements

Python

Download and install Anaconda (https://www.anaconda.com/distribution/, python 3).

If you already have Python installed on your system, please double check that it is ≥3.6 and that you can set up either virtualenvs or pipenvs.

/mlgh-pix2pix

  1. Open anaconda prompt and create a new environment named "pix2pix" using the following command (more info here: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html):

    conda create --name pix2pix python=3.7
  2. Activate that conda environment:

    activate pix2pix
  3. Install the required packages (copy/paste commands):

    conda install -c pytorch pytorch torchvision cudatoolkit=10.0
    conda install -c conda-forge altair vega_datasets notebook vega h5py hdf5 imageio matplotlib seaborn pandas numpy networkx graphviz category_encoders feather-format scikit-learn scikit-image dominate visdom moviepy jsonpatch
    conda install scipy==1.1.0
    conda install Pillow
    pip install opencv-contrib-python

/mlgh-dqn

  1. Open anaconda prompt and create a new environment named "dqn" and activate it:

    conda create --name dqn python=3.6
    activate dqn
  2. Install the required package:

    conda install tensorflow

Grasshopper

Download the following plugins from Food4Rhino. If you already have them installed, make sure they are the latest version!

Mapillary

/colab-notebooks/streetview-images.ipynb

  1. If you haven't already, sign up for a Mapillary account here.

  2. Create a client ID to access the API by visiting the developers dashboard and clicking "Register Application" on the top right of the screen.

  3. Fill in the "Register an Application" form making sure to switch the "private:read" toggle in the "Allow this application to" section. Note that the callback URL will act as the IP where you'll be making requests from.

  4. Retrieve your token (used for making requests) by going to:

    https://www.mapillary.com/connect?scope=private:read&client_id=<client_id>&redirect_uri=<callback_url>&state=return&response_type=token

    replacing <client_id> and <callback_url> with these values found in the dashboard.

  5. If successful, you should be redirected to your callback_url, but with a different URL in the address bar. At the end of your callback_url you should see ?token_type=bearer&access_token= followed by a giant string. This is your access token. Copy everything between access_token= and &expires_in=never&state=return, and save it somewhere.

digital-futures-2020's People

Contributors

nariddhkhean avatar

Stargazers

 avatar

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.