Questions tagged [image]

88 questions
14
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
  • 329
  • 2
  • 4
  • 9
6
votes
2 answers

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…
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
  • 565
  • 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…
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
5
votes
2 answers

DBScan for image segmentation and clustering: how does it work?

I think I have understood the DBScan algorithm for 2D data points. We can consider the example in scikit-learn. They generate a set of data points: from sklearn.datasets import make_blobs from sklearn.preprocessing import StandardScaler centers =…
3
votes
1 answer

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
  • 240
  • 4
  • 12
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…
3
votes
0 answers

What algorithms exist for identify repeating patterns in a single image?

I am looking for algorithms or models for detecting and identifying repeated patterns contained within a single image. For example, an arbitrary smaller image might be pasted at random locations in the image. In the situation at hand, no prior…
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…
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…
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…
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,906
  • 6
  • 18
  • 33
1
2 3 4 5 6