-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from DiamondLightSource/hidecupy
* fully working version
- Loading branch information
Showing
14 changed files
with
723 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ dependencies: | |
- astra-toolbox::astra-toolbox | ||
- httomo::tomobar | ||
- rapidsai::cucim | ||
- anaconda::scikit-image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
from httomolibgpu.misc.corr import * | ||
from httomolibgpu.misc.morph import * | ||
from httomolibgpu.prep.alignment import * | ||
from httomolibgpu.prep.normalize import * | ||
from httomolibgpu.prep.phase import * | ||
from httomolibgpu.prep.stripe import * | ||
from httomolibgpu.recon.algorithm import * | ||
from httomolibgpu.recon.rotation import * | ||
from httomolibgpu.misc.corr import median_filter, remove_outlier | ||
from httomolibgpu.misc.morph import sino_360_to_180, data_resampler | ||
from httomolibgpu.misc.rescale import rescale_to_int | ||
from httomolibgpu.prep.alignment import distortion_correction_proj_discorpy | ||
from httomolibgpu.prep.normalize import normalize | ||
from httomolibgpu.prep.phase import paganin_filter_savu, paganin_filter_tomopy | ||
from httomolibgpu.prep.stripe import ( | ||
remove_stripe_based_sorting, | ||
remove_stripe_ti, | ||
remove_all_stripe, | ||
) | ||
|
||
from httomolibgpu.recon.algorithm import FBP, SIRT, CGLS | ||
from httomolibgpu.recon.rotation import find_center_vo, find_center_360, find_center_pc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
cupy_run = False | ||
try: | ||
import cupy as cp | ||
import nvtx | ||
|
||
try: | ||
cp.cuda.Device(0).compute_capability | ||
cupy_run = True | ||
except cp.cuda.runtime.CUDARuntimeError: | ||
print("CuPy library is a major dependency for HTTomolibgpu, please install") | ||
import numpy as cp | ||
except ImportError as e: | ||
print( | ||
f"Failed to import module in {__file__} with error: {e}; defaulting to CPU-only mode" | ||
) | ||
from unittest.mock import Mock | ||
import numpy as cp | ||
|
||
nvtx = Mock() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.