Skip to content

Can't load larger Image file #87

@SaibotMagd

Description

@SaibotMagd

I try to load my example dataset (280GB) into mag using the roi parameter. But it won't load. I also tried to load it using the GUI, it say "loading image" but does nothing at all (I checked the CPU and w/r load for my system, the process is on hold). I've got 512 GB Ram in the system so this shouldn't be an issue (but mag using memmap anyway).
I will now cut it down and try again to find out the "maximal possible" filesize.

I already transformed it into the npy format:

magmap.io.cli - INFO - Set verbose to {<Verbosity.LEVEL: 1>: 1, <Verbosity.LOG_PATH: 2>: '/scratch/mouse_200928/stitched_image5d.npy'}
root - DEBUG - Trying logger path: /scratch/mouse_200928/stitched_image5d.npy
magmap.io.cli - INFO - Launched MagellanMapper from /home/toolboxes/magellanmapper/run.py
root - INFO - Set ROI offsets to [(30, 35, 30)], current offset (30, 35, 30) (x,y,z)
root - INFO - Set ROI sizes to [(25, 25, 12)], current size (25, 25, 12) (x,y,z)
root - INFO - Set maximum number of CPUs for multiprocessing tasks to 100
magmap.io.cli - DEBUG - Updating ROI profile for channel 0
magmap.settings.profiles - DEBUG - settings for 'default,lightsheet':
root - INFO - {'adapt_hist_lim': 0.1,
 'channel_colors': (<Cmaps.CMAP_GRBK_NAME: 'Green_black'>,
                    <Cmaps.CMAP_RDBK_NAME: 'Red_black'>),
 'clip_max': 0.5,
 'clip_min': 0,
 'clip_vmax': 98.5,
 'clip_vmin': 5,
 'colorbar': False,
 'denoise_size': 25,
 'detection_threshold': 0.1,
 'erosion_threshold': 0.3,
 'exclude_border': (1, 0, 0),
 'isotropic': (0.96, 1, 1),
 'isotropic_vis': (0.5, 1, 1),
 'load_rot90': 0,
 'max_sigma_factor': 2.8,
 'max_thresh_factor': 0.5,
 'min_sigma_factor': 2.6,
 'mp_max_tasks': None,
 'mp_start': 'fork',
 'norm': None,
 'num_sigma': 10,
 'overlap': 0.55,
 'points_3d_thresh': 0.7,
 'prune_tol_factor': (1, 0.9, 0.9),
 'resize_blobs': None,
 'scale_bar_color': 'w',
 'segment_size': 150,
 'settings_name': 'default,lightsheet',
 'sub_stack_max_pixels': (1200, 800, 800),
 'thresholding': None,
 'thresholding_size': -1,
 'tot_var_denoise': None,
 'unsharp_strength': 0.3,
 'verify_tol_factor': (3, 1.2, 1.2),
 'vis_3d': 'points'}
magmap.settings.profiles - DEBUG - None
magmap.io.cli - INFO - Set default (channel 0) ROI profile: default,lightsheet
magmap.io.cli - INFO - Set atlas profile to default
root - INFO - setting up Matplotlib style default
root - INFO - applying theme DEFAULT
magmap.io.cli - DEBUG - All command-line arguments: ['/home/toolboxes/magellanmapper/run.py', '--cpus', '100', '-v', '1', '/scratch/mouse_200928/stitched_image5d.npy', '--roi_profile', 'lightsheet', '--offset', '30,35,30', '--size', '25,25,12']
root - INFO - Loaded database from /home/.local/share/MagellanMapper/magmap.db
root - INFO - set multiprocessing start method to fork
root - INFO - No image filename set for processing files, skipping
root - ERROR - /home/anaconda3/envs/mag/lib/python3.6/site-packages/traits/observation/_has_traits_helpers.py:83: RuntimeWarning: Trait '_wrappers' (trait type: List) on class ActionItem is defined with comparison_mode=<ComparisonMode.equality: 2>. Mutations and extended traits cannot be observed if a new container compared equally to the old one is set. Redefine the trait with List(..., comparison_mode=<ComparisonMode.identity: 1>) to avoid this.
  RuntimeWarning,
apptools.preferences.preferences - DEBUG - loading preferences from </home/.enthought/mayavi_e3/preferences.ini>
apptools.preferences.preferences - DEBUG - loading preferences from <<_io.BufferedReader name='/home/anaconda3/envs/mag/lib/python3.6/site-packages/mayavi/preferences/preferences.ini'>>
apptools.preferences.preferences - DEBUG - loading preferences from <<_io.BufferedReader name='/home/anaconda3/envs/mag/lib/python3.6/site-packages/tvtk/plugins/scene/preferences.ini'>>
root - ERROR - /home/anaconda3/envs/mag/lib/python3.6/site-packages/traits/observation/_has_traits_helpers.py:83: RuntimeWarning: Trait 'adapters' (trait type: List) on class SegmentsArrayAdapter is defined with comparison_mode=<ComparisonMode.equality: 2>. Mutations and extended traits cannot be observed if a new container compared equally to the old one is set. Redefine the trait with List(..., comparison_mode=<ComparisonMode.identity: 1>) to avoid this.
  RuntimeWarning,
root - ERROR - /home/anaconda3/envs/mag/lib/python3.6/site-packages/traits/observation/_has_traits_helpers.py:83: RuntimeWarning: Trait 'adapters' (trait type: List) on class ProfilesArrayAdapter is defined with comparison_mode=<ComparisonMode.equality: 2>. Mutations and extended traits cannot be observed if a new container compared equally to the old one is set. Redefine the trait with List(..., comparison_mode=<ComparisonMode.identity: 1>) to avoid this.
  RuntimeWarning,
root - ERROR - /home/anaconda3/envs/mag/lib/python3.6/site-packages/traits/observation/_has_traits_helpers.py:83: RuntimeWarning: Trait 'adapters' (trait type: List) on class ImportFilesArrayAdapter is defined with comparison_mode=<ComparisonMode.equality: 2>. Mutations and extended traits cannot be observed if a new container compared equally to the old one is set. Redefine the trait with List(..., comparison_mode=<ComparisonMode.identity: 1>) to avoid this.
  RuntimeWarning,
root - INFO - set border to zeros
root - INFO - set border to [0. 0. 0.]
magmap.io.libmag - ERROR - No package metadata was found for magellanmapper
Traceback (most recent call last):
  File "/home/toolboxes/magellanmapper/magmap/io/libmag.py", line 1221, in get_version
    ver = metadata.version(config.APP_NAME.lower())
  File "/home/anaconda3/envs/mag/lib/python3.6/site-packages/importlib_metadata/__init__.py", line 861, in version
    return distribution(distribution_name).version
  File "/home/anaconda3/envs/mag/lib/python3.6/site-packages/importlib_metadata/__init__.py", line 834, in distribution
    return Distribution.from_name(distribution_name)
  File "/home/anaconda3/envs/mag/lib/python3.6/site-packages/importlib_metadata/__init__.py", line 449, in from_name
    raise PackageNotFoundError(name)
importlib_metadata.PackageNotFoundError: No package metadata was found for magellanmapper
root - INFO - setting up Matplotlib style seaborn
root - INFO - applying theme DEFAULT
root - INFO - got None selected
root - INFO - no roi found
root - INFO - Changed channel to [0]
mayavi.core.registry - DEBUG - Engine [<mayavi.core.engine.Engine object at 0x7eff41be30f8>] named Engine1 registered
root - ERROR - /home/anaconda3/envs/mag/lib/python3.6/site-packages/traits/observation/_has_traits_helpers.py:83: RuntimeWarning: Trait 'children' (trait type: List) on class KeyBindings is defined with comparison_mode=<ComparisonMode.equality: 2>. Mutations and extended traits cannot be observed if a new container compared equally to the old one is set. Redefine the trait with List(..., comparison_mode=<ComparisonMode.identity: 1>) to avoid this.
  RuntimeWarning,
root - ERROR - /home/anaconda3/envs/mag/lib/python3.6/site-packages/traits/observation/_has_traits_helpers.py:83: RuntimeWarning: Trait '_wrappers' (trait type: List) on class ActionItem is defined with comparison_mode=<ComparisonMode.equality: 2>. Mutations and extended traits cannot be observed if a new container compared equally to the old one is set. Redefine the trait with List(..., comparison_mode=<ComparisonMode.identity: 1>) to avoid this.
  RuntimeWarning,
root - INFO - camera: {'view': (0.0, 0.0, 1.0, array([0., 0., 0.])), 'roll': 0.0}
root - INFO - Scene activated with view: (0.0, 0.0, 1.0, array([0., 0., 0.])) roll: -175.0
root - INFO - Main image has not been loaded, cannot show ROI Editor
magmap.gui.vis_handler - DEBUG - TraitsUI preferences for magmap.gui.visualizer.Visualization: {'': (433, 297, 1200, 681), '$': <traitsui.key_bindings.KeyBindings object at 0x7eff28aa25c8>}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependenciesIssues/requests related to a dependency packagedocumentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions