Skip to content

Instantly share code, notes, and snippets.

View fjenett's full-sized avatar
💤
(offline)

Florian Jenett fjenett

💤
(offline)
View GitHub Profile
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
IMGUR5K is shared as a set of image urls with annotations. This code downloads
diff --git a/model/sample.py b/model/sample.py
index a4254f0..d3ebd0c 100755
--- a/model/sample.py
+++ b/model/sample.py
@@ -23,7 +23,7 @@ else:
output_path = argv[3]
search_method = "greedy" if len(argv) < 5 else argv[4]
-meta_dataset = np.load("{}/meta_dataset.npy".format(trained_weights_path))
+meta_dataset = np.load("{}/meta_dataset.npy".format(trained_weights_path), allow_pickle=True)
@fjenett
fjenett / quick_start_colab.py
Last active February 26, 2022 11:14
RigNet Google Colab
# ---------------------------------------------------------------------------------------------------------
# Name: quick_start.py
# Purpose: An easy-to-use demo. Also serves as an interface of the pipeline.
# RigNet Copyright 2020 University of Massachusetts
# RigNet is made available under General Public License Version 3 (GPLv3), or under a Commercial License.
# Please see the LICENSE README.txt file in the main directory for more information and instruction on using and licensing RigNet.
# ---------------------------------------------------------------------------------------------------------
import os
from sys import platform
I am attesting that this GitHub handle fjenett is linked to the Tezos account tz2UZdhySg9evy3aPcbjDWvi8tXUdPBW4hDF for tzprofiles
sig:spsig1XPHf5jeds9zSa3jR6KUnYHYytGWeef93Ho9qADMi9ETFswiWeeJS8H45Z8TSFFs8mwf8p79tXzHmTY4dhN6jzHwuTaQqM
@fjenett
fjenett / gist:a164f60144206724b887ba8c52799489
Created July 29, 2016 20:05
TRT Fullscreen Bits and Pieces
var winFeature = 'location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes';
window.open('http://www.trt.net.tr/deutsch/tv','null',winFeature);
jQuery('#jwRtmpPlayer_wrapper').css({
position: 'fixed', display: 'block',
top:0,left:0,right:0,bottom:0,
width: '100vw', height: '100vh',
'z-index':9999999
});
jQuery('.at4m-mobile-container').hide();
@fjenett
fjenett / index.js
Last active April 19, 2016 07:33
DevTools Snippets to/from LocalStorage
// when inspecting the inspector ...
// http://stackoverflow.com/questions/12291138/how-do-you-inspect-the-web-inspector-in-chrome#12291163
// in the console
// run this to move snippets into localStorage
InspectorFrontendHost.getPreferences(_ => window.localStorage.setItem('snippetsBackup',_.scriptSnippets));
// run this to restore them again
@fjenett
fjenett / chrome_snippet_gui_export_import_2016.js
Created March 17, 2016 15:12 — forked from soundyogi/2018_chrome_snippet_gui_import_export.js
A snippet to export and import your chrome snippets
void function(){
"use strict"
/*
* Manage and Import / Export snippets from chrome (2016)
* hacked together by: http://github.com/soundyogi
* inspired by: https://github.com/bgrins/devtools-snippets/blob/master/import-export/chrome/devtools_import_export.js
* ALPHA / SILLY SIDE PROJECT
*/
@fjenett
fjenett / .gitignore
Last active October 16, 2015 14:20
Beispiel zur Verwendung von Piecemaker2
node_modules
DS_Store
.nvmrc
.idea
@fjenett
fjenett / run_video_3d.pde
Created August 29, 2015 23:52
Run video and 3D data in parallel
/**
* fjenett - 2015
*/
import org.piecemaker2.api.*;
import org.piecemaker2.models.*;
import java.util.Properties;
import java.util.Date;