Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typeerror when train by myself with "./experiments/scripts/train_faster_rcnn.sh 0 pascal_voc res101" #141

Open
fuchuanguang opened this issue May 17, 2019 · 1 comment

Comments

@fuchuanguang
Copy link

Solving...
Loading initial model weights from data/imagenet_weights/res101.pth
Loaded.
Traceback (most recent call last):
File "./tools/trainval_net.py", line 164, in
max_iters=args.max_iters)
File "/home/fucg/pytorch/pytorch-faster-rcnn/tools/../lib/model/train_val.py", line 393, in train_net
sw.train_model(max_iters)
File "/home/fucg/pytorch/pytorch-faster-rcnn/tools/../lib/model/train_val.py", line 286, in train_model
self.net.train_step_with_summary(blobs, self.optimizer)
File "/home/fucg/pytorch/pytorch-faster-rcnn/tools/../lib/nets/network.py", line 501, in train_step_with_summary
summary = self._run_summary_op()
File "/home/fucg/pytorch/pytorch-faster-rcnn/tools/../lib/nets/network.py", line 348, in _run_summary_op
summaries.append(self._add_gt_image_summary())
File "/home/fucg/pytorch/pytorch-faster-rcnn/tools/../lib/nets/network.py", line 67, in _add_gt_image_summary
image[0].astype('float32') / 255.0, dataformats='HWC')
TypeError: image() got an unexpected keyword argument 'dataformats'
Command exited with non-zero status 1
5.52user 4.88system 0:14.29elapsed 72%CPU (0avgtext+0avgdata 1809768maxresident)k
0inputs+1280outputs (0major+409618minor)pagefaults 0swaps

@jiafw
Copy link

jiafw commented Jun 9, 2019

If you use the tensorboardX==1.6,you can solve this problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants