Questions tagged [image]
92 questions
12
votes
1 answer
How to measure the similarity between two images?
I have two group images for cat and dog. And each group contain 2000 images for cat and dog respectively.
My goal is try to cluster the images by using k-means.
Assume image1 is x, and image2 is y.Here we need to measure the similarity between any…
jason
- 309
- 2
- 4
- 9
6
votes
1 answer
How can I plot/display a dataset or an image distribution?
I want to view a specific image or a dataset's distribution, and see if they are different.
Does simply writing something like :
# mydataset.shape = (50k,32,32,3)
plt.hist(mydataset.reshape(-1))
do the trick? or should I be doing something…
Hossein
- 535
- 6
- 14
6
votes
2 answers
How to remove the hotspots from given image by using Python and opencv?
In the picture below there are some regions which are very bright (i.e. more white). Some bright regions are wide and some are narrow or thin. The red box covers one such wide bright spot, and blue box covers one thin bright spot. Thin bright spots…
S. M.
- 163
- 10
5
votes
1 answer
How can my Pytorch based GAN output pure B&W with no grayscale?
My goal is to create simple geometric line drawings in pure black and white. I do not need gray tones. Something like this (example of training image):
But using that GAN it produces gray tone images. For example, here is some detail from a…
Todd Chaffee
- 103
- 7
4
votes
1 answer
Why do we need to concatenate in a U-Net?
You might be familiar with the U-Net, a machine learning network deceived for image segmentation.
It's basically an encoder/decoder network with some direct links between encoder and decoder segments:
I would like to better understand the reason…
henry
- 143
- 4
3
votes
1 answer
Image Super-resolution Connecting Subimages
I'm working with image super-resolution on terrain height data. Currently, I'm cutting the input data into smaller pieces (20 x 20 rather than 10800 x 10800).
After the upscale 20x20 -> 40x40, piecing the resulting images together causes artifacts…
jrdzha
- 49
- 1
3
votes
3 answers
Image Classification on non real images
I was wondering how image classifier networks perform on images that are not photographs. For example, if you were to feed a drawing of a car or a face to an image classifier that was only trained on photos would the network still be able to…
dadrake
- 51
- 3
2
votes
2 answers
How to replace the clothes of person using GAN?
I have one source video, let us say if the person is standing or walking in the video, the person's clothes should swap with the destination image (contain the picture of any clothes). I would like to use a GAN, like StyleGan for it. I am trying to…
Hamza
- 229
- 3
- 11
2
votes
1 answer
Difference between grayscaled and binary mnist dataset
When making a cnn you could use the classic mnist dataset containing grayscale images. I am considering transforming them to simple binary images instead, the questions is should i? It will be much smaller file sizes and easier to determine the text…
David Bacelj
- 61
- 4
2
votes
1 answer
Will images modification get me a better machine learning model?
Will images modification get me a better machine learning model?
I have the following scenario. Camera is fixed and does photos of a process. The process has a few states. Now I want to train a model given a photo to classify to which state, does…
manymanymore
- 123
- 3
2
votes
0 answers
pix2pix GAN with Rectangular Image Dataset
I am currently working on a project (for university) which translates sketches of faces to images of this person.
For implementing this, I decided to use a pix2pix GAN architecture.
However, I have the issue that the dataset contains photos in the…
Lukas
- 131
- 4
2
votes
1 answer
How to build a database of image data for machine learning?
I want to build a database of image data for machine learning. But how should this be done? I'm assuming people don't just dump all of their image data into a folder? Do they use a relational database management system, like MySQL? Or do they use a…
The Pointer
- 157
- 6
2
votes
2 answers
how to see decision tree when running in anaconda?
In Jupyter displaying the DT is done as follows:
# Display in jupyter notebook
from IPython.display import Image
Image(filename = 'tree.png')
How to see DT in anaconda?
user10296606
- 1,784
- 5
- 17
- 31
2
votes
1 answer
Multichannel numpy array to PIL image
I have a 4 channel Numpy image that needs to be converted to PIL image in order implement torchvision transformations on image. But when I try to do this using PIL.Image.from_array() I get the following error.
TypeError: Cannot…
thanatoz
- 2,365
- 4
- 15
- 39
2
votes
0 answers
Why do UNET-like architectures perform better than sliding-window approaches?
I'm writing a thesis that heavily focuses on semantic segmentation of biomedical images.
I'm reviewing different segmentation approaches, identifying two main approach branches:
A sliding window-like approach: a classification network is used over…
Filippo Castelli
- 21
- 1