Skip to content

Instantly share code, notes, and snippets.

View ritazh's full-sized avatar
🎯
Focusing

Rita Zhang ritazh

🎯
Focusing
View GitHub Profile
'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- created cats/ and dogs/ subfolders inside train/ and validation/
- put the cat pictures index 0-999 in data/train/cats

1. Create k8s cluster

  • Use my fork of ACS-Engine on the k8s-gpu-flag branch
  • Launch and build ACS-Engine, and customize the kubernetes example template to have NC6 VMs (example
  • Create RG: az group create --name k8s --location southcentralus (or other region with GPU)
  • Deploy the generated template az group deployment create --ressource-group k8s --template-file azuredeploy.json --parameters @azuredeploy.pamareters.json

2. Install drivers

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
Configuring TestNG with: TestNG652Configurator
Starting test testAllContains(org.jclouds.azurecompute.arm.AzureComputeProviderMetadataTest)
Starting test testWithId(org.jclouds.azurecompute.arm.AzureComputeProviderMetadataTest)
Starting test testOfApiContains(org.jclouds.azurecompute.arm.AzureComputeProviderMetadataTest)
Starting test testTransformableToContains(org.jclouds.azurecompute.arm.AzureComputeProviderMetadataTest)
[pool-1-thread-1] Test testAllContains(org.jclouds.azurecompute.arm.AzureComputeProviderMetadataTest) succeeded: 10ms
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*