Code Monkey home page Code Monkey logo

uimg2dsm's Introduction

U-IMG2DSM: Unpaired Simulation of Digital Surface Models with Generative Adversarial Networks

The Code for "U-IMG2DSM: Unpaired Simulation of Digital Surface Models with Generative Adversarial Networks". [https://ieeexplore.ieee.org/document/9108295]

M. E. Paoletti, J. M. Haut, P. Ghamisi, N. Yokoya, J. Plaza and A. Plaza.
U-IMG2DSM: Unpaired Simulation of Digital Surface Models with Generative Adversarial Networks.
IEEE Geoscience and Remote Sensing Letters.
DOI: 10.1109/LGRS.2020.2997295.
Accepted for publication, June 2020.

UIMG2DSM

Run code

cd checkpoints/
python join_checkpoint.py
cd ../results/classifications_results/generated_maps/
python join_dset.py


# To generated DSM from IMG
python test_batch.py --config ./configs/unit_img2dsm_folder.yaml --a2b 1 --input ./dataset/testA/ --output_folder ./results/outputs --checkpoint ./outputs/unit_img2dsm_folder/checkpoints/gen_00700000.pt
# To train new network
python train.py --config ./configs/unit_img2dsm_folder.yaml


# To get metrics
cd results
open Octave in ./results
load pkg image
launch calculateRMSEZNCC
OR
cd results/classifications_results
python classify.py <Algorithm>
python classify.py RF

Reference code: https://github.com/mingyuliutw/UNIT

uimg2dsm's People

Contributors

mhaut avatar

Stargazers

siwon kim avatar Elias Manos avatar  avatar  avatar  avatar Chun-Hao Huang avatar  avatar ChengruZhu avatar  avatar ZikangXU avatar  avatar Abbas avatar Venkateshwaran B avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

rsip4sh siwon7

uimg2dsm's Issues

test_batch.py: error: unrecognized arguments: --trainer UNIT

Dear,

Your help would be appreciated. I wanna run your published code, but I'm facing such this error. How can I solve the error? I'm trying to run your first suggestion to execute your code on terminal. I'm running this below command as you said in README.md:

python test_batch.py --trainer UNIT --config ./configs/unit_img2dsm_folder.yaml --a2b 1 --input ./dataset/testA/ --output_folder ./results/outputs --checkpoint ./outputs/unit_img2dsm_folder/checkpoints/gen_00700000.pt

but unfortunately, I'm facing the mentioned error:
error: unrecognized arguments: --trainer UNIT

Prediction of the trained model

Dear,

How can I predict an RGB input image through this trained model "UIMG2DSM"? is there any python script for prediction purpose? Is it possible to use the trained model to predict a DSM from the RGB input image? how much pixel size would be suitable for the RGB input image? Your response would be appreciated.

Thanks,
Abbas Salehi

What do the output values represent?

Thank you for the well-organized and reproducible code. I was able to run your model for inferencing on my own high-resolution satellite image data and got results. I am curious however if the elevation values are actually meaningful? What are the units of measure? Sorry if this information was already given somewhere and I missed it, but I would like to determine if the output is usable.

The generated results are not good!

Dear,

I re-trained the network by adding my own data ( 217 optical and DSMs images) to your data, and then I got this below DSMs you can see the optical data and resulted DSMs. I do not know why the results (DSMs) are not accurate enough?! what is the reason that network generates such this bad DSMs? your suggestions would be appreciated.

HaitiPre_A_07 HaitiPre_A_08
optical images
HaitiPre_A_07 HaitiPre_A_08
DSM images

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.