Skip to content

Commit 29ea327

Browse files
committed
Remove NNlib
1 parent 11b7a32 commit 29ea327

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

Project.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "GaussianSplatting"
22
uuid = "991e6b22-92f0-46ac-8b70-8a93e7beee5d"
3-
version = "1.0.2"
3+
version = "1.1.0"
44
authors = ["Anton Smirnov <[email protected]>"]
55

66
[deps]
@@ -22,7 +22,6 @@ ImageTransformations = "02fcd773-0e25-5acc-982a-7f6622650795"
2222
KernelAbstractions = "63c18a36-062a-441e-b654-da1e3ab1ce7c"
2323
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
2424
ModernGL = "66fc600b-dfda-50eb-8b99-91cfa97b1301"
25-
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
2625
NearestNeighbors = "b8a86587-4115-5ab1-83bc-aa920d37bbce"
2726
NerfUtils = "99c1d5ce-7c61-4a25-a107-a5ade2e2a8e4"
2827
NeuralGraphicsGL = "263f7e6d-e369-49af-a86e-c85638573b76"
@@ -63,7 +62,6 @@ ImageMagick = "1.3"
6362
ImageTransformations = "0.10"
6463
KernelAbstractions = "0.9.34"
6564
ModernGL = "1.1"
66-
NNlib = "0.9"
6765
NearestNeighbors = "0.4"
6866
NerfUtils = "0.2"
6967
NeuralGraphicsGL = "0.5"
@@ -73,5 +71,5 @@ Rotations = "1.7"
7371
SIMD = "3.6"
7472
StaticArrays = "1.9"
7573
VideoIO = "1.1"
76-
Zygote = "=0.7.3"
74+
Zygote = "0.7"
7775
julia = "1.10"

benchmark/pipeline.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import GaussianSplatting as GSP
22

3-
function main(dataset_path::String; scale::Int)
4-
kab = GSP.gpu_backend()
3+
function benchmark(kab, dataset_path::String; scale::Int)
54
@info "Using `$kab` GPU backend."
65

76
dataset = GSP.ColmapDataset(kab, dataset_path; scale,
@@ -31,4 +30,5 @@ function main(dataset_path::String; scale::Int)
3130
end
3231
return
3332
end
34-
main("/home/pxlth/Downloads/360_v2/bicycle"; scale=4)
33+
benchmark(ROCBackend(), "/home/pxlth/Downloads/360_v2/bicycle"; scale=4)
34+
# benchmark(CUDABackend(), "/home/pxl-th/Downloads/360_v2/bicycle"; scale=4)

src/GaussianSplatting.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import CImGui.lib as iglib
3333

3434
import BSON
3535
import ChainRulesCore as CRC
36-
import NNlib
3736
import ImageFiltering
3837
import KernelAbstractions as KA
3938
import NerfUtils as NU

src/rasterization/rasterizer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function (rast::GaussianRasterizer)(
149149
uncertainties::Maybe{AbstractMatrix{Float32}} = nothing,
150150
)
151151
# If rendering outside AD, use non-allocating path.
152-
within_AD = NNlib.within_gradient(means_3d)
152+
within_AD = within_gradient(means_3d)
153153

154154
shs = if within_AD
155155
isempty(sh_remainder) ? sh_color : hcat(sh_color, sh_remainder)

0 commit comments

Comments
 (0)