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

[bug] caller error when interating over cls in factory.py #28

Open
joydeep049 opened this issue Nov 21, 2024 · 0 comments
Open

[bug] caller error when interating over cls in factory.py #28

joydeep049 opened this issue Nov 21, 2024 · 0 comments

Comments

@joydeep049
Copy link

Related Discussion: nyunAI/nyuntam-vision#20 (comment)

In the create_from_dict() method in nyuntam/factory.py, the caller iterating over cls always throws an error. But if we do something like:

cls = get_factories(task, job_service)
if(cls[0]):
    return cls[0](args)
else:    
    raise Exception("Factory instance could not be created.")

This can be done because cls only has a single element. Also, it works locally.

cc @Akash-guna @Arnav0400

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