Sunday, April 21, 2024

met Indian wine

I went into a familiar Indian restaurant and ordered a Japanese beer as usual, but since they were out of stock today, I was offered an Indian beer. This is also an encounter. 

Looking at the label, it has an alcohol content of 4.5 abv, so I thought it would be a light drink, but it has a strong flavor with a noticeable sweetness. I thought this was great. 

I decided to go into uncharted territory for the second time. My second glass was wine, and I ordered red wine, which was also surprisingly delicious. A premium Indian wine called Grover. The price also feels quite reasonable. It was a great experience.

I do not know where the staff of the restaurant came from but I easily understood they really love Indian foods and drinks. Their choice and recommendation brought me their consideration. 

Monday, April 8, 2024

March to April

Mid-March to mid-April is busier than other months. One reason is that my schedule is packed with events. I'm a little tired, but I'm looking forward to new things. Change brings new knowledge and experience.

Sunday, March 24, 2024

a talk in drinking

I enjoyed a drinking time with friends a few days ago. In a talk, a friend suddenly touched on an interesting topic. 

He said a person makes a different decision about the same problem if he or she has a different search domain for the problem. That is true. Generally, a good optimizer solves a problem in a given ideal search domain, but it does not find a good result in ill domains. To get good search domains or know new regions, wise people try to learn any. And, the domains can be updated, and most domains are introduced by friends. I believe it is common sense. 

Thus, wise men easily cut bad relationships. If a person has a poor man as a friend, the person may have a direction toward the poor. People should cut friends if they are liars, unattractive, or cowardly. 

However, most people do not know how to detect them. To the asking, I have an answer. That is drinking beer. If the person likes drinking and no problem happens, he or she is good. Otherwise, he or she has any problems. 

This is real. 


Thursday, March 7, 2024

well slept

I slept well for the first time in a while. I realized that fatigue contributes to good sleep. Avoiding tiredness is not necessary.

Yesterday, I accidentally walked approximately 20 kilometers and then worked hard. It was tough at the time, but my perspective changed after the good sleep. I now hope to experience fatigue every day for better sleep.

Tuesday, February 27, 2024

hmm

I had a meeting with team members to talk about issues members held. Occasionally, I needed clarification on new technical terms from others in the meeting. It might be the generation gap. Recently, a lot of technical terms appeared thanks to AI. That is bad because completely different words were assigned to similar thoughts. Though a technique was defined on a point set, the technical term does not include the word "point set." I want people to use the original technical term if they generate new technical terms like image-based rendering and image-based lighting. 

Sunday, February 25, 2024

grub console

When I boot Ubuntu, sometimes the gnu grub console runs instead of the GUI version. The reason may be that my keyboard inputs a key through electronic problems. In most cases, by rebooting it after changing or repairing the keyboard, the GUI version runs. But, we can boot it on the console without rebooting it. 

After checking the keyboard, type the following on the console, and then Ubuntu runs.

configfile /boot/grub/grub.cfg

"configfile" is a command of the grub, and "/boot/grub/grub.cfg" is a file path about booting. If the file is not set to the path, we can boot the OS by adapting the path.


Tuesday, February 20, 2024

To avoid forgetting a thing

When I am busy, memories are always overstacked. A lot of things are hidden by additional things, and the hidden memory does not come up ever. I forgot everything before the last issue I saw. When I realized I had forgotten it, it was too late. 

To avoid this situation, I use a notebook. It is not electronic. No battery. No boot. Just open it to use. 

The notebook is not for beautiful pages but it is just for external memories. So, I do not consider the language I write, the style, and the format. It is very convenient when I am too busy to keep the memory. 

A colleague had a similar problem like forgetting some important things when busy. So, I recommended using notebooks. From using it, the colleague 

My recommendation is the largest notebook we can keep in our own bag. larger, better. Because more space allows me to write most connections between points to points. The connections bring me additional memories I need. So, I like to use a large notebook. 

Wednesday, February 14, 2024

Weight really gains

Before, I believed that when I felt my body heavy in the morning, it was due to my mental state, for example, being busy in my mind or tired. It was like jitters in my sense. 

But, I realized that real is not. Just my weight gained. When I recorded my weight, I realized this. I had got too much salty food. And, my body had kept a lot of water. It was not from mental. My senses are correct. 

Now I have a really sad thing. And, I feel that my weight gained. But it is not a mental issue. Just eating too much. 

Wednesday, February 7, 2024

_projective plugings are available in mitsuba3.5 instead of _reparam plugins

I wrote my problem about _reparam plugins in Mitsuba3 here two days ago. 

https://geblog3.blogspot.com/2024/02/mitsuba3-removed-reparameterizations.htm

After that, I realized that I had read the stable version tutorial but installed the latest version of the library. The difference confused me. 

While _reparam is still available in the stable library whose version is 3.4.1, new plugins were introduced in the latest version 3.5.0 instead of _reparam. Those were projective plugins. In addition, the latest tutorial already described it. 

https://mitsuba.readthedocs.io/en/latest/src/inverse_rendering/projective_sampling_integrators.html

Thanks to this tutorial, I solved my problem. The plugins adjust shapes to the desired ones. 


Tuesday, February 6, 2024

My to-do list never finishes.

I always need to complete my to-do list but I never see that situation. As soon as I finish one task, more tasks are automatically added. I'm at a loss for a solution. 

There are many ununderstandable problems and issues every day. Today, I stumbled upon why the neural texture method needs neural networks. I know neural makes a problem smaller, but the setting is undefined. I could not understand it. So, I need to read a code that implements it. It is a hard task, but I need it. This is a study. 

Monday, February 5, 2024

mitsuba3 removed reparameterizations

I wrote a program for retargeting shapes using a reparameterization plugin in Mitsuba3, but the program did not work. I only knew that a line using the reparameterization plugin had stopped the program, but I did not understand what the problem was because the program was written along with the official tutorial. 

At first, I had not wondered if the official tutorial was old. But a day later, I wondered again it was real. Later, I found a page. The official tutorial was old.  

https://github.com/mitsuba-renderer/mitsuba3/pull/997

According to this, "Reparameterizations were completely removed from the codebase." OK, goodbye. 

Now, I have to reconsider what I use for retargeting shapes. 

----------------

The problem was solved with _projective plugins. https://geblog3.blogspot.com/2024/02/projective-plugings-are-available-in.html

Tuesday, January 30, 2024

戯言

昼夜問わず飲みまくってたせいでここ2週間ほど曜日感覚も昼夜の感覚も失って過ごしていた。

これはこれで楽しかったが、こういう刺激的な生活ばかりしてられないので、そろそろ人間界に戻ろうかなと思っている。が、そもそも戻る場所がない。

というわけで、新しく生活スタイルを決めることになる。今は自由にスタイルを決めれる身なので、どんなスタイルが良いか悩んでいる。

こういうときは先人から学ぶのが吉だと思う。普通の社会生活をしている人になっておこう。

まず私の頼るところはデールカーネギーの著書である。言わずも知れた、人間社会のど真ん中を行くための本である。とはいえ、まぁ、生活について書いていないのは知っている。なんの参考にもならない。

なので、次に著者本人を参考にしようと試みる。どんな奴だったのかよく知らないので、ググってみたが、髪型がツーブロックっぽいことしかわからない。なんなんだ、この人。

ほかには数学者や作家が思いついたが、そもそも人間的に碌でもないやつらなので参考にできない。そもそも私は普通っぽいスタイルに憧れている。

と、この辺で、普通を本にして出版するなどありえないので、そもそも参考にしようとしたものが悪いと気が付いた。

なので、ストレートに普通の生活スタイルをググってみた。

朝起きて、3食食べて、適度に運動して、夜そこそこに寝るという具合のことが出てくる。

そうか、2時3時まで遊んでる時点でこれから外れてて、さっさと寝ろということか。まぁいきなり生活を変えるのは困難だが、目標が決まれば目指すことは可能である。これからはこういう普通っぽい生き方をしていこうと思う。クソつまんない気がするけど、飽きたらまた別のスタイルを探そうと思う。

Wednesday, January 3, 2024

libtorchでis_avaiable()がFalseを返すのを直したときのこと

Windowsで機械学習で有名なpytorchのc++ apiであるlibtorchを使い始めたが、たびたび???となることにぶつかる。

直近で当たったのが、ライブラリのバージョンやドライバーなどちゃんと整えたうえで、CUDAの利用が可否か問う関数、

torch::cuda::is_available()

で、0,falseが返ってきて、なぜか使えないと判定されたことである。

念のために、pythonで、

import torch

torch.cuda.is_avaiable()

を投げると、Trueで返ってくる。

つまり、torch的にも計算機の環境としてはCUDAが整っているのに、Libtorchを通した時におかしいという状態である。

考えてみると、これはDLLが別のものを指している可能性があって、Libtorchのフォルダ内のdllを先に参照できていないことが示唆される。

ということで、システム環境変数のPathを見てみると、libtorch/libが通っていないので、先頭に追加した。

結果、ちゃんと1, Trueが返ってきて、かつ、

device_type = torch::kCUDA;

torch::Device device(device_type);

model->to(device);

cout << "Is module CUDA? " << model->parameters()[0].is_cuda() << endl;

によって、GPUへの転送もうまくいっていることを確認できた。