Giter Site home page Giter Site logo

tuskaw / pixel2mesh-pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wapity/pixel2mesh-pytorch

0.0 0.0 0.0 1.22 GB

Improved Pytorch version of Tensorflow Pixel2Mesh that converts 2D RGB Images in 3D Meshes, with ResNet and Stereo Input

Python 6.77% Jupyter Notebook 93.23%

pixel2mesh-pytorch's Introduction

Pixel2Mesh-Pytorch

Improved Pytorch version of Tensorflow Pixel2Mesh that converts 2D RGB Images in 3D Meshes, with ResNet for perceptual feature pooling network and Stereo Input of RGB Images under different angles of camera.

Requirements

Install required packages in requirements.txt

Dataset

Download the dataset using download.py and unzip the files. A complete list of training data can be found in data/training_data/trainer_res.txt for the ResNet model and data/training_data/trainer_stereo.txt for Stereo-ResNet. The available files in the dataset are automatically detected by the loader. The training data is placed in data/ShapeNet/ and contains large samples of the full dataset. The testing data is placed in data/Test which is used for computing F-scores.

Training

  • VGG or ResNet :
python3 train_res.py
  • Stereo-ResNet :
python3 train_str.py

After every epoch of training, checkpoints and outputs are saved into corresponding folder in temp/RES or temp/STR, depending on which model is being trained. A folder is created with name the date it has been created so we can easily compare current results wiith previous epochs. Outputs are based on the testing lists, test_list.txt for ResNet and test_list_str.txt for Stereo-ResNet. Before running the demos or continuing training, the most recent checkpoint must be placed into data/checkpoints. The path in args can be changed in the respective script to use the appropriate checkpoint.

Demo

  • VGG :
python3 demo_vgg.py
  • ResNet :
python3 demo_res.py
  • Stereo-ResNet :
python3 demo_str.py

Change locations of checkpoints or testing list

Compute the F-scores on the test set

python3 compute_f1.py

pixel2mesh-pytorch's People

Contributors

llalma avatar dependabot[bot] 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.