Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OUCMachineLearning/OUCML
/ list_categories
Function
list_categories
GAN/datadownloader/dataload.py:21–24 ·
view source on GitHub ↗
(tag)
Source
from the content-addressed store, hash-verified
19
20
21
def
list_categories(tag):
22
url =
'http://lsun.cs.princeton.edu/htbin/list.cgi?tag='
+ tag
23
f = urllib.request.urlopen(url)
24
return
json.loads(f.read())
25
26
27
def
download(out_dir, category, set_name, tag):
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected