menyifang / DCT-Net

Official implementation of "DCT-Net: Domain-Calibrated Translation for Portrait Stylization", SIGGRAPH 2022 (TOG); Multi-style cartoonization
Apache License 2.0
752 stars 75 forks source link

TypeError: __init__() got an unexpected keyword argument 'allowed_methods' #22

Closed qiu-bot closed 1 year ago

qiu-bot commented 1 year ago

I used the official colab demo but got this error

image
menyifang commented 1 year ago

try: !pip install urllib3 --upgrade !pip install requests --upgrade !pip install --upgrade "modelscope[cv]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html Then restart the runtime for it to work.

or replace modelscope install with: !pip install "modelscope[cv]==0.4.7" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html

qiu-bot commented 1 year ago

Thinks. Can you update the current supplement to the readme?

qiu-bot commented 1 year ago

I run success with

!pip install "modelscope[cv]==0.4.7" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html