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

Поделиться
HTML-код
  • Опубликовано: 23 окт 2024

Комментарии • 28

  • @alexandrkazda7071
    @alexandrkazda7071 Месяц назад

    Thank you, the tutorial helped me a lot to get started with Einops.

  • @ssshukla26
    @ssshukla26 Год назад +1

    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.

  • @amortalbeing
    @amortalbeing 10 месяцев назад +3

    Thanks a lot this was very informative.
    my man, you've got a killer voice by the way😉

  • @johngrabner
    @johngrabner Год назад +1

    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 Год назад +1

    Perfect introduction to Einops! Thanks

  • @NihalKumar
    @NihalKumar Год назад +2

    this is called perfect teaching.. 😊 enlightened after watching
    can you please touch optical flow estimation part as well?
    Thanks Sir!

  • @Ethanlee719
    @Ethanlee719 Год назад +1

    Einops is OP!

  • @kamikamen_official
    @kamikamen_official 2 месяца назад

    Damn, einops is nice.

  • @ishaquenizamani9800
    @ishaquenizamani9800 Год назад +1

    Thank you so much sir it is a great video 👌👌🙌🙌

  • @normalchannel4747
    @normalchannel4747 Год назад +1

    You are genius please provide an end implementation pytorch of famous models using the available modules.

  • @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

  • @huiwencheng4585
    @huiwencheng4585 Год назад +1

    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.

  • @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