Reshape,Permute,Squeeze,Unsqueeze made simple using einops | The Gems

  Рет қаралды 5,382

Kapil Sachdeva

Kapil Sachdeva

Күн бұрын

Пікірлер: 28
@ssshukla26
@ssshukla26 Жыл бұрын
I didn't go through this video till today. But I was sitting on my work machine and I saw this video and cleared up my doubts. Commenting as i can't comment from my work laptop. Great video sir.
@KapilSachdeva
@KapilSachdeva Жыл бұрын
🙏
@amortalbeing
@amortalbeing 10 ай бұрын
Thanks a lot this was very informative. my man, you've got a killer voice by the way😉
@KapilSachdeva
@KapilSachdeva 10 ай бұрын
🙏
@alexandrkazda7071
@alexandrkazda7071 2 ай бұрын
Thank you, the tutorial helped me a lot to get started with Einops.
@johngrabner
@johngrabner Жыл бұрын
Thank you for making me aware of this library. The alternative I used was to name variables with dimension postfix like "letter_w_N_M_e = letter_sne.reshape(w,N,M,512) ". This library can make this even more clear and offers the opportunity to combine multiple lines.
@KapilSachdeva
@KapilSachdeva Жыл бұрын
This library is very good. There are other functions like repeat, pack and unpack that are also good so check them out as well.
@johngrabner
@johngrabner Жыл бұрын
@@KapilSachdeva I will, thank you
@kappa12385
@kappa12385 Жыл бұрын
Perfect introduction to Einops! Thanks
@KapilSachdeva
@KapilSachdeva Жыл бұрын
🙏
@NihalKumar
@NihalKumar Жыл бұрын
this is called perfect teaching.. 😊 enlightened after watching can you please touch optical flow estimation part as well? Thanks Sir!
@KapilSachdeva
@KapilSachdeva Жыл бұрын
🙏
@normalchannel4747
@normalchannel4747 Жыл бұрын
You are genius please provide an end implementation pytorch of famous models using the available modules.
@KapilSachdeva
@KapilSachdeva Жыл бұрын
🙏
@ishaquenizamani9800
@ishaquenizamani9800 Жыл бұрын
Thank you so much sir it is a great video 👌👌🙌🙌
@KapilSachdeva
@KapilSachdeva Жыл бұрын
🙏
@Ethanlee719
@Ethanlee719 Жыл бұрын
Einops is OP!
@huiwencheng4585
@huiwencheng4585 Жыл бұрын
You has really guts to tell the truth, the permute、reshape、view、squeeze、unsqueeze、np.repeat、....all of these forming a mess not readible
@KapilSachdeva
@KapilSachdeva Жыл бұрын
🙏 … yeah, code quality and readability is a very important aspect.
@kamikamen_official
@kamikamen_official 3 ай бұрын
Damn, einops is nice.
@abhishekmann
@abhishekmann Жыл бұрын
Can you make a video on VISSL library?
@KapilSachdeva
@KapilSachdeva Жыл бұрын
Based on the activity and their packaged release they have not published since 2021 (github.com/facebookresearch/vissl/releases). May not be a good idea to continue with the libraries that have stopped or stale development. I was looking into SSL last year and had kind of liked these two. See if they are helpful github.com/vturrisi/solo-learn github.com/lightly-ai/lightly
@prajwol_poudel
@prajwol_poudel Жыл бұрын
what is the difference between einsum and einops?
@KapilSachdeva
@KapilSachdeva Жыл бұрын
Many differences. openreview.net/pdf?id=oapKSVM2bcj See the appendix B of the einops paper where a detailed comparison is provided
@prajwol_poudel
@prajwol_poudel Жыл бұрын
​@@KapilSachdeva I can't figure out how to do a stack or concatenate operation on two matrices having different shape(having either equal rows or column but not both) using einops.rearrange. Only seems to be working with same shape arrays.
@KapilSachdeva
@KapilSachdeva Жыл бұрын
If you can create an example of these matrices and what result you want to see then may be I can suggest how to do it using einops api. You can use Google colab to create the example and then share the public link with me.
@KapilSachdeva
@KapilSachdeva Жыл бұрын
I saw a comment notification with a colab link but the comment has been removed (most likely by youtube). Can you try to again?
@KapilSachdeva
@KapilSachdeva Жыл бұрын
I tried it you can't use rearrange for this use case. What you want to use is einops.pack Here is a colab notebook with an example of einops.pack for your tensors. colab.research.google.com/drive/1Tsfqwl52me1pvfn2V6H_zE4q7buZKTRF?usp=sharing See the doc as well einops.rocks/4-pack-and-unpack/#short-summary-so-far
Detection Head | Essentials of Object Detection
15:32
Kapil Sachdeva
Рет қаралды 6 М.
Einsum Is All You Need: NumPy, PyTorch and TensorFlow
16:22
Aladdin Persson
Рет қаралды 45 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 7 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 4,4 МЛН
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 1,4 МЛН
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 6 МЛН
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,2 МЛН
Kalman Filter in Python for beginners
13:05
Python For Everybody
Рет қаралды 1,7 М.
A Better Detection Head | Essentials of Object Detection
6:29
Kapil Sachdeva
Рет қаралды 2,3 М.
Softmax (with Temperature) | Essentials of ML
13:31
Kapil Sachdeva
Рет қаралды 3,7 М.
Introducing Einops for Tensor Operations in Deep Learning
16:56
Rowel Atienza
Рет қаралды 2,8 М.
Reparameterization Trick - WHY & BUILDING BLOCKS EXPLAINED!
25:27
Kapil Sachdeva
Рет қаралды 11 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 7 МЛН