-
Notifications
You must be signed in to change notification settings - Fork 805
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
about running predict.py #58
Comments
Hi! I'm not sure that I understand your problem and question. Could you please post the command you run and the stack trace? |
@windj007 I'm having a similar issue while I run the model on the local machine. Let me know what I should do about it. ** Initial Lines from shell
Detectron v2 is not installed
[2021-12-13 01:26:17,758][saicinpainting.utils][WARNING] - Setting signal 10 handler <function print_traceback_handler at 0x7fee50be7040>
[2021-12-13 01:26:17,780][root][INFO] - Make training model default
[2021-12-13 01:26:17,780][saicinpainting.training.trainers.base][INFO] - BaseInpaintingTrainingModule init called
[2021-12-13 01:26:17,781][root][INFO] - Make generator ffc_resnet
[2021-12-13 01:26:18,175][saicinpainting.training.trainers.base][INFO] - Generator
FFCResNetGenerator(
(model): Sequential(
(0): ReflectionPad2d((3, 3, 3, 3))
(1): FFC_BN_ACT(
(ffc): FFC(
(convl2l): Conv2d(4, 64, kernel_size=(7, 7), stride=(1, 1), bias=False, padding_mode=reflect)
(convl2g): Identity()
(convg2l): Identity()
(convg2g): Identity()
(gate): Identity()
)
*****
Lines of model architecture
*****
** last few lines
(33): ReflectionPad2d((3, 3, 3, 3))
(34): Conv2d(64, 3, kernel_size=(7, 7), stride=(1, 1))
(35): Sigmoid()
)
)
[2021-12-13 01:26:18,175][saicinpainting.training.trainers.base][INFO] - BaseInpaintingTrainingModule init done
[2021-12-13 01:26:18,830][saicinpainting.training.data.datasets][INFO] - Make val dataloader default from /path/to/lama_model/input/
|
@yyyyojiro I have installed Detectron 2 as it was asking. Still, isn't working. python -m pip install 'git+https://github.com/facebookresearch/detectron2.git' |
thanks for your brilliant work and reply. I find that when I don't use gpu for predicting, it works. @SaiNikhileshReddy |
Sorry for the late reply again))
This is just a warning - it should not break training/prediction
This means that there is an error in any of the YAML files. Did you change any of the configs? |
I'm facing the similar error: Bad key "text.kerning_factor" on line 4 in Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.` @windj007 any idea to solve the problem? |
Hi! That's strange... The lines about detectron and matplotlib are just warnings, they should not break anything. Did you check the versions of the libraries installed and that they do not conflict with those set in requirements.txt? Could you please run it as |
I had the same error as the OP on Windows, fixed it by enter the arguments into configs/prediction/default.yaml and commenting out line 41 of predict.py |
I simply solve the problem by downgrading pyyaml to version 5.4. Thanks for your reply. |
Hi! iIs the problem resolved currently? If yes, please let me know so I can close the issue |
Hi, I got some problems. @windj007 Detectron v2 is not installed Can you help me fixing this problem, please? |
Command: Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace. Still getting this error. |
Can you please tell us the changes you make in |
I have the same error,did someone solved it? |
@abdullah-rashid62 I just changed the indir/outdir/path lines from no to the paths I wanted to use instead of inputting them through CLI. |
It's completely not the similar issue, man |
Put all configs into configs/prediction/defaults.yaml instead of CLI could solve the issue |
Anyone found solution for windows? |
Not working :( |
To solve this issue you need to use this two steps, Step-1: As @callanrocks mentioned, comment out line 41 of Step-2: Issue on windows OS is, it requires full path instead of relative path. So in Doing so shall solve the issue. @windj007 @arnavmehta7 @abdullah-rashid62 @yumengWang112 |
detectron2 |
TY @moniltusharshah ! |
Thanks for your brilliant work, and when I run predict.py, the errors occured.
Detectron v2 is not installed
mismatched input '(' expecting
See https://hydra.cc/docs/next/advanced/override_grammar/basic for details
Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
how could I solve it, thanks!
The text was updated successfully, but these errors were encountered: