<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" 
  xmlns:content="http://purl.org/rss/1.0/modules/content/" 
  xmlns:dc="http://purl.org/dc/elements/1.1/" 
  xmlns:atom="http://www.w3.org/2005/Atom" 
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 
  xmlns:media="http://search.yahoo.com/mrss/">
  <channel>
    <title>python on 行李の底に収めたり[YuWd]</title>
    <link>https://yuiga.dev/blog/en/tags/python/</link>
    <description>Recent content in python on 行李の底に収めたり[YuWd]</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>©2026, All Rights Reserved</copyright>
    <lastBuildDate>Sun, 24 Mar 2024 06:28:57 +0900</lastBuildDate>
    
        <atom:link href="https://yuiga.dev/blog/en/tags/python/index.xml" rel="self" type="application/rss+xml" />
    

      
      <item>
        <title>MambaをPoetryで管理する</title>
        <link>https://yuiga.dev/blog/en/ja/posts/mamba%E3%82%92poetry%E3%81%A7%E7%AE%A1%E7%90%86%E3%81%99%E3%82%8B/</link>
        <pubDate>Sun, 24 Mar 2024 06:28:57 +0900</pubDate>
        
        <atom:modified>Sun, 24 Mar 2024 06:28:57 +0900</atom:modified>
        <guid>https://yuiga.dev/blog/en/ja/posts/mamba%E3%82%92poetry%E3%81%A7%E7%AE%A1%E7%90%86%E3%81%99%E3%82%8B/</guid>
        <description>リンク集 Mamba: Linear-Time Sequence Modeling with Selective State Spaces https://github.com/state-spaces/mamba https://github.com/Dao-AILab/causal-conv1d 備忘録 mamba-ssmやcausal-conv1dがPEP517に準拠していないのでpoetry add &amp;lt;package-name&amp;gt;だとインスコできない poetry add &amp;lt;path&amp;gt;でもsetup.py読んでくれないからムリ → 無理やりローカルでwheelを作ってpoetry addすれば</description>
        
        <dc:creator>YuWd (Yuiga Wada)</dc:creator>
        
        
        
        
          
            
              <category>python</category>
            
          
            
              <category>poetry</category>
            
          
            
              <category>post</category>
            
          
        
        
        
          
            
          
        
      </item>
      
      <item>
        <title>【祝】CVPR2024に主著論文が採択されました</title>
        <link>https://yuiga.dev/blog/en/ja/posts/cvpr24_yuwd/</link>
        <pubDate>Tue, 27 Feb 2024 06:28:57 +0900</pubDate>
        
        <atom:modified>Tue, 27 Feb 2024 06:28:57 +0900</atom:modified>
        <guid>https://yuiga.dev/blog/en/ja/posts/cvpr24_yuwd/</guid>
        <description>🌐 project page 📄 arXiv 🤗 Dataset 主著一本がCVPR 2024に採択されました 🔥🔥🔥 朝から最高の気分です！！！#CVPR2024 pic.twitter.com/2O5cBWzQGx &amp;mdash; YuWd (@YuigaWada) February 27, 2024</description>
        
        <dc:creator>YuWd (Yuiga Wada)</dc:creator>
        <media:content url="https://yuiga.dev/bloghttps://gyazo.com/58b187addb04bbb2d7633be98d3646a6.jpg" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>python</category>
            
          
            
              <category>poetry</category>
            
          
            
              <category>post</category>
            
          
        
        
        
          
            
          
        
      </item>
      
      <item>
        <title>【poetry】poetry updateが終わらない（気がする）とき</title>
        <link>https://yuiga.dev/blog/en/ja/posts/poetrypoetry_update%E3%81%8C%E7%B5%82%E3%82%8F%E3%82%89%E3%81%AA%E3%81%84%E6%B0%97%E3%81%8C%E3%81%99%E3%82%8B%E3%81%A8%E3%81%8D/</link>
        <pubDate>Mon, 11 Dec 2023 03:02:35 +0900</pubDate>
        
        <atom:modified>Mon, 11 Dec 2023 03:02:35 +0900</atom:modified>
        <guid>https://yuiga.dev/blog/en/ja/posts/poetrypoetry_update%E3%81%8C%E7%B5%82%E3%82%8F%E3%82%89%E3%81%AA%E3%81%84%E6%B0%97%E3%81%8C%E3%81%99%E3%82%8B%E3%81%A8%E3%81%8D/</guid>
        <description>pyproject.tomlで変な制約を付けていると，poetry updateで依存関係の解決が終わらないことがある． とりあえず poetry update -vvvでverbose mode (mode 3)で出力しましょう． 大抵は無限にバージョンを遡って行っているパターンが多い． 目で追っていくと，やたらとバージョンを探索しているライブラリだったり，頻出するライ</description>
        
        <dc:creator>YuWd (Yuiga Wada)</dc:creator>
        
        
        
        
          
            
              <category>python</category>
            
          
            
              <category>post</category>
            
          
        
        
        
          
            
          
        
      </item>
      
      <item>
        <title>How to create Matterport3D segmentation images?</title>
        <link>https://yuiga.dev/blog/en/ja/posts/matterport3d_semantic_segmentation/</link>
        <pubDate>Thu, 24 Nov 2022 20:09:23 +0900</pubDate>
        
        <atom:modified>Thu, 24 Nov 2022 20:09:23 +0900</atom:modified>
        <guid>https://yuiga.dev/blog/en/ja/posts/matterport3d_semantic_segmentation/</guid>
        <description>Intro The other day, one of my labmates needed to make a segmentation of Matterport3D. He asked for help, and I got involved in creating the segmentation. However, it turned out to be a real struggle. We were not used to 3D mesh models.
After several weeks, we completed the code to create a semantic segmentation image for Matterport3D.
  How to create Matterport3D segmentation images  Matterport3D provides access to 3D segmentation but does not give users an easy way to access 2D. Matterport3D data only provides point clouds and meshes labeled by ground truth, and the user must add color directly to the point clouds and meshes to create 2D segmentations.
We, therefore, wrote code using Matterport3DSimulator to place a camera for a given scan_id and viewpoint_id and create a segmentation from the original ply file.
When we run our code, we get the following image. (I concatenated the obtained images and converted to a gif)
  Matterport3DSimulator takes a total of 36 pictures: 12 at the top, 12 at the perimeter, and 12 at the bottom.</description>
        
        <dc:creator>YuWd (Yuiga Wada)</dc:creator>
        <media:content url="https://yuiga.dev/bloghttps://gyazo.com/154d6dd2dab0d8f33c34767bf21caed3.gif" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>Matterport3D</category>
            
          
            
              <category>python</category>
            
          
            
              <category>CV</category>
            
          
            
              <category>Vision-and-Language</category>
            
          
            
              <category>post</category>
            
          
        
        
        
          
            
          
        
      </item>
      
      <item>
        <title>【PyTorch】「CUDA error: device-side assert triggered」 解決の手引き</title>
        <link>https://yuiga.dev/blog/en/ja/posts/pytorchcuda_error_device-side_assert_triggered_%E8%A7%A3%E6%B1%BA%E3%81%AE%E6%89%8B%E5%BC%95%E3%81%8D/</link>
        <pubDate>Sun, 23 Oct 2022 04:49:42 +0900</pubDate>
        
        <atom:modified>Sun, 23 Oct 2022 04:49:42 +0900</atom:modified>
        <guid>https://yuiga.dev/blog/en/ja/posts/pytorchcuda_error_device-side_assert_triggered_%E8%A7%A3%E6%B1%BA%E3%81%AE%E6%89%8B%E5%BC%95%E3%81%8D/</guid>
        <description>はじめに PyTorchにて, &amp;ldquo;RuntimeError: CUDA error: device-side assert triggered&amp;quot;というエラーに出くわすことがある ネットに転がってるモデルで発生すると特に厄介である (自分が作った沼ではないので&amp;hellip;) またMAEでのマスク処理のような, テクニカルな処理を行う場合などにも頻発 再現性が取れず, 出力されるエラー内容も二転三転. 一定</description>
        
        <dc:creator>YuWd (Yuiga Wada)</dc:creator>
        
        
        
        
          
            
              <category>python</category>
            
          
            
              <category>PyTorch</category>
            
          
            
              <category>post</category>
            
          
        
        
        
          
            
          
        
      </item>
      
      <item>
        <title>日本語版Image Captioningの学習・推論コードを提供する</title>
        <link>https://yuiga.dev/blog/en/ja/posts/%E6%97%A5%E6%9C%AC%E8%AA%9E%E7%89%88image_captioning%E3%81%AE%E5%AD%A6%E7%BF%92%E6%8E%A8%E8%AB%96%E3%82%B3%E3%83%BC%E3%83%89%E3%82%92%E6%8F%90%E4%BE%9B%E3%81%99%E3%82%8B/</link>
        <pubDate>Wed, 05 Oct 2022 01:06:12 +0900</pubDate>
        
        <atom:modified>Wed, 05 Oct 2022 01:06:12 +0900</atom:modified>
        <guid>https://yuiga.dev/blog/en/ja/posts/%E6%97%A5%E6%9C%AC%E8%AA%9E%E7%89%88image_captioning%E3%81%AE%E5%AD%A6%E7%BF%92%E6%8E%A8%E8%AB%96%E3%82%B3%E3%83%BC%E3%83%89%E3%82%92%E6%8F%90%E4%BE%9B%E3%81%99%E3%82%8B/</guid>
        <description>ひょんなことから最近Image Captioning(画像キャプション生成)を触っている だが, ググってもググっても日本語でImage Captioningしてる人があまりに居ない&amp;hellip; コードを検索してもヒットしたのはこの子だけ&amp;hellip;🤔 (しかもChainer &amp;hellip;) https://github.com/yuyay/chainer_nic 日本語での画像キャプション生成界隈はプレイヤ</description>
        
        <dc:creator>YuWd (Yuiga Wada)</dc:creator>
        <media:content url="https://yuiga.dev/bloghttps://gyazo.com/84eb80c9306765803ac3be19c67ec110.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>機械学習</category>
            
          
            
              <category>python</category>
            
          
            
              <category>post</category>
            
          
        
        
        
          
            
          
        
      </item>
      
      <item>
        <title>【ray】@remoteがメモリを大量に食う時はray.put()を使おう</title>
        <link>https://yuiga.dev/blog/en/ja/posts/rayremote%E3%81%8C%E3%83%A1%E3%83%A2%E3%83%AA%E3%82%92%E5%A4%A7%E9%87%8F%E3%81%AB%E9%A3%9F%E3%81%86%E6%99%82%E3%81%AFray.put%E3%82%92%E4%BD%BF%E3%81%8A%E3%81%86/</link>
        <pubDate>Thu, 15 Sep 2022 23:31:33 +0900</pubDate>
        
        <atom:modified>Thu, 15 Sep 2022 23:31:33 +0900</atom:modified>
        <guid>https://yuiga.dev/blog/en/ja/posts/rayremote%E3%81%8C%E3%83%A1%E3%83%A2%E3%83%AA%E3%82%92%E5%A4%A7%E9%87%8F%E3%81%AB%E9%A3%9F%E3%81%86%E6%99%82%E3%81%AFray.put%E3%82%92%E4%BD%BF%E3%81%8A%E3%81%86/</guid>
        <description>はじめに rayとは → https://github.com/ray-project/ray 分散並列処理を簡単に書けるフレームワーク ray.remoteは怖い @ray.remoteが付された関数が使用するオブジェクトは, 呼び出される都度内部でray.put()が呼ばれ, データがメモリ上に展開される 若干この仕様が厄介で, ray.get()なんかを使うと, 同じオブジェクトを何度もメモリ上に展</description>
        
        <dc:creator>YuWd (Yuiga Wada)</dc:creator>
        
        
        
        
          
            
              <category>python</category>
            
          
            
              <category>post</category>
            
          
        
        
        
          
            
          
        
      </item>
      
      <item>
        <title>pycocoevalcapのMETEORがバグる (self.meteor_p.stdin.flush)</title>
        <link>https://yuiga.dev/blog/en/ja/posts/pycocoevalcap%E3%81%AEmeteor%E3%81%8C%E3%83%90%E3%82%B0%E3%82%8B_self.meteor_p.stdin.flush/</link>
        <pubDate>Thu, 08 Sep 2022 00:05:28 +0900</pubDate>
        
        <atom:modified>Thu, 08 Sep 2022 00:05:28 +0900</atom:modified>
        <guid>https://yuiga.dev/blog/en/ja/posts/pycocoevalcap%E3%81%AEmeteor%E3%81%8C%E3%83%90%E3%82%B0%E3%82%8B_self.meteor_p.stdin.flush/</guid>
        <description>なぜかpycocoevalcapでMETEORの計算が止まる問題 どうやらself.meteor_p.stdin.flush() あたりで止まっているらしい 結論から言えば, 俺の場合キャプションに\nが入っていたせいだった そもそもCOCO captions のキャプション自体結構汚いので注意 変な改行入ってたり, キャプションがなぜか6つあったり</description>
        
        <dc:creator>YuWd (Yuiga Wada)</dc:creator>
        <media:content url="https://yuiga.dev/bloghttps://gyazo.com/d668e95311ea2d42438c24de5abf0f6f.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>python</category>
            
          
            
              <category>NLP</category>
            
          
            
              <category>post</category>
            
          
        
        
        
          
            
          
        
      </item>
      
      <item>
        <title>必要なものだけpip freezeする方法</title>
        <link>https://yuiga.dev/blog/en/ja/posts/%E5%BF%85%E8%A6%81%E3%81%AA%E3%82%82%E3%81%AE%E3%81%A0%E3%81%91pip_freeze%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95/</link>
        <pubDate>Sun, 04 Sep 2022 17:06:13 +0900</pubDate>
        
        <atom:modified>Sun, 04 Sep 2022 17:06:13 +0900</atom:modified>
        <guid>https://yuiga.dev/blog/en/ja/posts/%E5%BF%85%E8%A6%81%E3%81%AA%E3%82%82%E3%81%AE%E3%81%A0%E3%81%91pip_freeze%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95/</guid>
        <description>pipreqsという非常に便利なライブラリが存在する pipreqs . だけでimportされているライブラリだけを出力してくれる マジで便利 例 pipreqsを使えばこれが出力される 1 2 3 4 5 6 7 8 9 10 11 12 ❯ pipreqs . &amp;amp;&amp;amp; cat requirements.txt colored_traceback==0.3.0 h5py==3.7.0 matplotlib==3.5.3 nltk==3.7 numpy==1.23.2 Pillow==9.2.0 pycocoevalcap==1.2 skimage==0.0 torch==1.8.2+cu111 torchvision==0.9.2+cu111 tqdm==4.64.0 pip freeze だとこれ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43</description>
        
        <dc:creator>YuWd (Yuiga Wada)</dc:creator>
        
        
        
        
          
            
              <category>python</category>
            
          
            
              <category>misc</category>
            
          
            
              <category>post</category>
            
          
        
        
        
          
            
          
        
      </item>
      
      <item>
        <title>ストレスなくpdbを使う方法</title>
        <link>https://yuiga.dev/blog/en/ja/posts/%E3%82%B9%E3%83%88%E3%83%AC%E3%82%B9%E3%81%AA%E3%81%8Fpdb%E3%82%92%E4%BD%BF%E3%81%86%E6%96%B9%E6%B3%95/</link>
        <pubDate>Mon, 11 Jul 2022 21:04:09 +0900</pubDate>
        
        <atom:modified>Mon, 11 Jul 2022 21:04:09 +0900</atom:modified>
        <guid>https://yuiga.dev/blog/en/ja/posts/%E3%82%B9%E3%83%88%E3%83%AC%E3%82%B9%E3%81%AA%E3%81%8Fpdb%E3%82%92%E4%BD%BF%E3%81%86%E6%96%B9%E6%B3%95/</guid>
        <description>TL;DR pdbを使おうとすると, ブレークポイントが必要かどうかに拘らずcを入力する必要がある →ストレス😠 -m pdbだけでなく-c cをつけると自動でpdbモードに入ってくれる →ストレスフリー✨ 1 python -m pdb -c c main.py なので ~/.zshrcに 1 alias pdb=&amp;#34;python -m pdb -c c&amp;#34; とでも書いておけば, デバッグしたいときにpythonをpdbに変えてしまうだけでいいの</description>
        
        <dc:creator>YuWd (Yuiga Wada)</dc:creator>
        
        
        
        
          
            
              <category>python</category>
            
          
            
              <category>post</category>
            
          
        
        
        
          
            
          
        
      </item>
      
      <item>
        <title>fork vs spawn</title>
        <link>https://yuiga.dev/blog/en/ja/posts/fork_vs_spawn/</link>
        <pubDate>Thu, 23 Jun 2022 18:59:22 +0900</pubDate>
        
        <atom:modified>Thu, 23 Jun 2022 18:59:22 +0900</atom:modified>
        <guid>https://yuiga.dev/blog/en/ja/posts/fork_vs_spawn/</guid>
        <description>Fork 親プロセスをそのままコピーするので, メモリを圧迫する Spawn 親プロセスから必要なメモリだけコピーして, 立ち上げるので省メモリ 新たにインタプリタを起動するので遅い link1: https://britishgeologicalsurvey.github.io/science/python-forking-vs-spawn/ link2: https://itsuka-naritai.com/2021/04/18/multiprocessing-forkとspawnの違いを理解する/ CUDAはs</description>
        
        <dc:creator>YuWd (Yuiga Wada)</dc:creator>
        
        
        
        
          
            
              <category>python</category>
            
          
            
              <category>post</category>
            
          
        
        
        
          
            
          
        
      </item>
      
      <item>
        <title>faiss</title>
        <link>https://yuiga.dev/blog/en/ja/posts/faiss/</link>
        <pubDate>Wed, 15 Jun 2022 21:35:48 +0900</pubDate>
        
        <atom:modified>Wed, 15 Jun 2022 21:35:48 +0900</atom:modified>
        <guid>https://yuiga.dev/blog/en/ja/posts/faiss/</guid>
        <description>k近傍法 とか最近傍探索とかクラスタリングとかできるらしい CPU / GPU 両方とも用意してあるが, err == CUBLAS_STATUS_SUCCESS faiss という謎エラーのためプロジェクトではCPU版を使うことに https://github.com/facebookresearch/faiss</description>
        
        <dc:creator>YuWd (Yuiga Wada)</dc:creator>
        
        
        
        
          
            
              <category>python</category>
            
          
            
              <category>post</category>
            
          
        
        
        
          
            
          
        
      </item>
      

    
  </channel>
</rss>
