DavisMeee / LighTDiff

LighTDiff: Surgical Endoscopic Image Low-Light Enhancement with T-Diffusion
MIT License
14 stars 0 forks source link

No object nameed 'LightDIff' found in 'model' registry #2

Closed yangh0119 closed 3 months ago

yangh0119 commented 3 months ago

65294e54101a4dd47d16530ccbd5f62 I have changed all 'pydiff' to 'lightdiff', but there are new errors. How should I solve this problem?

DavisMeee commented 3 months ago

with lowercase instead of all uppercases I think. Or you can re-clone our fixed version.

yangh0119 commented 3 months ago

Thank you for your response.!!! I found the issue. In lightdiff_model.py, the class you registered is LighTDiff, but in train.yaml, you set the type as LightDiff e00c663a2d976c08fc39681ee6929e3 075c9121167771433ad034daa3919e1

DavisMeee commented 3 months ago

Oh, thank you so much! I will fix that!

yangh0119 commented 3 months ago

I'm sorry to bother you again. I encountered this error while training my own model. 01f7d390302359df838a78090856083

Here is my train.yml configuration file. How should I resolve this issue? 47f17f442bd11fc6fc7c568266774c8

DavisMeee commented 3 months ago

I am not sure about this. It seems like an 'opt' key error. It would help if you dived into to the basicsr code to check out.

yangh0119 commented 3 months ago

I found it !!! The code you submitted has many places where the names have not been changed. a07ae312ba613348b19db29e34c6d31

yangh0119 commented 3 months ago

I found it !!! The code you submitted has many places where the names have not been changed. a07ae312ba613348b19db29e34c6d31

This way it can be trained.