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

How to test trained stage 1 and stage 2 model? #144

Open
ElTocas opened this issue Dec 11, 2024 · 7 comments
Open

How to test trained stage 1 and stage 2 model? #144

ElTocas opened this issue Dec 11, 2024 · 7 comments

Comments

@ElTocas
Copy link

ElTocas commented Dec 11, 2024

I have trained model in specific lr images.

How can i infer the models .prh generated?

Thanks

@0x3f3f3f3fun
Copy link
Collaborator

I will add the code for self-trained model inference today.

@0x3f3f3f3fun
Copy link
Collaborator

Use this command for custom-trained model inference :)

Since DiffBIR needs to support multiple tasks, the inference code may appear somewhat complex. Feel free to ask if you have any questions about the code.

@ElTocas
Copy link
Author

ElTocas commented Dec 12, 2024

First of all, thanks for all the work you have done.

I did the process, and the result is a very black image. I just tested it for 1000 iter on 20 train images, but the result is all black.

Is there something that i missing?

ANJI_fig112 (5)

@0x3f3f3f3fun
Copy link
Collaborator

Can you provide more detailed information?,
such as: (1) your training configuration file; (2) whether your training logs are normal; (3) your inference command.

@GraceZhuuu
Copy link

GraceZhuuu commented Feb 14, 2025

I've encountered the same problem, did you solve it ?
The training logs seem right, but inference result is all black.

i used the default training config, the training logs are normal;
checked the intermediate output, in the apple_cldm function, after 7. Decode generated latents, the output is nan.

@ruiqiyan
Copy link

First of all, thanks for all the work you have done.首先,感谢您所做的所有工作。

I did the process, and the result is a very black image. I just tested it for 1000 iter on 20 train images, but the result is all black.我做了这个过程,结果是一个非常黑的图像。我刚刚在20次火车图像上对其进行了1000次迭代的测试,但结果是黑色的。

Is there something that i missing?我想念的东西吗?

ANJI_fig112 (5)
Have you found the reason?

@ruiqiyan
Copy link

I've encountered the same problem, did you solve it ?我遇到了同样的问题,您解决了吗? The training logs seem right, but inference result is all black.训练日志似乎正确,但推断结果都是黑色的。

i used the default training config, the training logs are normal;我使用了默认的培训配置,训练日志正常; checked the intermediate output, in the apple_cldm function, after 7. Decode generated latents, the output is nan.检查了apple_cldm函数中的中间输出,在7。解码生成的潜在后,输出为NAN。

Have you found the reason?

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

4 participants