Git Product home page Git Product logo

fcn-pytorch's People

Contributors

pochih 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fcn-pytorch's Issues

Cityscapes_utils.py

no index, assign to void , I think there is a mistake that set idx_mat[h, w]=19.

Because trainID have 19, we can set it as 20 or others

loading pretrained weights

hello author,

i have some queries regarding your implementation.

  1. why did you use the deconv operation 5 times in fcn32, slowly upsampling gives better resultsd than a single conv2d operation?
  2. also, can you please give me some reference how to study about using pretrained weights for custom model. your usage of pretrained weights is good. I want to learn. Can you please give me some inputs. I built a simple fcn model and used pretrained models as follows:

model = fcn()
model.load_state_dict(model_zoo.load_url(model_urls['resnet50']), strict=False)

it gives better result, but i am not sure how it uses the weights. whether based on layer names or automatic concat weights based on kernel size.

thank you

How to use test trained model?

Hello, I finished your tutorial, so I had a trained model. Thank you!

However, I do not know how to use this trained model.

Can you help me?

Mismatch error

Hi, I implement the code, but for the fcn.py on line 145. It says:
"The size of tensor a (44) must match the size of tensor b (45) at non-singleton dimension 2"

I found the score shape is [1, 512, 44, 60] and the x4 shape is [1, 512, 45, 60]

Curious how would that happen?

Thanks

where is FCNs implementation from?

I found the FCNs network structure(which has 2 more skip connections) is not included in the original FCN paper, but I do found some performance improvement by using it. I wonder is there any reference for this structure or it is just created by you?

ValueError: Target size (torch.Size([2, 32, 480, 640])) must be the same as input size (torch.Size([2, 20, 480, 640]))

Hello,
i tried to train the fcn on my own computer, and i set the batch to 2. Everything went well but i got this traceback error.

Traceback (most recent call last):
File "train.py", line 171, in
train()
File "train.py", line 101, in train
loss = criterion(outputs, labels)
File "C:\Users\83750\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "C:\Users\83750\Anaconda3\lib\site-packages\torch\nn\modules\loss.py", line 595, in forward
reduction=self.reduction)
File "C:\Users\83750\Anaconda3\lib\site-packages\torch\nn\functional.py", line 2075, in binary_cross_entropy_with_logits
raise ValueError("Target size ({}) must be the same as input size ({})".format(target.size(), input.size()))
ValueError: Target size (torch.Size([2, 32, 480, 640])) must be the same as input size (torch.Size([2, 20, 480, 640]))

how could this happen? how can i solve it? i'll be appreciated if you could help me.

running speed

Hello, I'm running Cityscapes_utils.py, I found that the running speed is a little slow. Is there any way to speed up the running speed? Thank you.

deconvolution weight

Hello,thanks for your code.
But there may be some question in deconvolution weight initialize.In original paper,it initialize the deconvolution weight with bilinear interpoltion. And I can't find this in your code.

about download dataset

create a directory named "CamVid", and put data into it
the words above is a vague guidance for me , when i click in the camvid website, only to find all kinds of data provided, video ,image ...
can you be so kind to give some details

Pretrained Model

Hi
Do you have any pretrained models that you can share?
I am working on adversarial generation for semantic segmentation and a trained model will really speed things up for me.

Why the train_h and val_h is different?

Just confused in CamVid.py, it has the following code

h, w      = 720, 960
train_h   = int(h * 2 / 3)  # 480
train_w   = int(w * 2 / 3)  # 640
val_h     = int(h/32) * 32  # 704
val_w     = w               # 960

Why the training height and validation height has a different size and both of them are different from the original image size? What's the magic to make the network output image has a pixel to pixel corresponding to the 720*960 image?

mIou

Can you also mention about mIoU? how much did you acheive?

validation loss

hello author,

can you please tell me your validation loss or iou. I implemented original fcn model and also tried yours. The training scores are good. But the validation iou score is less 0.1. I tried shuffling data and everything. Why this happens?
please please give me your advice.

Thank you
Soans

parse_label assert error

Hi,
why does CamVid_utils generate the following error on some files such as 0016E5_08460_L.png

Traceback (most recent call last):
File "python/CamVid_utils.py", line 141, in
parse_label()
File "python/CamVid_utils.py", line 122, in parse_label
assert color2label[tuple(color)] == test_ans[idx]
AssertionError

how much is the loss?

I am training the net and i wangt to know the final BCEloss value you guys got around,thanks!

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.