라벨이 Python인 게시물 표시

AttributeError: module 'jax' has no attribute 'tree_multimap'

이미지
Problem AttributeError: module 'jax' has no attribute 'tree_multimap' Solution Use  jax.tree_util.tree_map  or  jax.tree_map  instead of jax.tree_multimap. JAX 0.3.16  - jax.tree_util.tree_multimap() has been removed. It has been deprecated since JAX release 0.3.5, and jax.tree_util.tree_map() is a direct replacement.

pydicom 443: UserWarning: Invalid value for VR UI

  Example C:\Users\user\AppData\Local\slicer.org\Slicer 5.4.0\lib\Python\Lib\site-packages\pydicom\valuerep.py:443: UserWarning: Invalid value for VR UI: 'X.XXX.XXXXXXX.XXXXXX.088888.XXXXXX.XXXXXX.XXXXXX'. Please see <https://dicom.nema.org/medical/dicom/current/output/html/part05.html#table_6.2-1> for allowed values for each VR. The error occurred due to  088888 .  The number for the UID cannot start with 0. It's not a fatal error,  it's just a warning. Below are the note on  UID Encoding Rules . Registration authorities may distribute components with non-significant leading zeroes. The leading zeroes should be ignored when being encoded (i.e.,"00029" would be encoded "29"). To suppress specific warning messages in Python, you can use the warnings module.  import warnings # Ignore specific warnings warnings.filterwarnings("ignore", message="Invalid value for VR UI:*") Reference  -  https://dicom.nema.org/medical

How to Download YouTube Videos in Google Colab : yt-dlp

이미지
By installing yt-dlp , you can download YouTube videos in Google Colab. !pip install yt-dlp !yt-dlp https://www.youtube.com/watch?v=jNQXAC9IVRw -o first_youtube_video After running the above code and refreshing the files, you can see the downloaded video file( webm) . Reference - yt-dlp github :  https://github.com/yt-dlp/yt-dlp