mixed-segdec-net-comind2021 icon indicating copy to clipboard operation
mixed-segdec-net-comind2021 copied to clipboard

ValueError: too many values to unpack (expected 2)

Open haloxing opened this issue 1 year ago • 2 comments

Traceback (most recent call last): File "D:\project\mixed-segdec-net-comind2021-master\train_net.py", line 63, in end2end.train() File "D:\project\mixed-segdec-net-comind2021-master\end2end.py", line 41, in train self.print_run_params() File "D:\project\mixed-segdec-net-comind2021-master\end2end.py", line 363, in print_run_params k, v = l.split(":") ValueError: too many values to unpack (expected 2)

I want to get the solution about this code error.

haloxing avatar Sep 21 '23 08:09 haloxing

Hi, it is possible that the name or value in your configuration settings contains ":" which causes issue with the print_run_params function. You can just disable this function or change the separator at line 362-363 in end2end2.py to something more unique:

for l in sorted(map(lambda e: e[0] + "#$#" + str(e[1]) + "\n", self.cfg.get_as_dict().items())):
    k, v = l.split("#$#")

skokec avatar Sep 22 '23 10:09 skokec

It can be solved,thank you.

haloxing avatar Sep 25 '23 11:09 haloxing