Coldog2333 / pytoflow

The py version of toflow → https://github.com/anchen1011/toflow
MIT License
107 stars 31 forks source link

TypeError: __init__() missing 1 required positional argument: 'task' #10

Closed dilipv09 closed 4 years ago

dilipv09 commented 4 years ago

Facing below error while attempting to use 'run.py'. command- python run.py --f1 example/im1.png --f2 example/im3.png --o example/out.png --gpuID 0

Error- Loading TOFlow Net... Traceback (most recent call last): File "run.py", line 112, in net = TOFlow(intPreprocessedHeight, intPreprocessedWidth, cuda_flag=CUDA) TypeError: init() missing 1 required positional argument: 'task'

Any help. Thanks!!

Coldog2333 commented 4 years ago

You can try to add an arg task='interp' to solve this problem. Noted that the codes in ./unstable were not tested, so you may debug by yourself if you want to use the codes.

dilipv09 commented 4 years ago

I tried that too but still facing the same problem.

Best regards, Dilip Verma

On Sun, Feb 2, 2020, 1:47 AM Coldog notifications@github.com wrote:

You can try to add an arg task='interp' to solve this problem. Noted that the codes in ./unstable were not tested, so you may debug by yourself if you want to use the codes.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Coldog2333/pytoflow/issues/10?email_source=notifications&email_token=ANUBMP2H246Y6L32HNCQRPDRAZT7DA5CNFSM4KOXKDDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKRPIKI#issuecomment-581104681, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANUBMPZRSQLOHTGDJ4LRMD3RAZT7DANCNFSM4KOXKDDA .

Coldog2333 commented 4 years ago

I tried. Though there were other bugs, this problem was solved. Please debug it by yourself now, since I am busy with other stuff these days.