Giter Club home page Giter Club logo

argus-tgs-salt's People

Contributors

lromul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

argus-tgs-salt's Issues

numpy.core._internal.AxisError: axis 2 is out of bounds for array of dimension 1

first, I run make_inpaint_images.py, I get images148 and masks148;
then, I run train_folds.py from mos-fpn-lovase-se-resnext50-001, I get this error:
`2018-11-12 08:59:01,756 ERROR Traceback (most recent call last):
File "/home/szx/Software/anaconda3/envs/torch-py3.7/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/szx/Software/anaconda3/envs/torch-py3.7/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "/media/files/szx/argus-tgs-salt-master/src/dataset.py", line 57, in getitem
input = self.depth_transform(image, depth)
File "/media/files/szx/argus-tgs-salt-master/src/transforms.py", line 332, in call
input = np.stack([image, image, image], axis=2)
File "/home/szx/Software/anaconda3/envs/torch-py3.7/lib/python3.7/site-packages/numpy/core/shape_base.py", line 356, in stack
axis = normalize_axis_index(axis, result_ndim)
numpy.core._internal.AxisError: axis 2 is out of bounds for array of dimension 1
Traceback (most recent call last):
File "/media/files/szx/argus-tgs-salt-master/argus/engine/engine.py", line 69, in run
for batch in data_loader:
File "/home/szx/Software/anaconda3/envs/torch-py3.7/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 336, in next
return self._process_next_batch(batch)
File "/home/szx/Software/anaconda3/envs/torch-py3.7/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
numpy.core._internal.AxisError: Traceback (most recent call last):
File "/home/szx/Software/anaconda3/envs/torch-py3.7/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/szx/Software/anaconda3/envs/torch-py3.7/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "/media/files/szx/argus-tgs-salt-master/src/dataset.py", line 57, in getitem
input = self.depth_transform(image, depth)
File "/media/files/szx/argus-tgs-salt-master/src/transforms.py", line 332, in call
input = np.stack([image, image, image], axis=2)
File "/home/szx/Software/anaconda3/envs/torch-py3.7/lib/python3.7/site-packages/numpy/core/shape_base.py", line 356, in stack
axis = normalize_axis_index(axis, result_ndim)
numpy.core._internal.AxisError: axis 2 is out of bounds for array of dimension 1

Traceback (most recent call last):
File "train_folds.py", line 100, in
train_fold(save_fold_dir, train_folds, val_folds)
File "train_folds.py", line 78, in train_fold
metrics=['crop_iout'])
File "/media/files/szx/argus-tgs-salt-master/argus/model/model.py", line 95, in fit
self.validate(val_loader, metrics, val_callbacks)
File "/media/files/szx/argus-tgs-salt-master/argus/model/model.py", line 154, in validate
return val_engine.run(val_loader).metrics
File "/media/files/szx/argus-tgs-salt-master/argus/engine/engine.py", line 86, in run
raise e
File "/media/files/szx/argus-tgs-salt-master/argus/engine/engine.py", line 69, in run
for batch in data_loader:
File "/home/szx/Software/anaconda3/envs/torch-py3.7/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 336, in next
return self._process_next_batch(batch)
File "/home/szx/Software/anaconda3/envs/torch-py3.7/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
numpy.core._internal.AxisError: Traceback (most recent call last):
File "/home/szx/Software/anaconda3/envs/torch-py3.7/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/szx/Software/anaconda3/envs/torch-py3.7/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "/media/files/szx/argus-tgs-salt-master/src/dataset.py", line 57, in getitem
input = self.depth_transform(image, depth)
File "/media/files/szx/argus-tgs-salt-master/src/transforms.py", line 332, in call
input = np.stack([image, image, image], axis=2)
File "/home/szx/Software/anaconda3/envs/torch-py3.7/lib/python3.7/site-packages/numpy/core/shape_base.py", line 356, in stack
axis = normalize_axis_index(axis, result_ndim)
numpy.core._internal.AxisError: axis 2 is out of bounds for array of dimension 1
`
Can you give me some advice? Thank you very much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.