Code Monkey home page Code Monkey logo

deblur's Introduction

deblur

deblur model for Takeme2space Project

Setting up

METHOD 1

  1. install Anaconda
  2. Run "Anaconda Prompt" terminal and run the following code
conda create -n "takeme2space" python=3.9.7
  1. activate takeme2space environment
conda activate takeme2space
  1. upgrade pip
python -m pip install --upgrade pip
  1. install required packages
pip install -r requirements.txt
  1. Download and unzip dataset

OR Alternatively

METHOD 2

  1. create environment using environment file
conda env create -f env.yml
  1. activate pytorch environment
conda activate pytorch

Usage

train model

python deblur_tf.py -t

convert model from tensorflow to tensorflow lite

python deblur_tf.py -c

inference/testing image

python deblur_tf.py -i
  • store blurry images in "test_image" folder
  • results will be saved in "result" folder

Change path to save model

python deblur_tf.py -p train1
  • this example will save the models to a folder called "train1"
  • if the flag -p is not used, the default folder is saved_model

Train --> Convert --> inference

python deblur_tf.py -t -c -i

Development Guide

Creating new branch

git branch -n dev-YOURNAME

Switching to new branch

git checkout branch dev-YOURNAME

checking status

git status
  • to check status of files, red represents files that are modified and not yet pushed

add files before commiting

git add fileName1, fileName2, fileName3

commit files

git commit -m "any message for reference purposes"

push files to git repo

git push -u origin dev-YOURNAME

Note: Ensure to push to your branch only

deblur's People

Contributors

fairuzsafwan 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.