Skip to content

wilonavas/SLR-NTF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SLR-NTF Unmixing

Spatial Low Rank Nonnegative Tensor Factorization Unmixing

Installing Tensorflow for Windows

  1. Download miniconda
  2. Run a miniconda prompt
  3. conda create -n tf
  4. conda activate tf
  5. conda install tensorflow
    • This will install tensorflow 2.3 and all required dependencies at the correct versions including a python environment, intel mkl libraries, numpy, etc.
  6. conda install matplotlib
  7. At this point you can run the tensor factorizations for the included datasets: h01-samson, h02-jasper, and h03-urban by just typing: python runall.py. It will run in parallel on a multicore CPU.

Installing GPU Support

In order to take advantage on a GPU you need to install tensorflow-gpu with tensorflow 2.0 or greater. Only Nvidia GPUs are supported and you will need the correct version of the cuda toolkit and driver. If Nvidia libraries or the CUDA runtime is not properly setup tensorflow will default to running on the CPU. If a GPU is detected, tensorflow will load the appropriate library and use it.

  1. conda create -n tf-gpu
  2. conda activate tf-gpu
  3. conda install tensorflow-gpu
  4. conda install matplotlib

Running SLR-NTF Jupyter Notebook Demo

  1. On either environment run: conda install jupyter
  2. A shortcut is installed on the Start menu that will launch the Jupyter Server and a browser screen pointing to it at: http://loacalhost:8888
  3. Browse for demo.ipynb
  4. Click on Kernel->Restart and Run All

Last modified 1/10/2022

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published