LexSong

Results 24 comments of LexSong

The way nvr launching neovim doesn't work on windows. For example, this tiny script will launch neovim but you can't interact with it. ``` import os os.execvpe("nvim", ["nvim"], os.environ) ```...

It's really inefficient though. By default `RandomSampler` chooses samples without replacements, so it will generate a random indices list (by `torch.randperm(n).tolist()`) every time we call it. If randomly sampling with...

That's matrix multiplication operator. It basically apply rotation matrix on vertices to align horizon to the Y/Z plane.

You could use `numpy.dot(a, b)` to replace `a @ b`.

It's difficult to convert to Mercator projection correctly. First, Mercator projection have different scale based on latitudes. Therefore you must also scale the height based on each vertex's location. Second,...

A dirty script to convert octants to lat/long bounding box: https://gist.github.com/LexSong/e2830be220542ac637e1ce476e771f79

I have no idea how the z-axis separation works here. We can only assume that the block 210 and 214 both have the same latitude and longitude bounding box, but...

I rewrote `lat_long_to_octant` in my branch here: https://github.com/LexSong/earth-reverse-engineering I'm not familiar with javascript, however I think it may be helpful.

By the way, `node experimental_latlong_to_octant.js 28 87` failed to find the octant.

> What is the logic behind it btw? Just traverse the octree as the original `dump_obj.js`, but only examine possible branches by calculating the bounding box of the child octants....