Code Monkey home page Code Monkey logo

segmentation_pytorch's People

Contributors

gengyanlei 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  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

segmentation_pytorch's Issues

您知道TypeError: Got inappropriate size arg: (256, 256)的问题吗

我用了您的代码跑了您的data里的几张图片 发现会在for step, data in enumerate(data_loader['train'])这步报错,原因是
Traceback (most recent call last):
File "D:/cc/segmentation_pytorch-master/main.py", line 80, in
main(args)
File "D:/cc/segmentation_pytorch-master/main.py", line 66, in main
train(data_loader, model, optimizer, scheduler, tb_writer, param_dict, continue_epoch)
File "D:\cc\segmentation_pytorch-master\utils\trainval.py", line 32, in train
for step, data in enumerate(data_loader['train']):
File "D:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 363, in next
data = self._next_data()
File "D:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 403, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "D:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\cc\segmentation_pytorch-master\utils\dataset.py", line 51, in getitem
image, label = self.transform(image, label)
File "D:\cc\segmentation_pytorch-master\utils\aug_PIL.py", line 228, in call
image, label = t(image, label)
File "D:\cc\segmentation_pytorch-master\utils\aug_PIL.py", line 181, in call
image, label = getattr(self.aug_pil, aug_name)(image, label)
File "D:\cc\segmentation_pytorch-master\utils\aug_PIL.py", line 65, in random_resize_crop
image = tf.resized_crop(image, i, j, h, w, self.input_hw, interpolation=Image.BILINEAR)
File "D:\ProgramData\Anaconda3\lib\site-packages\torchvision\transforms\functional.py", line 499, in resized_crop
img = resize(img, size, interpolation)
File "D:\ProgramData\Anaconda3\lib\site-packages\torchvision\transforms\functional.py", line 324, in resize
raise TypeError('Got inappropriate size arg: {}'.format(size))
TypeError: Got inappropriate size arg: (256, 256)
这是什么原因 一直没解决

代码有问题

从yaml文件里面读出来的str不转换成float的话,学习率那就有个报错

could you try to read pretrained model

Hi, I implemented a pytorch version for deeplabv3+ (it is unorganized still). I only achieved 65% in PASCAL2012 using the augmented PASCAL in the training phase. This happened due to I didn't use the complete Xception-like backbone. I think you should try to read the backbone (or maybe the complete network in order to compare the models) from the TF model before training. This GitHub describes a code to read the model from TF for Keras.

https://github.com/bonlime/keras-deeplab-v3-plus/blob/master/extract_weights.py

关于batch_data的问题

作者您好:
阅读了你的代码,很受启发,有一个问题需要请教一下:
lab=self.label[index].argmax(axis=-1) # no one-hot
为什么需要argmax,在label中对应正样本像素为1,负样本为0,那么通过argmax后,如果label是二维图像,那么argmax导致降维,这如何同网络输出对应的

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.