sergeytulyakov / mocogan

MoCoGAN: Decomposing Motion and Content for Video Generation
573 stars 113 forks source link

got segmentation fault when tried to run train .py #6

Closed maniyar2jaimin closed 6 years ago

maniyar2jaimin commented 6 years ago

I follow the steps from wiki and build the environment manually. I am not using docker. I got segmentation fault (core dump) error while running this command python train.py \ --image_batch 32 \ --video_batch 32 \ --use_infogan \ --use_noise \ --noise_sigma 0.1 \ --image_discriminator PatchImageDiscriminator \ --video_discriminator CategoricalVideoDiscriminator \ --print_every 100 \ --every_nth 2 \ --dim_z_content 50 \ --dim_z_motion 10 \ --dim_z_category 4 \ ../data/actions ../logs/actions

Can you please help me regard this

sergeytulyakov commented 6 years ago

Which version of python are you using? Segmentation fault is a very generic error, could provide any details? Like which line causes the error

maniyar2jaimin commented 6 years ago

I am using python 2.7 tensorflow version 1.4 tensorflow-gpu version 1.4 tensorboard 0.4.x numpy 1.13.x

Segmentation Fault (core dump) occurs while executing from trainers import Trainer

sergeytulyakov commented 6 years ago

Still not clear. What about pytorch? Which line in trainer.py causes the error?

maniyar2jaimin commented 6 years ago

version of pytorch 0.20-post3 prebuilt binries compiled with cuda8 when I compile trainers.py separately I did not get any error

but when it is imported in train.py at line no. 56 from trainers import Trainer this segmentation fault is happening

hope this helps

sergeytulyakov commented 6 years ago

@maniyar2jaimin Segmentation fault could mean anything. I suggest you try one of the following things:

  1. Use the provided docker image and see if it works for you
  2. Find the line at which the error actually happens and try to resolve the issue. For this check what happens when you import from trainers. Which line there causes the error. I would assume it cannot import some of the dependencies.
vipulbjj commented 6 years ago

Actually, the error is coming in loggers file while importing tensorflow. I found out this while debugging this error. Please provide a solution @sergeytulyakov Segmentation fault (core dumped)