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

Creating disconnected execution from pipeline #2000

Closed
brollb opened this issue Mar 11, 2021 · 2 comments
Closed

Creating disconnected execution from pipeline #2000

brollb opened this issue Mar 11, 2021 · 2 comments
Labels

Comments

@brollb
Copy link
Contributor

brollb commented Mar 11, 2021

I am not sure of the root cause but it seems this pipeline:
DeepinScreenshot_select-area_20210311121924

is producing this execution:
DeepinScreenshot_select-area_20210311121452

@brollb brollb added the bug label Mar 11, 2021
@umesh-timalsina
Copy link
Contributor

I know this issue. This happens when there are multiple return statements in your operation's execute method.

@brollb
Copy link
Contributor Author

brollb commented Mar 11, 2021

Hmm... The ComputeFeatures operation doesn't have multiple return statements but it seems like it might be related:

from keras.models import Model

class ComputeFeatures():
    def __init__(self, model):
        self.model = model

    def execute(self, dataset, weights):
        self.model.set_weights(weights)
        X = dataset['X']
        y = dataset['y']
        feature_model = Model(inputs=self.model.inputs, outputs=self.model.layers[-2].output)
        feat = feature_model.predict(X)
        new_dataset = {'X': feat, 'y': y}
        return new_dataset

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

No branches or pull requests

2 participants