Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new SphereIcosahedral class in icosahedron laplacian calculation #9

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@

This is a PyTorch implementation of DeepSphere.

- [Resources](#resources)
- [Data](#data)
- [Quick Start](#quick-start)
- [Mathematical Background](#mathematical-background)
- [U-Net](#unet)
- [Temporality](#communication)
- [Metric](#metric)
- [Tools](#tools)
- [License & co](#license--co)
- [DeepSphere: a graph-based spherical CNN](#deepsphere-a-graph-based-spherical-cnn)
- [Resources](#resources)
- [Data](#data)
- [Quick Start](#quick-start)
- [Mathematical Background](#mathematical-background)
- [Unet](#unet)
- [Temporality](#temporality)
- [Metric](#metric)
- [Tools](#tools)
- [License & co](#license--co)

## Resources

Expand Down Expand Up @@ -57,7 +58,7 @@ Our recommendation for a linux based machine is:
```
conda create --name deepsphere python=3.7

source activate deepsphere
conda activate deepsphere

pip install git+https://github.com/epfl-lts2/pygsp.git@39a0665f637191152605911cf209fc16a36e5ae9#egg=PyGSP

Expand Down
8 changes: 4 additions & 4 deletions deepsphere/utils/laplacian_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import numpy as np
import torch
from pygsp.graphs.nngraphs.spherehealpix import SphereHealpix
from pygsp.graphs.nngraphs.sphereicosahedron import SphereIcosahedron
from pygsp.graphs.sphereequiangular import SphereEquiangular
from pygsp.graphs import SphereHealpix
from pygsp.graphs import SphereIcosahedral
from pygsp.graphs import SphereEquiangular
from scipy import sparse
from scipy.sparse import coo_matrix

Expand Down Expand Up @@ -79,7 +79,7 @@ def get_icosahedron_laplacians(nodes, depth, laplacian_type):
for _ in range(depth):
nodes = icosahedron_nodes_calculator(order)
order_initial = icosahedron_order_calculator(nodes)
G = SphereIcosahedron(level=int(order_initial))
G = SphereIcosahedral(subdivisions=2**int(order_initial))
G.compute_laplacian(laplacian_type)
laplacian = prepare_laplacian(G.L)
laps.append(laplacian)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ pyyaml==5.2
jupyter==1.0.0
pytorch-ignite==0.2.1
pillow==6.2.2
trimesh==3.9.35