|
162 | 162 | "/mnt/petrelfs/liuwenran/develop/mmediting\n",
|
163 | 163 | "Obtaining file:///mnt/petrelfs/liuwenran/develop/mmediting\n",
|
164 | 164 | " Preparing metadata (setup.py) ... \u001b[?25ldone\n",
|
165 |
| - "\u001b[?25hRequirement already satisfied: av in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmedit==1.0.0rc3) (10.0.0)\n", |
166 |
| - "Requirement already satisfied: face-alignment in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmedit==1.0.0rc3) (1.3.5)\n", |
167 |
| - "Requirement already satisfied: facexlib in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmedit==1.0.0rc3) (0.2.5)\n", |
168 |
| - "Requirement already satisfied: lmdb in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmedit==1.0.0rc3) (1.3.0)\n", |
169 |
| - "Requirement already satisfied: lpips in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmedit==1.0.0rc3) (0.1.4)\n", |
170 |
| - "Requirement already satisfied: mmcv>=2.0.0rc1 in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmedit==1.0.0rc3) (2.0.0rc2)\n", |
171 |
| - "Requirement already satisfied: mmengine in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmedit==1.0.0rc3) (0.2.0)\n", |
172 |
| - "Requirement already satisfied: numpy in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmedit==1.0.0rc3) (1.23.4)\n", |
173 |
| - "Requirement already satisfied: opencv-python!=4.5.5.62,!=4.5.5.64 in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmedit==1.0.0rc3) (4.6.0.66)\n", |
174 |
| - "Requirement already satisfied: Pillow in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmedit==1.0.0rc3) (9.2.0)\n", |
175 |
| - "Requirement already satisfied: tensorboard in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmedit==1.0.0rc3) (2.10.1)\n", |
176 |
| - "Requirement already satisfied: torch in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmedit==1.0.0rc3) (1.9.0+cu111)\n", |
177 |
| - "Requirement already satisfied: torchvision in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmedit==1.0.0rc3) (0.10.0+cu111)\n", |
| 165 | + "\u001b[?25hRequirement already satisfied: av in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmagic==1.0.0rc3) (10.0.0)\n", |
| 166 | + "Requirement already satisfied: face-alignment in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmagic==1.0.0rc3) (1.3.5)\n", |
| 167 | + "Requirement already satisfied: facexlib in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmagic==1.0.0rc3) (0.2.5)\n", |
| 168 | + "Requirement already satisfied: lmdb in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmagic==1.0.0rc3) (1.3.0)\n", |
| 169 | + "Requirement already satisfied: lpips in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmagic==1.0.0rc3) (0.1.4)\n", |
| 170 | + "Requirement already satisfied: mmcv>=2.0.0rc1 in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmagic==1.0.0rc3) (2.0.0rc2)\n", |
| 171 | + "Requirement already satisfied: mmengine in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmagic==1.0.0rc3) (0.2.0)\n", |
| 172 | + "Requirement already satisfied: numpy in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmagic==1.0.0rc3) (1.23.4)\n", |
| 173 | + "Requirement already satisfied: opencv-python!=4.5.5.62,!=4.5.5.64 in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmagic==1.0.0rc3) (4.6.0.66)\n", |
| 174 | + "Requirement already satisfied: Pillow in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmagic==1.0.0rc3) (9.2.0)\n", |
| 175 | + "Requirement already satisfied: tensorboard in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmagic==1.0.0rc3) (2.10.1)\n", |
| 176 | + "Requirement already satisfied: torch in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmagic==1.0.0rc3) (1.9.0+cu111)\n", |
| 177 | + "Requirement already satisfied: torchvision in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmagic==1.0.0rc3) (0.10.0+cu111)\n", |
178 | 178 | "Requirement already satisfied: addict in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmcv>=2.0.0rc1->mmedit==1.0.0rc3) (2.4.0)\n",
|
179 | 179 | "Requirement already satisfied: packaging in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmcv>=2.0.0rc1->mmedit==1.0.0rc3) (21.3)\n",
|
180 | 180 | "Requirement already satisfied: yapf in /mnt/petrelfs/liuwenran/miniconda3/envs/py38pt19cu111/lib/python3.8/site-packages (from mmcv>=2.0.0rc1->mmedit==1.0.0rc3) (0.32.0)\n",
|
|
292 | 292 | }
|
293 | 293 | ],
|
294 | 294 | "source": [
|
295 |
| - "from mmedit.edit import MMEdit\n", |
| 295 | + "from mmagic.edit import MMEdit\n", |
296 | 296 | "\n",
|
297 | 297 | "# print all supported models for inference.\n",
|
298 | 298 | "inference_supported_models = MMEdit.get_inference_supported_models()\n",
|
|
485 | 485 | }
|
486 | 486 | ],
|
487 | 487 | "source": [
|
488 |
| - "from mmedit.edit import MMEdit\n", |
| 488 | + "from mmagic.edit import MMEdit\n", |
489 | 489 | "\n",
|
490 | 490 | "# Create a MMEdit instance\n",
|
491 | 491 | "editor = MMEdit('pix2pix')\n",
|
|
564 | 564 | "source": [
|
565 | 565 | "import mmcv\n",
|
566 | 566 | "import matplotlib.pyplot as plt \n",
|
567 |
| - "from mmedit.edit import MMEdit\n", |
| 567 | + "from mmagic.edit import MMEdit\n", |
568 | 568 | "\n",
|
569 | 569 | "result_out_dir = '../resources/output/conditional/tutorial_conditinal_biggan_res_setting1.jpg'\n",
|
570 | 570 | "# configure setting to 1\n",
|
|
614 | 614 | "source": [
|
615 | 615 | "import mmcv\n",
|
616 | 616 | "import matplotlib.pyplot as plt \n",
|
617 |
| - "from mmedit.edit import MMEdit\n", |
| 617 | + "from mmagic.edit import MMEdit\n", |
618 | 618 | "\n",
|
619 | 619 | "result_out_dir = '../resources/output/conditional/tutorial_conditinal_biggan_res_sample6.jpg'\n",
|
620 | 620 | "# use a dict to pass the parameters, num_batches means images output num for one inference\n",
|
|
651 | 651 | "source": [
|
652 | 652 | "import mmcv\n",
|
653 | 653 | "import matplotlib.pyplot as plt \n",
|
654 |
| - "from mmedit.edit import MMEdit\n", |
| 654 | + "from mmagic.edit import MMEdit\n", |
655 | 655 | "\n",
|
656 | 656 | "editor = MMEdit('biggan', model_setting=1) \n",
|
657 | 657 | "editor.print_extra_parameters()\n",
|
|
716 | 716 | "source": [
|
717 | 717 | "import mmcv\n",
|
718 | 718 | "import matplotlib.pyplot as plt \n",
|
719 |
| - "from mmedit.edit import MMEdit\n", |
| 719 | + "from mmagic.edit import MMEdit\n", |
720 | 720 | "\n",
|
721 | 721 | "# Create a MMEdit instance and infer\n",
|
722 | 722 | "result_out_dir = '../resources/output/conditional/tutorial_conditinal_biggan_res.jpg'\n",
|
|
784 | 784 | "source": [
|
785 | 785 | "import mmcv\n",
|
786 | 786 | "import matplotlib.pyplot as plt \n",
|
787 |
| - "from mmedit.edit import MMEdit\n", |
| 787 | + "from mmagic.edit import MMEdit\n", |
788 | 788 | "\n",
|
789 | 789 | "img = '../resources/input/inpainting/celeba_test.png'\n",
|
790 | 790 | "mask = '../resources/input/inpainting/bbox_mask.png'\n",
|
|
867 | 867 | "source": [
|
868 | 868 | "import mmcv\n",
|
869 | 869 | "import matplotlib.pyplot as plt \n",
|
870 |
| - "from mmedit.edit import MMEdit\n", |
| 870 | + "from mmagic.edit import MMEdit\n", |
871 | 871 | "\n",
|
872 | 872 | "img = '../resources/input/matting/GT05.jpg'\n",
|
873 | 873 | "trimap = '../resources/input/matting/GT05_trimap.jpg'\n",
|
|
926 | 926 | "source": [
|
927 | 927 | "import mmcv\n",
|
928 | 928 | "import matplotlib.pyplot as plt \n",
|
929 |
| - "from mmedit.edit import MMEdit\n", |
| 929 | + "from mmagic.edit import MMEdit\n", |
930 | 930 | "\n",
|
931 | 931 | "# Create a MMEdit instance and infer\n",
|
932 | 932 | "img = '../resources/input/restoration/0901x2.png'\n",
|
|
985 | 985 | "source": [
|
986 | 986 | "import mmcv\n",
|
987 | 987 | "import matplotlib.pyplot as plt \n",
|
988 |
| - "from mmedit.edit import MMEdit\n", |
| 988 | + "from mmagic.edit import MMEdit\n", |
989 | 989 | "\n",
|
990 | 990 | "img = '../resources/input/translation/gt_mask_0.png'\n",
|
991 | 991 | "\n",
|
|
1042 | 1042 | "source": [
|
1043 | 1043 | "import mmcv\n",
|
1044 | 1044 | "import matplotlib.pyplot as plt \n",
|
1045 |
| - "from mmedit.edit import MMEdit\n", |
| 1045 | + "from mmagic.edit import MMEdit\n", |
1046 | 1046 | "\n",
|
1047 | 1047 | "# Create a MMEdit instance and infer\n",
|
1048 | 1048 | "result_out_dir = '../resources/output/unconditional/tutorial_unconditional_styleganv1_res.png'\n",
|
|
1082 | 1082 | ],
|
1083 | 1083 | "source": [
|
1084 | 1084 | "import os\n",
|
1085 |
| - "from mmedit.edit import MMEdit\n", |
| 1085 | + "from mmagic.edit import MMEdit\n", |
1086 | 1086 | "from mmengine import mkdir_or_exist\n",
|
1087 | 1087 | "\n",
|
1088 | 1088 | "# Create a MMEdit instance and infer\n",
|
|
1126 | 1126 | ],
|
1127 | 1127 | "source": [
|
1128 | 1128 | "import os\n",
|
1129 |
| - "from mmedit.edit import MMEdit\n", |
| 1129 | + "from mmagic.edit import MMEdit\n", |
1130 | 1130 | "from mmengine import mkdir_or_exist\n",
|
1131 | 1131 | "\n",
|
1132 | 1132 | "# Create a MMEdit instance and infer\n",
|
|
1194 | 1194 | "source": [
|
1195 | 1195 | "import mmcv\n",
|
1196 | 1196 | "import matplotlib.pyplot as plt \n",
|
1197 |
| - "from mmedit.edit import MMEdit\n", |
| 1197 | + "from mmagic.edit import MMEdit\n", |
1198 | 1198 | "\n",
|
1199 | 1199 | "# Create a MMEdit instance and infer\n",
|
1200 | 1200 | "editor = MMEdit(model_name='disco_diffusion')\n",
|
|
0 commit comments