小编Sho*_*hot的帖子

Light Pre-Pass(或Deferred)Pipeline Bug

我和一些人正在XNA 4.0中创建一个简单的游戏(是的,我知道MS不再支持它,但它是由我们的导师提出的要求).最近我写了基于J. Coluna的 Light-Pre Pass Renderer .它工作正常,直到我们添加一些网格与凹凸和反照率地图.现在我们有了奇怪的错误.这里给出了一些例子:

渲染器错误 渲染器错误 渲染器错误

我不知道是什么导致这些文物(绿色/紫色).有时类似的文物发生在地板上,它们是黑色的.你知道渲染器中可能存在什么问题吗?

如果我的帖子不够清楚,请告诉我,我会尝试澄清它.

c# graphics xna

8
推荐指数
1
解决办法
261
查看次数

Dlib 使用 istream 反序列化人脸模型

对于 dlib,我完全是菜鸟。我知道如何直接从文件加载面部形状模型并且它有效。

dlib::shape_predictor face_shape_predictor_;
dlib::deserialize("shape_predictor_68_face_landmarks.dat") >> face_shape_predictor_;
Run Code Online (Sandbox Code Playgroud)

但是如何从 istream 反序列化?

我有以下代码:

dlib::shape_predictor face_shape_predictor_;
std::stringstream face_data_stream;

loadDataToStream(face_data_stream);
dlib::deserialize(face_shape_predictor_, face_data_stream);
Run Code Online (Sandbox Code Playgroud)

我不知道如何让它发挥作用。

c++ opencv face-detection dlib

2
推荐指数
1
解决办法
2593
查看次数

如何教keras神经网络解决sqrt

I'm learning machine learning with python and keras. I created a neural network to predict square root from even integers from range {1, 4, 9, 16, 25, 36, ..., 100}. I've written code to do that, but the results are far from true (whatever number I will provide to the network, it predicts that it's 1.0).

I've tried changing the number of layers, number of neurons in every layer, activation functions, but nothing helped.

Here is the code I've written …

python machine-learning neural-network keras tensorflow

1
推荐指数
1
解决办法
67
查看次数