This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| import Foundation | |
| struct ContentView: View { | |
| // 1. | |
| private var startPoint1 = CGPoint(x: 207, y: 359) | |
| @State private var currentPosition1: CGSize = .zero | |
| @State private var newPosition1: CGSize = .zero | |
| @State private var isDragging1 = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tf2 | |
| channels: | |
| - defaults | |
| dependencies: | |
| - attrs=19.1.0=py36_1 | |
| - backcall=0.1.0=py36_0 | |
| - blas=1.0=mkl | |
| - bleach=3.1.0=py36_0 | |
| - ca-certificates=2019.8.28=0 | |
| - certifi=2019.9.11=py36_0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tf2 | |
| channels: | |
| - defaults | |
| dependencies: | |
| - attrs=19.1.0=py36_1 | |
| - backcall=0.1.0=py36_0 | |
| - blas=1.0=mkl | |
| - bleach=3.1.0=py36_0 | |
| - ca-certificates=2019.8.28=0 | |
| - certifi=2019.9.11=py36_0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tf2 | |
| channels: | |
| - defaults | |
| dependencies: | |
| - attrs=19.1.0=py36_1 | |
| - backcall=0.1.0=py36_0 | |
| - blas=1.0=mkl | |
| - bleach=3.1.0=py36_0 | |
| - ca-certificates=2019.8.28=0 | |
| - certifi=2019.9.11=py36_0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.signal import stft | |
| # Waveform placeholder | |
| waveform = tf.placeholder(name="waveform", dtype=tf.float32, shape=(4000)) | |
| # Compute the spectrogram and get the asolute values | |
| stfts = stft(waveform, frame_length=256, frame_step=64, fft_length=256) | |
| spectrograms = tf.abs(stfts) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.bdl.itri.filebrowserexample.filebrowserexample; | |
| import android.Manifest; | |
| import android.content.Intent; | |
| import android.content.pm.PackageManager; | |
| import android.net.Uri; | |
| import android.os.Build; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.text.method.ScrollingMovementMethod; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from keras import applications | |
| from keras.preprocessing.image import ImageDataGenerator | |
| from keras import optimizers | |
| from keras.models import Sequential, Model | |
| from keras.layers import Dropout, Flatten, Dense, GlobalAveragePooling2D | |
| from keras import backend as k | |
| from keras.callbacks import ModelCheckpoint, LearningRateScheduler, TensorBoard, EarlyStopping | |
| img_width, img_height = 256, 256 | |
| train_data_dir = "data/train" |