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

ValueError"The given initializer function expects the following args ['self', 'shape', 'dtype', 'partition_info']" about run command #54

Open
Fufang-QIU opened this issue Jun 8, 2023 · 1 comment

Comments

@Fufang-QIU
Copy link

Hi, I am trying to run updated hovernet_inference using the command
python run.py --gpu='0' --mode='tile' --model='hovernet.npz' --input_dir='input_dir' --output_dir', but I faced the error like this ValueError: You can only pass an initializer function that expects no arguments to its callable when the shape is not fully defined. The given initializer function expects the following args ['self', 'shape', 'dtype', 'partition_info'].

can you help to figure out what is wrong?

@cappadavide
Copy link

Hi, I am trying to run updated hovernet_inference using the command python run.py --gpu='0' --mode='tile' --model='hovernet.npz' --input_dir='input_dir' --output_dir', but I faced the error like this ValueError: You can only pass an initializer function that expects no arguments to its callable when the shape is not fully defined. The given initializer function expects the following args ['self', 'shape', 'dtype', 'partition_info'].

can you help to figure out what is wrong?

@Fufang-QIU here's an example of command usage:
python run.py --gpu='0' --mode='tile' --model='monusac.npz' --input_dir='D:\Datasets\test\input' --output_dir='D:\Datasets\test\output' --return_probs

Does it help you?

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

2 participants