Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Training subprocess has returncode of 1 even though successful training #1193

@roomrys

Description

@roomrys

Discussed in #1186

Originally posted by sssua-sx February 23, 2023
hi.
when i clicked [run training ] and set up some parameter to click [run] , i saw a new interface. But it pops up very quickly that "An error occurred while training centroid. Your command lineterminal may have more information about the error",and the interface disappeared. I didn't find an error in the terminal and the terminal kept running until I saw that "Finished training centered_instance." I don't know what I'm supposed to do and I don't see any changes in the training video.

thanks!
7a8b28592133fe54e0562e441ba545c
image

Problem Analysis

I experienced the same issue and found that it is due to a proc.returncode of 1 even though the operation was seemingly successful (i.e., checking the predictions in the Saved predictions: ... file, the predictions look good).

if proc.returncode == 0:
ret = "success"
else:
ret = proc.returncode
print("Run Path:", run_path)
return run_path, ret

I am looking into this issue to see what may have changed to cause this, although I have an inkling it is this line.

Liezl

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions