This file contains 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
# Replace BRANCH and USERNAME with your branch name and GitHub username respectively | |
git clone -b BRANCH https://github.com/USERNAME/keras.git | |
cd keras | |
pip install -r requirements.txt | |
pip uninstall -y keras-nightly | |
pip install --upgrade tf-nightly |
This file contains 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
mkdir keras_installation | |
cd keras_installation | |
mkdir keras_env | |
python3 -m venv keras_env | |
source keras_env/bin/activate |
This file contains 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
#Install the latest version of Bazel. At the time of writing, the latest version was 4.2.1. | |
wget https://github.com/bazelbuild/bazel/releases/download/4.2.1/bazel-4.2.1-installer-linux-x86_64.sh | |
chmod +x bazel-4.2.1-installer-linux-x86_64.sh | |
./bazel-4.2.1-installer-linux-x86_64.sh | |
export PATH="$PATH:$HOME/bin" | |
bazel |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
. | |
├── train/ | |
│ ├── n01440764/ | |
│ │ ├── n01440764_001.JPEG | |
│ │ ├── n01440764_002.JPEG | |
│ │ └── ... | |
│ ├── n01943899/ | |
│ │ └── ... | |
│ ├── n02105056/ | |
│ │ └── ... |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
"""Script to make and save TFRecords from ImageNet files""" | |
import tensorflow as tf | |
import os | |
import random | |
import json | |
import math | |
import time | |
from .image_utils import * |
NewerOlder