Recent comments in /f/deeplearning
Marius1235 OP t1_jca517k wrote
Reply to comment by incrapnito in image to image by Marius1235
Thanks! I will take a look =)
incrapnito t1_jca4u2d wrote
Reply to newby here. looking for help on a MLP for speech recognition. any tips or pointers would be appreciated by alexilas
Use scikit learn mlp classifier if you have to use mlp.
incrapnito t1_jca42rj wrote
Reply to Which topic in deep learning do you think will become relevant or popular in the future? by gokulPRO
Transfer learning. With the availability of these large models, it will be in demand to adapt them to smaller/use case specific datasets.
incrapnito t1_jca3u68 wrote
Reply to image to image by Marius1235
Another approach can be cyclegan or pix2pix, both are gan based model. Pix2pix works on paired data and cyclegan works can use unpaired data.
Marius1235 OP t1_jca3hsi wrote
Reply to comment by canxkoz in image to image by Marius1235
Thanks alot! =)
canxkoz t1_jca0xqc wrote
Reply to image to image by Marius1235
Search for ‘Neural Style Transfer’.
Some helpful links:
https://www.tensorflow.org/tutorials/generative/style_transfer
https://huggingface.co/spaces/aravinds1811/neural-style-transfer
Tekno-12345 OP t1_jc9zmeh wrote
Reply to comment by HarissaForte in Using GANs to generate defective data by Tekno-12345
Ow I see,
I have already done something similar but the results were not convincing.
Maybe I'll try it again using the masks.
rkstgr t1_jc9sf5c wrote
Reply to comment by eugene129 in what exactly is Variance(Xt) during the Forward Process in Diffusion model ? by eugene129
Exactly, because you have x_t-1 with some (unknown, data/normalisation dependent) variance and you add noise with variance \beta to get x_t.
HarissaForte t1_jc9s369 wrote
Reply to comment by Tekno-12345 in Using GANs to generate defective data by Tekno-12345
For example you use a bubble mask to "cut" out a bubble patch from an image. Cutting can be a mix of rectangular selection + transparency where the mask equals zero.
Then you do some random change (flip, aspect ratio…) to this patch.
Then you take a defect free image, and you randomly choose a location where to paste this defect using the bottle mask. You can paste by simply over-writing on the image, or you can do a linear interpolation between the patch image and the defect-free image so it's smoother.
I assume you have very similar images, since they're from a standardized inspection process. Also the bubbles are a very simple pattern. So this could work quite well.
suflaj t1_jc9rwff wrote
Reply to comment by ScottHameed in Desktop Computer or some other way to train neural networks? by ScottHameed
I was referring mostly to cost and time efficiency.
Tekno-12345 OP t1_jc9pgbl wrote
Reply to comment by HarissaForte in Using GANs to generate defective data by Tekno-12345
Thanks for the good ideas, i'll try them out.
What do you mean by the last part? How can I create patches of defects using the segmentation data?
You mean by classical methods?
agaz1985 t1_jc9pebz wrote
Reply to Image reconstruction by grid_world
18 is your Z dimension, if you move it to the third dimension so Bx3x18x90x90 you can apply multiple 3DConv until you reach a 2D representation and after that you apply 2DConv. For example, let's say we apply 2 times 3DConv->3DMaxPooling with kernels (3,1,1) and (2,1,1) you'll end up with an output of BxCx3x90x90, if you then apply a single 3DConv with kernel (3,1,1) you'll have an output of BxCx1x90x90 or simply BxCx90x90 which can then be passed to 2DConv layers. So basically you ask the model to compress the info in your Z dimension before moving to the spatial dimensions. You can also do the two things together by playing with the kernel size of conv layers. That said, integrating this into UNet it's a bit more work than just using a predefined UNet but it is doable, look for 3D+2D Unet for example.
Tekno-12345 OP t1_jc9oymg wrote
Reply to comment by HarissaForte in Using GANs to generate defective data by Tekno-12345
You're right, I'll try to incorporate more representative data.
I'll also try different splits
Thanks
ScottHameed OP t1_jc8lwe3 wrote
Got it 🙌
ScottHameed OP t1_jc8lu69 wrote
Reply to comment by suflaj in Desktop Computer or some other way to train neural networks? by ScottHameed
Efficient or more cost effective or both?
ScottHameed OP t1_jc8lsoe wrote
Reply to comment by mfb1274 in Desktop Computer or some other way to train neural networks? by ScottHameed
Helpful insight 🙌
ScottHameed OP t1_jc8lq2w wrote
Reply to comment by immo_92_ in Desktop Computer or some other way to train neural networks? by ScottHameed
Thanks 🙌
DeepLearningStudent t1_jc7ly6x wrote
Holy crap, if this works that’s a huge game changer for a problem I’m working on.
errgaming t1_jc734jn wrote
Reply to comment by qphyml in Which topic in deep learning do you think will become relevant or popular in the future? by gokulPRO
Thing is, a lot of these problems are always solvable my Tree (non DL) models if you design your data smartly. But GNNs have so much potential to capture information, especially with the use of context attention to get exactly the right patterns you're seeking.
__Yi__ t1_jc71l3o wrote
Reply to Meta’s LLaMa weights leaked on torrent... and the best thing about it is someone put up a PR to replace the google form in the repo with it 😂 by RandomForests92
I fucking love the Internet.
HarissaForte t1_jc6sser wrote
Reply to comment by Tekno-12345 in Using GANs to generate defective data by Tekno-12345
> Any small diversion will be detected as defective.
If this small diversion is smaller than the diversion within your train dataset (+ the noise) then it should not be detected.
Did you try different splits or a CV ?
WallyMetropolis t1_jc6qi9w wrote
Reply to comment by rezayazdanfar in How To Scale Transformers’ Memory up to 262K Tokens With a Minor Change? by rezayazdanfar
I see. Typically, when you say "this thing" you're referring to the most recent mention of that thing. So "Here's my article. This article is fabulous." is probably not the structure you want. You really should reference the paper or the researchers you're writing about straight away, if that's what you're doing here. Even after skimming your article, that isn't clear.
It's a cautionary tale about "this" really. A tip that has helped my writing is to accumulate a list of words that I tend to over-use that add nothing and search for them in the editing process. Words like "this, really, just, again," and so on.
HarissaForte t1_jc6qhid wrote
Reply to comment by Tekno-12345 in Using GANs to generate defective data by Tekno-12345
Well first it really is a use case for anomaly detection, but I see there's a discussion on it in another comment.
I still don't know if you have (classification) labels, bbox, or masks for the images with defect… if you do not have any bbox or mask, I suggest you try creating mask annotations, as this will increase the "power" of each sample (instead of 1 label per image you get HxW labels for each pixel location).
It should be fast as:
- You say you do not have many images with defect.
- It seems the mask for defect-less bottles can be generated with a simple thresholding.
- Looking at your example you can create a bubble annotation in one click with a proper annotation tool (I can't tell for the other defect)
Then you ca try a simple supervised training. You could have a nice surprise since your picture are taken in a controlled, standardized environment (it's not like you'd have pictures of bottles on a beach or in the jungle).
If not then you will be able to use the segmentation data to create patches of defects that you can use on your defect-free bottle to create new data. It will be much easier than messing around with GANs and might give you good results.
grid_world OP t1_jc6ox1c wrote
Reply to comment by notgettingfined in Image reconstruction by grid_world
Maybe a conv3d helps better without having to reshape
[deleted] t1_jca7xru wrote
Reply to comment by incrapnito in image to image by Marius1235
[deleted]