sampepose / flownet2-tf

FlowNet 2.0: Evolution of Optical Flow Estimation with Deep Networks
MIT License
405 stars 195 forks source link

error: expression must have a constant value #85

Open crazyblacker opened 5 years ago

crazyblacker commented 5 years ago

Hi,everyone: I am a young graduate student studying video object segmentation. I want to generate some optical flow images as inputs of my net. I have taken two or three days to fix bugs. Now, there is only one bug. But I can not find any useful information to resolve it, please help me. The information for this error when make all is as follows: /home/songhuihui/usrs/wanglong/flownet2-tf-master/flo-tf-2.7-env/local/lib/python2.7/site-packages/tensorflow/include/absl/strings/str_cat.h(267): error: expression must have a constant value

Iamanorange commented 5 years ago

https://github.com/sampepose/flownet2-tf/issues/66#issuecomment-443215217

crazyblacker commented 5 years ago

@Iamanorange

#66 (comment)

Thank you for your reply. I have add -DNDEBUG to CFLAGS like this: CFLAGS += -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__ -D_GLIBCXX_USE_CXX11_ABI=0 -DNDEBUG but it isn't helpful. Maybe upgrading from Cuda 8 to 9 can be useful, but I am running my codes on the college's server and don't have root permissions . Is there any other way to resolve the error like modifying Makefile?

Iamanorange commented 5 years ago

If you still get error: expression must have a constant value, it has no relevance with CUDA.

If you get error: identifier "__shfl" is undefined, I have no idea. Both Docker and Anaconda need root permissions.