zyxElsa / InST

Official implementation of the paper “Inversion-Based Style Transfer with Diffusion Models” (CVPR 2023)
Apache License 2.0
532 stars 46 forks source link

train #45

Open OrangeZz0331 opened 10 months ago

OrangeZz0331 commented 10 months ago

When I was training, I encountered the following error:

pytorch_lightning.utilities.exceptions.MisconfigurationException: No test_step() method defined to

It seems like the training has been completed, but there is no way to test it.What should I do? DoI need to modify the code? I also want to know if the training data and test data are the same during training? Run command only have --data_root.

Thank a lot!

OrangeZz0331 commented 10 months ago

This is a screenshot of the error message:

1703850002733
Mofr77 commented 8 months ago

This is a screenshot of the error message: 1703850002733

你训练完成了对吗,你去inst.ipynb去测试,修改两个地方就行,我截个图给你,一个是风格检查点文件的路径,一个是风格图跟内容图的路径,都添加好之后再进行训练。 1

Mofr77 commented 8 months ago

This is a screenshot of the error message: 1703850002733

这个模型是学习一张图片的风格,所以训练的时候只有一个路径,如果您想学习别的风格,您需要重新学习一个风格,就是重新训练网络,测试的时候就把内容图路径放在我刚才给您截图的图片路径里面,这是我的理解。ps:我是小白,有不对的请指正!