Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

config.py 328 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  1. from mrcnn.config import Config
  2. from pprint import pprint
  3. class CustomConfig(Config):
  4. def get_config(self):
  5. return self.to_dict()
  6. def __init__(self, model_cfg, verbose=True):
  7. if verbose:
  8. print('Model config: ')
  9. pprint(model_cfg)
  10. for key,v in model_cfg.items():
  11. self.__setattr__(key, v)
  12. super().__init__()
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...