@manycore/aholo-splat-transform 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # ChangeLOG
2
2
 
3
+ ## 1.2.7
4
+
5
+ - `ReadTask`支持`maxShDegree`参数
6
+
3
7
  ## 1.2.6
4
8
 
5
9
  - 体素化新增 cpu 实现以及部分算法优化
package/README.md CHANGED
@@ -13,6 +13,8 @@ A 3DGS modifier used by aholo
13
13
  ## Usage
14
14
 
15
15
  ```bash
16
+ npm install @manycore/aholo-splat-transform -g
17
+
16
18
  splat-transform --help
17
19
 
18
20
  Execute a task pipeline from configuration file
@@ -31,3 +33,7 @@ Commands:
31
33
  lod:auto [options] <input> <output> Generate auto-lod for gaussian splat file
32
34
  lod:auto-chunk [options] <input> <output> Generate auto-chunk-lod for gaussian splat file
33
35
  ```
36
+
37
+ ## Notice
38
+
39
+ The code of the tool(AKA. `@manycore/aholo-splat-transform`) is not open source, you may use the the tool to generate content for any purpose, but you cannot redistribute the tool.
@@ -2,6 +2,7 @@ import { Context, BaseTask } from './BaseTask.js';
2
2
  export interface Config {
3
3
  inputs: string[];
4
4
  output: string;
5
+ maxShDegree?: number;
5
6
  }
6
7
  export declare class ReadTask extends BaseTask<Config> {
7
8
  exec(config: Config, { logger, resources }: Context): Promise<void>;
@@ -5,8 +5,8 @@ import { createSplatFile } from '../utils/index.js';
5
5
  import { BaseTask } from './BaseTask.js';
6
6
  export class ReadTask extends BaseTask {
7
7
  async exec(config, { logger, resources }) {
8
- const { inputs, output } = config;
9
- const splat = new SplatData(inputs.length);
8
+ const { inputs, output, maxShDegree } = config;
9
+ const splat = new SplatData(inputs.length, maxShDegree);
10
10
  const promises = [];
11
11
  let totalBytes = 0;
12
12
  for (let i = 0; i < inputs.length; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manycore/aholo-splat-transform",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Transform & filter Gaussian splats file",
5
5
  "author": "egs",
6
6
  "license": "UNLICENSED",
@@ -16,11 +16,9 @@
16
16
  "CHANGELOG.md"
17
17
  ],
18
18
  "dependencies": {
19
- "cmake-js": "^8.0.0",
20
19
  "commander": "^14.0.2",
21
20
  "fflate": "^0.8.2",
22
21
  "fs-extra": "^11.3.3",
23
- "node-addon-api": "^8.6.0",
24
22
  "tslib": "^2.8.1",
25
23
  "webgpu": "^0.4.0"
26
24
  },