Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render.py - delete some object,error occurs in parse_edit_config_and_text_encoding #52

Open
fisheatmice opened this issue Nov 29, 2024 · 0 comments

Comments

@fisheatmice
Copy link

when I use config.yaml

edit:
  objects: ["lawn", "tree", "bicycle", "building", "road"]
  operations: "deletion"
  targets: "bicycle" # the target object should be chosen from the object list
  threshold: 0.198 # leave it empty if using argmax
Traceback (most recent call last):
  File "render.py", line 404, in <module>
    render_sets(model.extract(args), args.iteration, pipeline.extract(args), args.skip_train, args.skip_test, args.novel_view, 
  File "render.py", line 368, 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 92, in render_set
    edit_dict, text_feature, target = parse_edit_config_and_text_encoding(edit_config)
  File "render.py", line 86, in parse_edit_config_and_text_encoding
    return edit_dict, text_feature, targets[idx]
IndexError: list index out of range

It seems parse_edit_config_and_text_encoding's return
should be
return edit_dict,text_feature,objects[idx]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant