-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpaceCadet.jl
48 lines (40 loc) · 1.57 KB
/
SpaceCadet.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@time using Pkg
try pkg"activate ." catch
pkg"instantiate"; pkg"activate ." end
@time using ImageSegmentation: fast_scanning, felzenszwalb, seeded_region_growing,
prune_segments, segment_pixel_count, labels_map, segment_mean, segment_labels,
SegmentedImage
@time using FreeTypeAbstraction: renderstring!, newface, FreeType
@time using Images: save, load, height, width, Gray, GrayA, RGB, N0f8, FixedPointNumbers
@time using Gadfly: plot, inch, draw, SVG, Guide.xlabel, Guide.ylabel, Geom.bar,
Scale.y_log10
@time using Blink: Page, Window, title, size, body!, loadcss!, js, tools, msg, handle,
JSString, @js_, @js
@time using ImageTransformations: imresize
@time using DataFrames: DataFrame
@time using AssetRegistry: register
@time using BSON: @save, @load
@time using Random: seed!
@time using CSV: write
@time using Dates: now
@time using ColorTypes
@time using CuArrays
@time using Interact
@time using Interact: node
@time using Flux
@time using Flux: crossentropy, Conv, train!, @epochs
@time using Metalhead
#@time using Logging # not compiled, not traced!
println("Packages loaded. Starting SpaceCadet v0.1, please wait...")
try close(w) catch end
w = Window(async=true) # Dict("webPreferences"=>Dict("webSecurity"=>false)))
title(w, "SpaceCadet.jl v0.1"); size(w, 1200, 800);
include("./src/funcs.jl")
include("./src/ui.jl")
include("./src/events.jl")
include("./src/models.jl")
body!(w, ui["html"])
println("...complete! Coded with ♡ by [email protected] 2019.")
# Diag tools
# tools(w)
# @time using Debugger