conansherry / detectron2

detectron2 windows build
Apache License 2.0
223 stars 54 forks source link

model_zoo.get_config_file does not exit #17

Open yeeunsong opened 4 years ago

yeeunsong commented 4 years ago

Hello!

Thanks for implementing Detectron2 for windows10. It would be so hard for me to use Detectron2 without your contribution.

I have a few questions about your implementation.

I could see that you made some changes in the model_zoo.

For example, the below is the facebook's official init.py (detectron2/model_zoo/init.py)

from .model_zoo import get, get_config_file, get_checkpoint_url

__all__ = ["get_checkpoint_url", "get", "get_config_file"]

You can see there is get_config_file and get_checkpoint_url function in the official implementation.

In your detectron2/model_zoo/init.py:

from .model_zoo import get, ModelZooUrls

Could see that you modified it and made a new function ModelZooUrls

Can I ask you why you made this change?
How can I use the get_checkpoint_url and get_config_file function?

WFalala commented 4 years ago

If you look at the detectron2 official version, they have committed changes quite recently which have not been ported to the Win10 version by conansherry. I don't know if can update it manually but I am facing the same issue.

yeeunsong commented 4 years ago

If you look at the detectron2 official version, they have committed changes quite recently which have not been ported to the Win10 version by conansherry. I don't know if can update it manually but I am facing the same issue.

I solved this issue by using the detectron2 official version's model_zoo library. Just copied and pasted the scripts, and it works well.