Skip to content

factors compression / decompression #8

@ookey

Description

@ookey

Hello,
running your code on scene coffee_martini, I get an error (see below).
My superficial investigation leads me to thinks there's a problem with "factors" parameter compression.

Before compression I've got:
factors: torch.sum(params[:,0]>0)= tensor(3588, device='cuda:0')

After decompression: factors: torch.sum(params[:,0]>0)= tensor(0, device='cuda:0')

I launch the test with ./examples/benchmarks/multigop_gifstream.sh,

SCENE_DIR="<my home>/datasets/Neural3D/"
# Set the directory to store results
RESULT_DIR="<my home>/output/coffee_martini/r2/GIFStream"
# Set the rendering trajectory path
RENDER_TRAJ_PATH="ellipse"
# List of scenes to process
SCENE_LIST="coffee_martini"
# List of entropy lambda values (rate-distortion tradeoff parameter)
ENTROPY_LAMBDA_LIST=(0.0005 0.001 0.002 0.004)
# Data factor for training
DATA_FACTOR=2
# Number of frames per GOP (Group of Pictures)
GOP=60
# The index of the first frame to process
FIRST_FRAME=0
# Total number of frames to process
TOTAL_FRAME=300

Do you have any idea where the problem comes from? Did I do something wrong?

Thanks by advance,
Matthieu Gendrin, Orange Innovation.

PS : the error message I get

runpy.py 196 _run_module_as_main
return _run_code(code, main_globals, None,

runpy.py 86 _run_code
exec(code, run_globals)

__main__.py 71 <module>
cli.main()

cli.py 501 main
run()

cli.py 351 run_file
runpy.run_path(target, run_name="__main__")

pydevd_runpy.py 310 run_path
return _run_module_code(code, init_globals, run_name, pkg_name=pkg_name, script_name=fname)

pydevd_runpy.py 127 _run_module_code
_run_code(code, mod_globals, init_globals, mod_name, mod_spec, pkg_name, script_name)

pydevd_runpy.py 118 _run_code
exec(code, run_globals)

simple_trainer_GIFStream.py 1754 <module>
cli(main, cfg, verbose=True)

distributed.py 360 cli
return _distributed_worker(0, 1, fn=fn, args=args)

distributed.py 295 _distributed_worker
fn(local_rank, world_rank, world_size, args)

simple_trainer_GIFStream.py 1635 main
runner.run_compression(step=step)

_contextlib.py 120 decorate_context
return func(*args, **kwargs)

simple_trainer_GIFStream.py 1487 run_compression
splats_c = self.compression_method.decompress(compress_dir, self.entropy_models, self.device)

gifstream_end2end_compression.py 190 decompress
time_features[choose_idx] = splats["time_features"]

RuntimeError:
shape mismatch: value tensor of shape [3588, 60, 4] cannot be broadcast to indexing result of shape [0, 60, 4]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions