Comments (1)
forgot to say, the Opt file compute_lighting.t is like:
local N,UUU = Dim('N', 0), Dim('U-SHIT', 1)
local L_coeffs = Unknown("L_coeffs", opt_float9, {UUU}, 0) --写死9
local D_i = Array('D_i', opt_float, {N}, 1)
local Im = Array('Im', opt_float, {N}, 2)
local N_i = Array('N_i', opt_float3, {N}, 3)
--UsePreconditioner(true)
local G = Graph('G', 4,
'd', {N}, 5,
'p', {UUU}, 6
)
local function DepthValid(idx) return greater(D_i(idx),0) end
local n = N_i(G.d)
local x, y, z = n(0), n(1), n(2)
local L = L_coeffs(G.p)
local light = L(0)
+ L(1) * y
+ L(2) * z
+ L(3) * x
+ L(4) * x * y
+ L(5) * y * z
+ L(6) * (2 * z * z - x * x - y * y)
+ L(7) * z * x
+ L(8) * (x * x - y * y)
--Energy(Select(DepthValid(G.d) , light - Im(G.d), 0.0)) --ERR: invalid conversion from bool to float
--Energy(Select( abs(D_i(G.d)-0) , light - Im(G.d), 0.0)) --ERR: cuda 500
Energy(Select( D_i(G.d) , light - Im(G.d), 0.0)) --ERR: cuda 500
--Energy(light - Im(G.d))
from opt.
Related Issues (20)
- CUDA 10 got a different path for libdevice HOT 13
- how to build, is there a cmake solution HOT 1
- Support running Opt on non default cudaStream HOT 1
- Shape from shading example does not work HOT 4
- Opt examples run significantly slower than CUDA solver HOT 5
- src/terralib.lua:4034: error loading terra module ad from file ../Opt/API/src/ad.t: not enough memory HOT 1
- Indexing images at calculated offset HOT 2
- Is the "Index" function implemented correctly? HOT 1
- Ability to have meshes with boundaries
- Proposition / discussion about introducing hashing data structure support
- Dense image inverse warping HOT 2
- Windows 10: Slow performance in imageWrapping example with different Terra version HOT 1
- Help with robust_nonrigid_alignment
- Can't work with CUDA 10.1 ?
- A problem when compiled with CUDA11.1 and RTX 3090 HOT 3
- Global variable 'cudalib' is not declared.
- llvm: Invalid value
- Arap mesh deformation strange result HOT 1
- How to build Opt on Windows 10 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opt.