Skip to content

Instantly share code, notes, and snippets.

View ianstenbit's full-sized avatar
🇳🇱

Ian Stenbit ianstenbit

🇳🇱
  • Google
  • Boulder, CO
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ianstenbit
ianstenbit / yolov8-demo.ipynb
Last active April 21, 2023 19:03
[PR Version] yolov8-demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@ianstenbit
ianstenbit / enet-conversion.py
Created December 15, 2022 23:52
Converting EfficientNet Weights
# Loaded with python -i ../path/to/old/efficientnet/impl
old_model = EfficientNetV2S(include_top=True, classes=1000, include_rescaling=False, weights="./classification-v0.h5")
img = tf.random.normal((1, 512, 512, 3))
import keras_cv
import numpy
import h5py
weights = "classification-v0.h5"
@ianstenbit
ianstenbit / sd-music-videos.ipynb
Created December 1, 2022 20:40
SD Music Videos.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ianstenbit
ianstenbit / gist:bdb604eef78907da7d9d8c590a469de8
Created July 27, 2022 22:02
retinanet but using kerasCV
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
defmodule OA do
#######
# API #
#######
def new do
{ :ok, agent } = Agent.start_link(fn -> %{ location_of: %{} } end)
agent
end
@ianstenbit
ianstenbit / ChatClient.ex
Created September 28, 2016 20:50
Chat Client for CSE 5345
defmodule Chat do
def start name do
Node.connect :"dt1@10.8.123.154"
rec = spawn fn -> recMessage end
send {ChatServer, :"dt1@10.8.123.154"}, {rec, :connect, name}
sendMessage(rec)
end
def sendMessage rec do