Skip to content

Commit

Permalink
Made it so it modules xoxo.
Browse files Browse the repository at this point in the history
  • Loading branch information
bionictoucan committed Jun 25, 2020
1 parent 86552fb commit f44edc7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Inn2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from FrEIA.framework import InputNode, OutputNode, Node, ReversibleGraphNet
from FrEIA.modules import rev_multiplicative_layer, permute_layer

from loss import mse, mse_tv, mmd_multiscale_on
from .loss import mse, mse_tv, mmd_multiscale_on

from scipy.interpolate import interp1d

Expand Down
3 changes: 3 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .Inn2 import *
from .loss import *
from .utils import *
6 changes: 4 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Inn2 import RadynversionNet
from .Inn2 import RadynversionNet
import os
import numpy as np
from scipy.interpolate import interp1d
Expand Down Expand Up @@ -381,4 +381,6 @@ def interp_fine(spec_line):
x_new = np.linspace(x[0],x[-1],num=1001)
y_new = interp1d(x,y)(x_new)

return np.array([x_new,y_new])
return np.array([x_new,y_new])

z = np.array([-0.065, 0.016, 0.097, 0.178, 0.259, 0.340, 0.421, 0.502, 0.583, 0.664, 0.745, 0.826, 0.907, 0.988, 1.069, 1.150, 1.231, 1.312, 1.393, 1.474, 1.555, 1.636, 1.718, 1.799, 1.880, 1.961, 2.042, 2.123, 2.204, 2.285, 2.366, 2.447, 2.528, 2.609, 2.690, 2.771, 2.852, 2.933, 3.014, 3.095, 3.176, 3.257, 3.338, 3.419, 3.500, 4.360, 5.431, 6.766, 8.429, 10.5], dtype=np.float32)
Binary file added z.h5
Binary file not shown.

0 comments on commit f44edc7

Please sign in to comment.