switch to pnpm

This commit is contained in:
Qing 2023-01-25 21:39:44 +08:00
parent f6c70f1543
commit 03dae6a3f4
4 changed files with 14624 additions and 11880 deletions

View File

@ -59,6 +59,6 @@ Only needed if you plan to modify the frontend and recompile yourself.
Frontend code are modified from [cleanup.pictures](https://github.com/initml/cleanup.pictures), You can experience their
great online services [here](https://cleanup.pictures/).
- Install dependencies:`cd lama_cleaner/app/ && yarn`
- Start development server: `yarn start`
- Build: `yarn build`
- Install dependencies:`cd lama_cleaner/app/ && pnpm install`
- Start development server: `pnpm start`
- Build: `pnpm build`

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -129,22 +129,22 @@ if __name__ == '__main__':
'/Users/qing/code/github/lama-cleaner/assets/unwant_person.jpg',
'/Users/qing/code/github/lama-cleaner/assets/unwant_person_clean.jpg'
),
(
'/Users/qing/code/github/lama-cleaner/assets/old_photo.jpg',
'/Users/qing/code/github/lama-cleaner/assets/old_photo_clean.jpg'
),
(
'/Users/qing/code/github/lama-cleaner/assets/unwant_object.jpg',
'/Users/qing/code/github/lama-cleaner/assets/unwant_object_clean.jpg'
),
(
'/Users/qing/code/github/lama-cleaner/assets/unwant_text.jpg',
'/Users/qing/code/github/lama-cleaner/assets/unwant_text_clean.jpg'
),
(
'/Users/qing/code/github/lama-cleaner/assets/watermark.jpg',
'/Users/qing/code/github/lama-cleaner/assets/watermark_cleanup.jpg'
),
# (
# '/Users/qing/code/github/lama-cleaner/assets/old_photo.jpg',
# '/Users/qing/code/github/lama-cleaner/assets/old_photo_clean.jpg'
# ),
# (
# '/Users/qing/code/github/lama-cleaner/assets/unwant_object.jpg',
# '/Users/qing/code/github/lama-cleaner/assets/unwant_object_clean.jpg'
# ),
# (
# '/Users/qing/code/github/lama-cleaner/assets/unwant_text.jpg',
# '/Users/qing/code/github/lama-cleaner/assets/unwant_text_clean.jpg'
# ),
# (
# '/Users/qing/code/github/lama-cleaner/assets/watermark.jpg',
# '/Users/qing/code/github/lama-cleaner/assets/watermark_cleanup.jpg'
# ),
]
for src_p, clean_p in imgs:
img_bytes = make_compare_gif(Image.open(src_p), Image.open(clean_p), max_side_length=600)