Git Product home page Git Product logo

basicisos's Issues

代码问题,无法训练

2024-01-26 15:40:47,828 INFO: training from epoch: 1
Traceback (most recent call last):
File "/home/dww/OD/BasicISOS/train.py", line 172, in
main()
File "/home/dww/OD/BasicISOS/train.py", line 139, in main
for idx, data in enumerate(test_loader):
File "/home/dww/anaconda3/envs/detection/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 521, in next
data = self._next_data()
File "/home/dww/anaconda3/envs/detection/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 561, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/home/dww/anaconda3/envs/detection/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/dww/anaconda3/envs/detection/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/dww/OD/BasicISOS/basicseg/data/load_data.py", line 40, in getitem
aug_inputs = transform_fn(image=img, mask=mask)
File "/home/dww/anaconda3/envs/detection/lib/python3.8/site-packages/albumentations/core/composition.py", line 195, in call
self._check_args(**data)
File "/home/dww/anaconda3/envs/detection/lib/python3.8/site-packages/albumentations/core/composition.py", line 286, in _check_args
raise ValueError(
ValueError: Height and Width of image, mask or masks should be equal. You can disable shapes check by setting a parameter is_check_shapes=False of Compose class (do it only if you are sure about your data consistency).

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.