Questions tagged [subsampling]

116 questions
1
vote
0 answers

Is there any difference between using WeightedRandomSampler with a big num_samples or doing more epoch with a num_samples lower?

I don't understand when the sampling is make: Does the first mini batch will be the same for each epoch? Or there no difference at all?
Fractale
  • 1,503
  • 3
  • 19
  • 34
1
vote
1 answer

How to convert ffmpeg video frame to YUV444?

I have been following a tutorial on how to use ffmpeg and SDL to make a simple video player with no audio (yet). While looking through the tutorial I realized it was out of date and many of the functions it used, for both ffmpeg and SDL, were…
1
vote
1 answer

Reduce number of pixels to obtain low-resolution image

I am trying to use different low resolution images for my work. Recently, I was reading the LOW RESOLUTION CONVOLUTIONAL NEURAL NETWORK FOR AUTOMATIC TARGET RECOGNITION in which they didn't mentioned the way how they made the low resolution images. …
1
vote
1 answer

How to speed up (fasta) subsampling program for Python?

I have devised edited a little script that subsamples x lines from an original file. The original file is fasta, which has two lines for every sequence, and the program extracts those x number of sequences (the two lines together). This is how it…
Néstor
  • 23
  • 3
1
vote
1 answer

How can I extract a concrete subsample of a dataframe and save in another dataframe in pyspark?

I have a dataframe called 'df1' which has X rows, suppose 1000. What I want to do is to get a concrete subsample of that dataframe and save as another. For example, I want to extract the rows 400 to 700 from 'df1' and save it as 'df2'. I know that…
jartymcfly
  • 1,945
  • 9
  • 30
  • 51
1
vote
1 answer

negative-sampling and subsampling

I'm hearing the term "negative-sampling" and "sub sampling" used in conjunction with word2vec a lot. Before I attempt to mess with word2vec I'm trying to go back through papers which reference word embedding, and start from the beginning. The paper…
user2738183
1
vote
2 answers

Sample frames of video

I'm looking for a way in OS X/Python3.5 to take an .avi video file, subsample every 100th frame, and combine those frames into its own video. In my particular case the video is 30 seconds at 20fps, so the new video would only be 6 frames long (I…
Austin
  • 6,921
  • 12
  • 73
  • 138
1
vote
1 answer

Adding Marker Pins at touched Position using subsampling scale image view

I'm using "subsampling scale image view" in my app and I would like to dynamically add marker pins to a PinView when the user does a long click on it. The marker pin should appear at the clicked position. I achieved that a marker pin appears after a…
Vik Toria
  • 29
  • 1
  • 7
1
vote
1 answer

Multiple background image in Subsampling Scale Image View

I have a demo app in which I have used SubsamplingScaleImageView from Dave Morrissey. Basically I have a large image which serves as a map, and I need the zoom and pan functionality. i need set More Image in background (layers),i use PinView but…
HunTer AnDone
  • 132
  • 1
  • 10
1
vote
1 answer

GNU Parallel - Multiple arguments

Using GNU parallel, I am trying to run a sub-sampling script that inputs two files and outputs a specific subsampled file. I am using this command: parallel -j+0 --eta python sub_sample_.2.py ::: file1 file2 ::: file3 file4 ::: file5 file6 But…
Labrat
  • 105
  • 10
1
vote
1 answer

Load image into custom Imageview rather than NetworkImageView while using volley

I need to load the image in Pinview rather than native NetworkImageView while using volley to load images from server. I went through lot of articles and I found nothing. Is there any way to do so?
driftking9987
  • 1,673
  • 1
  • 32
  • 63
1
vote
1 answer

I want to create an Android Gallery with different size columns

I want to create a Photo Gallery with two columns, like shown in the image here The image must be subsampled and also keep her aspect ratio. This is the custom transformation that subsamples the image: public ImageCustomTransformation(Context…
James Oanta
  • 133
  • 1
  • 9
1
vote
1 answer

How to make a pin markers clickable on Imageview

I'm using Dave Morrissey's Subsampling Scale Image View. I'm using his Pinview example (as shown here:…
Ebad Saghar
  • 1,107
  • 2
  • 16
  • 41
1
vote
3 answers

How to non-randomly sample every n rows in dplyr?

I'd like to do sample_n() in dplyr, except I don't want the sampling to be random, I intend to sample every n rows. Is there a way to do this? For example, I want to get every 10th row of the airquality dataset after ordering by Month and Day.…
daj
  • 6,962
  • 9
  • 45
  • 79
1
vote
1 answer

android Bitmap Subsampling of Image

I have problems with out of memory errors when displaying images in a list view from the SD Card I know its because I need to subsample the bitmap as they are large 8mp pictures and if I shrink them to 600x450 they load perfectly I load them…
Mark Barr
  • 159
  • 2
  • 12