New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
noisy data set #12
Comments
Hi, Could you please describe in more detail what kind of noise you want to add? |
Hi
I wanted to add gaussian, spekle, salt and pepper and jpeg compression
noise to labels. I added salt and pepper and gaussian and the network
failed to run. It must be because of what you said but I don't know what it
is and how I am suppose to test the network. Does the test work if I train
it with noisy data set?
Thanks alot
Best
…On Thu, Jul 29, 2021, 01:17 SushkoVadim ***@***.***> wrote:
Hi,
Could you please describe in more detail what kind of noise you want to
add?
Please note that the input label maps are represented as one-hot encodings
of shape [NxWxH], where N is the number of classes used in the dataset. So
adding gaussian noise, for example, is not a meaningful operation, since
the resulting tensor is no longer a one-hot encoding tensor.
On the other hand, adding "noise" by slight random reshaping of semantic
boundaries should work.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASMJBK3HVVJ7E4TSOL7PUETT2BUHTANCNFSM5BCVNYLA>
.
|
Hi again, What you are describing is usually applied to images, not label maps. So if you wish to develop a model on noisy datasets, you should add noise to images. Best, |
Thank you for your reply.
I wanted to add noise to input images so that I could evaluate the output
of the gan network. Since the input of the network is those label maps, I
added noise to them and it was wrong. but I dont know how I am suppose to
add noise to the input.
If I add noise to the images it is like I added noise to the labels of
network somehow. Am I correct?
By the way, how can I use the network vice versa?I mean is it possible to
give the network pictures and it turns it to those lables?
Best
…On Fri, Jul 30, 2021, 17:57 SushkoVadim ***@***.***> wrote:
Hi again,
What you are describing is usually applied to images, not label maps.
Label maps that are used in semantic images synthesis are not RGB images,
instead, they are discreate maps saying "which class ID is correct for
which pixel". Have a look at top-left image here:
https://github.com/boschresearch/OASIS/blob/master/overview.png
So if you wish to develop a model on noisy datasets, you should add noise
to images.
Feel free to describe in more detail your use case (e.g. why you need to
add noise). Then I would be probably able to give a more detailed advice.
Best,
Vadim
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASMJBKYTYYFHFRVQYU3C55TT2KSDDANCNFSM5BCVNYLA>
.
|
Hi, it is actually still not clear to me what is your purpose of distorting label maps with noise. Line 36 in ce5d97d
For the second question: yes, you can use our segmentation-based discriminator to predict semantic label maps of images. |
HI, |
Hi, It is very difficult to say how long it takes, since such things depend a lot on one's background knowledge :) The input to our network are a semantic label map with shape [BxCxWxH] and gaussinan noise [Bx64xHxW]. The network actually does not need images for testing, it asks only labels to be feeded: Line 24 in ce5d97d
However, our dataloader implementation assumes you always have images in the dataset too, in order to be able to compute the FID metric to validation set during training. You can simply deactivate validation images loading in the dataloader class to avoid this. |
I tested the network with a custom dataset but it doesn't work. (the CK points are from ade20k) |
what are the B and C in [BxCxWxH]? and when you say have one-hot encoding structure along axis 1, you mean along with C? thanks a lot |
hello dear author @edgarschnfld
I downloaded the pre-trained model and added noise to the labels that are input for the network but the test failed and the model didn't work for the noisy dataset at all.
what should I do for testing the model on noise?
The text was updated successfully, but these errors were encountered: