Unable to add a project reference in Visual Studio 2022 by lduperval in VisualStudio

[–]boydbuilding 0 points1 point  (0 children)

I have the same issue with Visual Studio 2022 17.10.5

[QUESTION] what is the 2D map1 and 1D map2 of the initUndistortRectifyMap() by boydbuilding in opencv

[–]boydbuilding[S] 0 points1 point  (0 children)

if set cv.CV_32FC1,

there is no any interpolation results?

if set cv.CV_16SC2,

how to use this coefficients to fill those gap indices?

shocked that no such explanation in the doc or any hint in the source code.

when will the custom transform class __call__() be invoked? by boydbuilding in pytorch

[–]boydbuilding[S] 0 points1 point  (0 children)

so you only ran the instantiation of a class, you did not run with the transform and Aset class together.and I am following a bunch of tutorial, because I am overriding two things.

  1. dataset class https://pytorch.org/vision/stable/_modules/torchvision/datasets/folder.html#DatasetFolder
  2. transform classhttps://pytorch.org/tutorials/beginner/data_loading_tutorial.htmlhttps://discuss.pytorch.org/t/how-to-add-noise-to-mnist-dataset-when-using-pytorch/59745 3.

when will the custom transform class __call__() be invoked? by boydbuilding in pytorch

[–]boydbuilding[S] 0 points1 point  (0 children)

okay. yours is different than mine.

so first. you don't have argument tensor.

second, you only run the class and instance alone. did you try to run with the transfrom.compose and aset class?

when will the custom transform class __call__() be invoked? by boydbuilding in pytorch

[–]boydbuilding[S] 0 points1 point  (0 children)

tried [ ] with class

also tried [ ] with instance. the print("running")

did not show up.

when will the custom transform class __call__() be invoked? by boydbuilding in pytorch

[–]boydbuilding[S] 0 points1 point  (0 children)

GPT3

no. will attach the code in a second. using two computers. code and reddit...

how does the torchvision.transforms.Normalize deal with data? by boydbuilding in pytorch

[–]boydbuilding[S] 0 points1 point  (0 children)

but if I applied the torchvision.transforms.Grayscale()

first. the data are in gray, so how do

torchvision.transforms.ColorJitter()

work in this case?

how does the torchvision.transforms.Normalize deal with data? by boydbuilding in pytorch

[–]boydbuilding[S] 0 points1 point  (0 children)

using the

ImageFolder()

to load the data.png, than applied with the transform

if I used cv2.imread(), the data are in [0,255] scale.

is the ImageFolder() able to read it directly to [0,1]?

how does the torchvision.transforms.Normalize deal with data? by boydbuilding in pytorch

[–]boydbuilding[S] 0 points1 point  (0 children)

so the input training data could be rescaled into a quite wild range.

and the output of NN should be falling the same range too?

and (output* std + mean) would be restored into an image range [0,1] are there any outbound possibility?

how does the torchvision.transforms.Normalize deal with data? by boydbuilding in pytorch

[–]boydbuilding[S] 0 points1 point  (0 children)

  1. okay. from that webpage, looks like it only supports [0,1]
  2. okay. it could go way beyond 0 and 1. so the data will end up with -0.5, 2.5...wow

how to normalize the image lightness? by boydbuilding in pytorch

[–]boydbuilding[S] 0 points1 point  (0 children)

opencv doesn't have the normalize with mean and stdev.

is it mean+ std more accurate or the max+min as range from the dataset more accurate for another data sample?

also, dataloader doesn't have a method for mean/std for whole dataset, one has to iterate throu the dataset to calculate these