Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
hvgazula committed Jun 11, 2024
1 parent a2b857a commit 9567980
Show file tree
Hide file tree
Showing 11 changed files with 1,776 additions and 20 deletions.
6 changes: 3 additions & 3 deletions nobrainer/ext/lab2im/edit_tensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
from itertools import combinations

# project imports
from ext.lab2im import utils
from nobrainer.ext.lab2im import utils

# third-party imports
import ext.neuron.layers as nrn_layers
from ext.neuron.utils import volshape_to_meshgrid
import nobrainer.ext.neuron.layers as nrn_layers
from nobrainer.ext.neuron.utils import volshape_to_meshgrid


def blurring_sigma_for_downsampling(current_res, downsample_res, mult_coef=None, thickness=None):
Expand Down
6 changes: 3 additions & 3 deletions nobrainer/ext/lab2im/edit_volumes.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@
from scipy.ndimage import binary_dilation, binary_erosion, gaussian_filter

# project imports
from ext.lab2im import utils
from ext.lab2im.layers import GaussianBlur, ConvertLabels
from ext.lab2im.edit_tensors import blurring_sigma_for_downsampling
from nobrainer.ext.lab2im import utils
from nobrainer.ext.lab2im.layers import GaussianBlur, ConvertLabels
from nobrainer.ext.lab2im.edit_tensors import blurring_sigma_for_downsampling


# ---------------------------------------------------- edit volume -----------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions nobrainer/ext/lab2im/image_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
import numpy.random as npr

# project imports
from ext.lab2im import utils
from ext.lab2im import edit_volumes
from ext.lab2im.lab2im_model import lab2im_model
from nobrainer.ext.lab2im import utils
from nobrainer.ext.lab2im import edit_volumes
from nobrainer.ext.lab2im.lab2im_model import lab2im_model


class ImageGenerator:
Expand Down
6 changes: 3 additions & 3 deletions nobrainer/ext/lab2im/lab2im_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
from keras.models import Model

# project imports
from ext.lab2im import utils
from ext.lab2im import layers
from ext.lab2im.edit_tensors import resample_tensor, blurring_sigma_for_downsampling
from nobrainer.ext.lab2im import utils
from nobrainer.ext.lab2im import layers
from nobrainer.ext.lab2im.edit_tensors import resample_tensor, blurring_sigma_for_downsampling


def lab2im_model(labels_shape,
Expand Down
8 changes: 4 additions & 4 deletions nobrainer/ext/lab2im/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
from keras.layers import Layer

# project imports
from ext.lab2im import utils
from ext.lab2im import edit_tensors as l2i_et
from nobrainer.ext.lab2im import utils
from nobrainer.ext.lab2im import edit_tensors as l2i_et

# third-party imports
from ext.neuron import utils as nrn_utils
import ext.neuron.layers as nrn_layers
from nobrainer.ext.neuron import utils as nrn_utils
import nobrainer.ext.neuron.layers as nrn_layers


class RandomSpatialDeformation(Layer):
Expand Down
3 changes: 3 additions & 0 deletions nobrainer/ext/neuron/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import layers
from . import models
from . import utils
Loading

0 comments on commit 9567980

Please sign in to comment.