prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Add YOLOX backbones
  Add small, large, and xlarge backbones to the YOLOX model
  
  </issue>
  <code>
  [start of icevision/models/mmdet/models/yolox/backbones/resnet_fpn.py]
  1 __all__ = [
  2     "yolox_tiny_8x8",
  3 ]
  4 
  5 from icevision.imports import *
  6 from icevision.models.mmdet.utils import *
  7 
  8 
  9 class MMDetYOLOXBackboneConfig(MMDetBackboneConfig):
  10     def __init__(self, **kwargs):
  11         super().__init__(model_name="yolox", **kwargs)
  12 
  13 
  14 base_config_path = mmdet_configs_path / "yolox"
  15 base_weights_url = "https://download.openmmlab.com/mmdetection/v2.0/yolox/"
  16 
  17 yolox_tiny_8x8 = MMDetYOLOXBackboneConfig(
  18     config_path=base_config_path / "yolox_tiny_8x8_300e_coco.py",
  19     weights_url=f"{base_weights_url}yolox_tiny_8x8_300e_coco/yolox_tiny_8x8_300e_coco_20210806_234250-4ff3b67e.pth",
  20 )
  21
  [end of icevision/models/mmdet/models/yolox/backbones/resnet_fpn.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/icevision/models/mmdet/models/yolox/backbones/resnet_fpn.py b/icevision/models/mmdet/models/yolox/backbones/resnet_fpn.py
  --- a/icevision/models/mmdet/models/yolox/backbones/resnet_fpn.py
  +++ b/icevision/models/mmdet/models/yolox/backbones/resnet_fpn.py
  @@ -1,5 +1,8 @@
   __all__ = [
       "yolox_tiny_8x8",
  +    "yolox_s_8x8",
  +    "yolox_l_8x8",
  +    "yolox_x_8x8",
   ]
   
   from icevision.imports import *
  @@ -18,3 +21,18 @@
       config_path=base_config_path / "yolox_tiny_8x8_300e_coco.py",
       weights_url=f"{base_weights_url}yolox_tiny_8x8_300e_coco/yolox_tiny_8x8_300e_coco_20210806_234250-4ff3b67e.pth",
   )
  +
  +yolox_s_8x8 = MMDetYOLOXBackboneConfig(
  +    config_path=base_config_path / "yolox_s_8x8_300e_coco.py",
  +    weights_url=f"{base_weights_url}yolox_s_8x8_300e_coco/yolox_s_8x8_300e_coco_20211121_095711-4592a793.pth",
  +)
  +
  +yolox_l_8x8 = MMDetYOLOXBackboneConfig(
  +    config_path=base_config_path / "yolox_l_8x8_300e_coco.py",
  +    weights_url=f"{base_weights_url}yolox_l_8x8_300e_coco/yolox_l_8x8_300e_coco_20211126_140236-d3bd2b23.pth",
  +)
  +
  +yolox_x_8x8 = MMDetYOLOXBackboneConfig(
  +    config_path=base_config_path / "yolox_x_8x8_300e_coco.py",
  +    weights_url=f"{base_weights_url}yolox_x_8x8_300e_coco/yolox_x_8x8_300e_coco_20211126_140254-1ef88d67.pth",
  +)
  
verification_info: {"golden_diff": "diff --git a/icevision/models/mmdet/models/yolox/backbones/resnet_fpn.py b/icevision/models/mmdet/models/yolox/backbones/resnet_fpn.py\n--- a/icevision/models/mmdet/models/yolox/backbones/resnet_fpn.py\n+++ b/icevision/models/mmdet/models/yolox/backbones/resnet_fpn.py\n@@ -1,5 +1,8 @@\n __all__ = [\n     \"yolox_tiny_8x8\",\n+    \"yolox_s_8x8\",\n+    \"yolox_l_8x8\",\n+    \"yolox_x_8x8\",\n ]\n \n from icevision.imports import *\n@@ -18,3 +21,18 @@\n     config_path=base_config_path / \"yolox_tiny_8x8_300e_coco.py\",\n     weights_url=f\"{base_weights_url}yolox_tiny_8x8_300e_coco/yolox_tiny_8x8_300e_coco_20210806_234250-4ff3b67e.pth\",\n )\n+\n+yolox_s_8x8 = MMDetYOLOXBackboneConfig(\n+    config_path=base_config_path / \"yolox_s_8x8_300e_coco.py\",\n+    weights_url=f\"{base_weights_url}yolox_s_8x8_300e_coco/yolox_s_8x8_300e_coco_20211121_095711-4592a793.pth\",\n+)\n+\n+yolox_l_8x8 = MMDetYOLOXBackboneConfig(\n+    config_path=base_config_path / \"yolox_l_8x8_300e_coco.py\",\n+    weights_url=f\"{base_weights_url}yolox_l_8x8_300e_coco/yolox_l_8x8_300e_coco_20211126_140236-d3bd2b23.pth\",\n+)\n+\n+yolox_x_8x8 = MMDetYOLOXBackboneConfig(\n+    config_path=base_config_path / \"yolox_x_8x8_300e_coco.py\",\n+    weights_url=f\"{base_weights_url}yolox_x_8x8_300e_coco/yolox_x_8x8_300e_coco_20211126_140254-1ef88d67.pth\",\n+)\n", "issue": "Add YOLOX backbones\nAdd small, large, and xlarge backbones to the YOLOX model\n", "before_files": [{"content": "__all__ = [\n    \"yolox_tiny_8x8\",\n]\n\nfrom icevision.imports import *\nfrom icevision.models.mmdet.utils import *\n\n\nclass MMDetYOLOXBackboneConfig(MMDetBackboneConfig):\n    def __init__(self, **kwargs):\n        super().__init__(model_name=\"yolox\", **kwargs)\n\n\nbase_config_path = mmdet_configs_path / \"yolox\"\nbase_weights_url = \"https://download.openmmlab.com/mmdetection/v2.0/yolox/\"\n\nyolox_tiny_8x8 = MMDetYOLOXBackboneConfig(\n    config_path=base_config_path / \"yolox_tiny_8x8_300e_coco.py\",\n    weights_url=f\"{base_weights_url}yolox_tiny_8x8_300e_coco/yolox_tiny_8x8_300e_coco_20210806_234250-4ff3b67e.pth\",\n)\n", "path": "icevision/models/mmdet/models/yolox/backbones/resnet_fpn.py"}]}