zhanghang1989 / zhanghang1989/PyTorch-Encoding

TypeError: __init__() got an unexpected keyword argument 'train'

Open
#233 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2k
Forks
448
PR merge metrics
No merged PRs in 30d

Description

Hello, I am using the statement you provided here
Encoding/experiments/texture.html
python main.py --dataset minc --model deepten_resnet50_minc --nclass 23 --pretrained --eval
Test pre-trained model on MINC-2500
But the following error occurred:
image
What should I do?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Encoding/experiments/texture.html and the main.py command shown in the issue, then rerun the MINC evaluation to capture the full traceback behind the screenshot. Trace the unexpected train argument to its initialization path and verify that the pretrained MINC evaluation completes without this TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.