HigherHRNet-Human-Pose-Estimation icon indicating copy to clipboard operation
HigherHRNet-Human-Pose-Estimation copied to clipboard

AssertionError

Open liunian199 opened this issue 4 years ago • 11 comments

when i run,it goes by init stage4.2.fuse_layers,then assertion error occurs

liunian199 avatar May 09 '20 12:05 liunian199

complete sentence can be expressed as"assert(isinstance(orig, torch.nn.Module))"

liunian199 avatar May 10 '20 04:05 liunian199

i run it with only one GPU

liunian199 avatar May 10 '20 04:05 liunian199

i have succeeded,thanks

mytk2012 avatar May 14 '20 13:05 mytk2012

I have also encountered this problem.I tried some methods but they didn't work out. Do you have any successful suggestions?

Janisco-cv avatar May 15 '20 16:05 Janisco-cv

I have encountered this problem too.first the line is "args.world_size = ngpus_per_node * args.world_size"in File "tools/dist_train.py", line 108,so i think the problem is about MULTIPROCESSING_DISTRIBUTED,so i change file config _C.MULTIPROCESSING_DISTRIBUTED to False,the error is gone,but there is a new error"File "tools/dist_train.py", line 196, in main_worker writer_dict['writer'].add_graph(model, (dump_input, ))" ,I think this problem is about tensorboardx.

zeven11 avatar Jun 22 '20 03:06 zeven11

@zeven11 Have you solved your problem? I have the same error writer_dict['writer'].add_graph(model, (dump_input, ))

DuckJ avatar Aug 27 '20 06:08 DuckJ

Layers include None, so assert failed. I commented out this line.

ANGDL avatar Sep 16 '20 07:09 ANGDL

+1 Same error

HoBeom avatar Oct 05 '20 09:10 HoBeom

Layers include None, so assert failed. I commented out this line.

Can you mention what lines of the code you commneted out in the model file?

annie-surla avatar Oct 06 '20 07:10 annie-surla

I have encounterd this problem, too. I modified tensorboardX version 2.1 to 0.8 as below. pip install tensorboardX==0.8

madokainoue1173 avatar Oct 08 '20 04:10 madokainoue1173

@madokainoue1173 Actually i tried with torch==1.5 and tensorboardX==2.0 and it worked for me.

annie-surla avatar Oct 08 '20 05:10 annie-surla