Skip to content

Commit

Permalink
Merge pull request #1188 from solopku/patch-4
Browse files Browse the repository at this point in the history
Create download_cifar100.py
  • Loading branch information
nudles authored Jul 18, 2024
2 parents ef7b196 + a97941f commit 2fd2aa6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions examples/cnn_ms/data/download_cifar100.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env python
#
# 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
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

from download_cifar10 import do_download

if __name__ == '__main__':
dirpath = '/tmp/' # need to specify a local directory
gzfile = dirpath + 'cifar-100-python.tar.gz'
url = 'http://www.cs.toronto.edu/~kriz/cifar-100-python.tar.gz'
do_download(dirpath, gzfile, url)

0 comments on commit 2fd2aa6

Please sign in to comment.