ShijieZhou-UCLA / feature-3dgs

[CVPR 2024 Highlight] Feature 3DGS: Supercharging 3D Gaussian Splatting to Enable Distilled Feature Fields
Other
374 stars 23 forks source link

Error for running render.py with editing #44

Closed Deaddawn closed 3 weeks ago

Deaddawn commented 2 months ago

Hi, i run: python render.py -s data/bicycle/ -m output/bicycle_lseg_512/ -f lseg --iteration 4000 --edit_config configs/edit_deletion_1.yaml

then encounter : Reading camera 194/194 [20/09 02:46:09] │·· Loading Training Cameras [20/09 02:46:09] │·· [ INFO ] Encountered quite large input images (>1.6K pixels width), rescaling to 1.6K. │·· If this is not desired, please explicitly specify '--resolution/-r' as 1 [20/09 02:46:09] │·· Loading Test Cameras [20/09 02:47:27] │·· not skip train.... [20/09 02:47:54] │·· {'edit': {'objects': ['bench', 'tree', 'bicycle'], 'operations': 'deletion', 'targets': 'bench', 'threshold': 0.198}} [20/09 02:47:54] │·· Rendering progress: 0%| | 0/194 [00:02<?, ?it/s]│·· Traceback (most recent call last): │·· File "render.py", line 406, in │·· render_sets(model.extract(args), args.iteration, pipeline.extract(args), args.skip_train, args.skip_test, args.novel_view, │·· File "render.py", line 369, in render_sets │·· render_set(dataset.model_path, "train", scene.loaded_iter, scene.getTrainCameras(), gaussians, pipeline, background, edit_config, dataset.speedup) │·· File "render.py", line 130, in render_set │·· render_pkg = render_edit(view, gaussians, pipeline, background, text_feature, edit_dict) │·· File "/data/midjourney/fukunyin/fdu/feature-3dgs/gaussian_renderer/init.py", line 152, in render_edit │·· rendered_image, feature_map, radii = rasterizer( │·· ValueError: too many values to unpack (expected 3)

Can you take a look at this

Deaddawn commented 2 months ago

Anyone encounter this problem?

KL-2 commented 1 month ago

Have you solved it? I met the same problem.

Deaddawn commented 1 month ago

Have you solved it? I met the same problem.

Unfortunately no, but I suspect that the problem lies in the code of rasterize in diff submodule.

Deaddawn commented 1 month ago

@ShijieZhou-UCLA This should be a bug, mind taking a look?

ShijieZhou-UCLA commented 3 weeks ago

Sorry for the late reply! I believe it is fixed now, please kindly check!

Deaddawn commented 3 weeks ago

It's OK now, thanks.