GithubHelp home page GithubHelp logo

ifuon / personal-project-for-ai Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9.08 MB

P34

Shell 1.00% Python 96.77% Dockerfile 0.21% C++ 0.44% Cuda 0.45% Jupyter Notebook 0.99% Makefile 0.06% CSS 0.01% Batchfile 0.07%

personal-project-for-ai's Introduction

Project 34

This repository contains 2 models:
Our 3rd and 4th research models mmsegmentation and DDRNet, storing the programs for each model and using Docker containers to create a consistent environment for them to be run in. Documentation for the individual models are stored in their respective folders.

Docker Installation

Individual information provided in the model sections. Please install Docker through normal linux pathways.

Install dependencies:

sudo apt-get update
sudo apt-get install  apt-transport-https  ca-certificates  curl  gnupg  lsb-release

Add secret key:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Add a stable database:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Install Docker Engine, containerd, and Docker Compose.:

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

Create docker group:

sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker 

Protential issuses:

1.Error massages: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
run this command to give the AUTHENTICATION.

systemctl start docker
  1. โ€œSub-process /usr/bin/dpkg returned an error code (1)โ€ error when Install Docker Engine, containerd, and Docker Compose.
    run this command to Reconfiguring the database.
sudo dpkg --configure -a

General Docker

  • Dockerfile: this file will set up a docker image
  • Create a image to run a Dockerfile in directory: docker/
docker build -t {IMAGE_NAME} docker/

For instance:

docker build -t mmsegmentation docker/
  • List images to check if the image has been created:
docker images

Run the image that created by Dockerfile:

  • Host data: the data in the host that export the data into docker image
  • Docker: data: import the data from the host as a data directory
docker run --gpus all --shm-size=8g -it -v {Host: data}:{Docker: data} {IMAGE_NAME}

For instance:

docker run --gpus all --shm-size=8g -it -v /home/usyd-05a/data:/mmsegmentation/data mmsegmentation
! There are few basic packages in Docker, not all of them have been installed. This means you may need to install some packages in the container.

Process

  • Models are first trained, then evaluated. All models will use mean IOU (mIOU) as a measure of their accuracy, defined by the overlap between predicted out and target segmentation mask.

  • The dataset is downloaded from official website

+ NOTE: Any errors with memory, for example pertaining to CUDA, is foremostly likely due to insufficient computing resources on the server. Please try again when there is little usage to see if the issue is resolved.
  • We use Tensorboards to visulize scalars (follow instructions here to install tensorboards

Code Style

As the models are predeveloped and obtained online, code style is not applicable. However any Python files created by the group will use PEP 8.

Benchmarking

README presented in the Benchmarking folder

personal-project-for-ai's People

Contributors

ifuon avatar

Watchers

 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.