(name, rm_dot=False)
| 11 | |
| 12 | |
| 13 | def processed_name(name, rm_dot=False): |
| 14 | # _ for lvis |
| 15 | # / for obj365 |
| 16 | res = name.replace("_", " ").replace("/", " or ").lower() |
| 17 | if rm_dot: |
| 18 | res = res.rstrip(".") |
| 19 | return res |
| 20 | |
| 21 | |
| 22 | single_template = ["a photo of a {}."] |
no outgoing calls
no test coverage detected