diff --git a/.gitignore b/ModelTraining/.gitignore similarity index 100% rename from .gitignore rename to ModelTraining/.gitignore diff --git a/FixFileTypes.py b/ModelTraining/FixFileTypes.py similarity index 100% rename from FixFileTypes.py rename to ModelTraining/FixFileTypes.py diff --git a/ImageGatherer.py b/ModelTraining/ImageGatherer.py similarity index 100% rename from ImageGatherer.py rename to ModelTraining/ImageGatherer.py diff --git a/KerasToTensorflow.py b/ModelTraining/KerasToTensorflow.py similarity index 100% rename from KerasToTensorflow.py rename to ModelTraining/KerasToTensorflow.py diff --git a/TestTrainSplit.py b/ModelTraining/TestTrainSplit.py similarity index 100% rename from TestTrainSplit.py rename to ModelTraining/TestTrainSplit.py diff --git a/TrainingModelKeras.py b/ModelTraining/TrainingModelKeras.py similarity index 97% rename from TrainingModelKeras.py rename to ModelTraining/TrainingModelKeras.py index 14c4799..0518b90 100755 --- a/TrainingModelKeras.py +++ b/ModelTraining/TrainingModelKeras.py @@ -120,7 +120,6 @@ test_gen = test_idg.flow_from_directory( ) len(test_gen.filenames) -score = model.evaluate_generator(test_gen, workers=1, steps=len(test_gen)) # predicts predicts = model.predict_generator(test_gen, verbose=True, workers=1, steps=len(test_gen)) @@ -129,9 +128,6 @@ predicts = model.predict_generator(test_gen, verbose=True, workers=1, steps=len( keras_file = 'finished.h5' keras.models.save_model(model, keras_file) -print("Loss: ", score[0], "Accuracy: ", score[1]) -print(score) - print(predicts) print(type(predicts)) print(predicts.shape) @@ -167,3 +163,4 @@ df_cm = pd.DataFrame(conf_mat, index=[i for i in list(set(reals))], plt.figure(figsize=(10, 7)) sn.heatmap(df_cm, annot=True) plt.show() + diff --git a/TransferLearningKeras.py b/ModelTraining/TransferLearningKeras.py similarity index 99% rename from TransferLearningKeras.py rename to ModelTraining/TransferLearningKeras.py index 855b7aa..af0b81f 100755 --- a/TransferLearningKeras.py +++ b/ModelTraining/TransferLearningKeras.py @@ -8,7 +8,7 @@ from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True -input_shape = (299, 299, 3) +input_shape = (244, 244, 3) batch_size = 60 model_name = "MobileNetV2FullDataset" diff --git a/ModelTraining/finished.h5 b/ModelTraining/finished.h5 new file mode 100755 index 0000000..a68517e Binary files /dev/null and b/ModelTraining/finished.h5 differ diff --git a/graphResults.py b/ModelTraining/graphResults.py similarity index 100% rename from graphResults.py rename to ModelTraining/graphResults.py diff --git a/pokemon.csv b/ModelTraining/pokemon.csv similarity index 100% rename from pokemon.csv rename to ModelTraining/pokemon.csv diff --git a/ModelTraining/sub1.csv b/ModelTraining/sub1.csv new file mode 100755 index 0000000..fcb312c --- /dev/null +++ b/ModelTraining/sub1.csv @@ -0,0 +1,284 @@ +fname,prediction,true_val +abra/107-2189546675.jpeg,aipom,abra +abra/108-2236583756.png,aipom,abra +abra/139-6713074833.png,aipom,abra +abra/149-2288996320.jpeg,aipom,abra +abra/16-9549054379.jpeg,aipom,abra +abra/172-3468813760.jpg,alakazam,abra +abra/183-5524447342.png,aipom,abra +abra/2-9970155874.png,azumarill,abra +abra/20-5843023427.jpeg,aipom,abra +abra/217-2397279042.jpg,aipom,abra +abra/244-2785523395.jpg,aipom,abra +abra/250-2589825010.jpg,aipom,abra +abra/314-9629981367.png,azumarill,abra +abra/362-2597183825.png,aipom,abra +abra/380-8413644465.jpg,aipom,abra +abra/418-1049732812.jpg,abra,abra +abra/423-6652374003.png,aipom,abra +abra/433-9674741044.jpg,aipom,abra +abra/434-9568550288.jpeg,aipom,abra +abra/51-7977303910.jpeg,aipom,abra +abra/54-2563836737.jpg,aipom,abra +abra/6-5767544522.jpg,aipom,abra +abra/62-8863884543.jpeg,aipom,abra +abra/87-6366265139.png,alakazam,abra +aerodactyl/465-3210824721.jpeg,alakazam,aerodactyl +aerodactyl/468-2126095359.png,aipom,aerodactyl +aerodactyl/470-2346420859.png,alakazam,aerodactyl +aerodactyl/478-2321497126.png,alakazam,aerodactyl +aerodactyl/488-6908267746.jpeg,alakazam,aerodactyl +aerodactyl/489-9697776749.jpeg,alakazam,aerodactyl +aerodactyl/495-3053133796.jpeg,alakazam,aerodactyl +aerodactyl/498-7989859628.jpeg,alakazam,aerodactyl +aerodactyl/499-5281063449.png,azumarill,aerodactyl +aerodactyl/500-2934377768.png,abra,aerodactyl +aerodactyl/504-8958678554.jpeg,alakazam,aerodactyl +aerodactyl/508-2980739160.jpeg,alakazam,aerodactyl +aerodactyl/515-1440739515.png,alakazam,aerodactyl +aerodactyl/516-8662970679.png,alakazam,aerodactyl +aerodactyl/519-2951716034.png,alakazam,aerodactyl +aerodactyl/547-4122880001.jpeg,alakazam,aerodactyl +aerodactyl/574-5504581237.jpeg,alakazam,aerodactyl +aerodactyl/575-1048779540.jpeg,alakazam,aerodactyl +aerodactyl/589-2902969727.jpeg,aipom,aerodactyl +aerodactyl/606-5806792604.png,aipom,aerodactyl +aerodactyl/608-5131335196.jpeg,alakazam,aerodactyl +aerodactyl/618-4342458124.jpeg,alakazam,aerodactyl +aerodactyl/621-5953319813.jpeg,ampharos,aerodactyl +aerodactyl/628-5720163980.jpeg,ampharos,aerodactyl +aerodactyl/629-3918397835.png,ampharos,aerodactyl +aerodactyl/634-2418332985.jpeg,ampharos,aerodactyl +aerodactyl/648-3316677096.png,ampharos,aerodactyl +aerodactyl/659-1268922181.jpeg,aipom,aerodactyl +aerodactyl/675-9195000543.jpeg,ampharos,aerodactyl +aerodactyl/676-8835461071.jpeg,ampharos,aerodactyl +aerodactyl/685-5361661497.png,azumarill,aerodactyl +aerodactyl/693-5527271760.jpeg,aipom,aerodactyl +aerodactyl/foo12.jpeg.jpeg.jpeg.jpeg,ampharos,aerodactyl +aipom/721-4589020992.png,aipom,aipom +aipom/743-1740865407.jpeg,ampharos,aipom +aipom/753-3615597532.png,ampharos,aipom +aipom/757-5646621475.png,ampharos,aipom +aipom/763-4520430521.png,ampharos,aipom +aipom/765-3141131859.jpeg,ampharos,aipom +aipom/786-6217268769.jpeg,ampharos,aipom +aipom/813-8019022990.jpeg,aipom,aipom +aipom/834-9307489115.jpeg,aipom,aipom +aipom/837-8849897302.jpeg,arbok,aipom +aipom/844-7749073684.png,ampharos,aipom +aipom/846-4755368689.jpeg,arbok,aipom +aipom/848-8115628416.jpeg,arbok,aipom +aipom/849-9051869514.jpeg,arbok,aipom +aipom/853-2833716157.png,arbok,aipom +aipom/856-7224095754.jpeg,arbok,aipom +aipom/865-5866468150.jpeg,aipom,aipom +aipom/875-4980974776.jpeg,aipom,aipom +aipom/894-2612878986.jpeg,ampharos,aipom +aipom/908-8474517286.png,arbok,aipom +aipom/910-3190747727.jpeg,arbok,aipom +aipom/912-6165380912.jpeg,aipom,aipom +aipom/913-8324389664.png,aipom,aipom +aipom/917-8367171558.jpeg,aipom,aipom +aipom/foo11.jpeg.jpeg,arbok,aipom +aipom/foo18.jpeg,aipom,aipom +alakazam/1000-7061962328.jpeg,arbok,alakazam +alakazam/1031-9151272720.jpeg,arbok,alakazam +alakazam/1035-7937090530.jpeg,aipom,alakazam +alakazam/1056-5849835340.jpeg,arbok,alakazam +alakazam/1062-8745297386.jpeg,arbok,alakazam +alakazam/1076-8570605605.jpeg,arbok,alakazam +alakazam/1077-4846293778.jpeg,aipom,alakazam +alakazam/1099-1620808408.jpeg,azumarill,alakazam +alakazam/1112-7078746680.png,arbok,alakazam +alakazam/1118-4108122277.jpeg,arbok,alakazam +alakazam/920-6833713396.png,ampharos,alakazam +alakazam/931-6873778001.png,arcanine,alakazam +alakazam/956-3021990456.jpeg,arcanine,alakazam +alakazam/960-2694340363.jpeg,alakazam,alakazam +alakazam/962-5099480633.jpeg,arcanine,alakazam +alakazam/963-5178274354.jpeg,azumarill,alakazam +alakazam/973-8779204871.jpeg,alakazam,alakazam +alakazam/974-4124440255.jpeg,arcanine,alakazam +alakazam/foo10.jpeg,articuno,alakazam +alakazam/foo212.jpeg,ampharos,alakazam +alakazam/foo218.jpeg,arcanine,alakazam +alakazam/foo5.jpg,arcanine,alakazam +alakazam/foo8.jpg,arcanine,alakazam +ampharos/1174-2202497957.jpeg,alakazam,ampharos +ampharos/1184-1881276205.png,ampharos,ampharos +ampharos/1185-5246231386.jpeg,arcanine,ampharos +ampharos/1230-1657265414.jpeg,abra,ampharos +ampharos/1231-1083799350.png,alakazam,ampharos +ampharos/1242-9664634939.png,azumarill,ampharos +ampharos/1247-1959740808.png,arcanine,ampharos +ampharos/1256-3145285474.png,arcanine,ampharos +ampharos/1260-6169529267.jpeg,aipom,ampharos +ampharos/1267-8822467930.jpeg,aipom,ampharos +ampharos/1277-3214623811.jpeg,arcanine,ampharos +ampharos/1283-6366943215.jpeg,arcanine,ampharos +ampharos/1353-6742653575.png,alakazam,ampharos +ampharos/1359-5113655166.jpeg,alakazam,ampharos +ampharos/foo2.jpg,ariados,ampharos +ampharos/foo6.jpg,abra,ampharos +ampharos/foo9.jpg,arcanine,ampharos +ampharos/foo93.jpg,alakazam,ampharos +arbok/1388-6797829841.jpeg,arcanine,arbok +arbok/1405-6323899503.jpeg,ariados,arbok +arbok/1413-3351309878.png,azumarill,arbok +arbok/1418-8164400474.jpeg,arbok,arbok +arbok/1428-5216845789.png,azumarill,arbok +arbok/1435-9029459638.png,alakazam,arbok +arbok/1449-4122890273.jpeg,azumarill,arbok +arbok/1450-2650813269.jpeg,ariados,arbok +arbok/1451-9879850634.png,abra,arbok +arbok/1461-2551259164.jpeg,ariados,arbok +arbok/1477-2542261184.jpeg,azumarill,arbok +arbok/1479-9196759509.png,ariados,arbok +arbok/1481-7958212812.jpeg,ariados,arbok +arbok/1484-3677226883.png,aipom,arbok +arbok/1489-5005322603.jpeg,ampharos,arbok +arbok/1500-6604716899.jpeg,ariados,arbok +arbok/1518-1780439881.png,aipom,arbok +arbok/1524-1118818965.jpeg,ariados,arbok +arbok/1533-8557716355.jpeg,ariados,arbok +arbok/1537-5644053937.jpeg,ampharos,arbok +arbok/1542-7501328153.jpeg,alakazam,arbok +arbok/1544-1433978852.png,ariados,arbok +arbok/1559-3265605154.jpeg,ampharos,arbok +arbok/1564-5200596997.png,ariados,arbok +arbok/1568-8397767068.jpeg,ariados,arbok +arbok/1575-8974133816.jpeg,ariados,arbok +arbok/1580-9607407200.jpeg,ariados,arbok +arbok/1584-2653445443.jpeg,azumarill,arbok +arbok/1591-7222134783.jpeg,azumarill,arbok +arbok/1596-5831443277.png,articuno,arbok +arcanine/1607-7510579623.png,articuno,arcanine +arcanine/1612-7070481462.png,articuno,arcanine +arcanine/1621-9447641440.jpeg,articuno,arcanine +arcanine/1623-7291071677.png,aipom,arcanine +arcanine/1629-2081851313.jpeg,azumarill,arcanine +arcanine/1646-5782610190.jpeg,alakazam,arcanine +arcanine/1647-3552511619.png,articuno,arcanine +arcanine/1654-1065340850.jpeg,azumarill,arcanine +arcanine/1658-3920956178.jpeg,articuno,arcanine +arcanine/1660-4994017812.png,alakazam,arcanine +arcanine/1661-4640938487.png,articuno,arcanine +arcanine/1662-5919666831.jpeg,articuno,arcanine +arcanine/1664-7884820000.png,articuno,arcanine +arcanine/1680-8034205709.jpeg,azumarill,arcanine +arcanine/1689-5218285906.jpeg,articuno,arcanine +arcanine/1707-4817433995.jpeg,articuno,arcanine +arcanine/1714-9206081098.jpeg,azumarill,arcanine +arcanine/1716-4788773315.jpeg,azumarill,arcanine +arcanine/1732-5439691267.jpeg,azumarill,arcanine +arcanine/1742-7273143996.jpeg,articuno,arcanine +arcanine/1748-7496739913.jpeg,aipom,arcanine +arcanine/1756-9534100354.jpeg,articuno,arcanine +arcanine/1772-3583766923.png,articuno,arcanine +arcanine/1779-8155708087.jpeg,articuno,arcanine +arcanine/1796-2542939891.jpeg,azumarill,arcanine +arcanine/1798-1316101128.jpeg,azumarill,arcanine +arcanine/1799-4037483287.jpeg,alakazam,arcanine +arcanine/1800-4298464904.jpeg,articuno,arcanine +arcanine/1801-5106783677.jpeg,azumarill,arcanine +arcanine/1824-4683113129.jpeg,articuno,arcanine +arcanine/1828-6443271536.png,aipom,arcanine +arcanine/foo1.jpg,azumarill,arcanine +ariados/1835-4688056901.jpeg,azumarill,ariados +ariados/1836-6172413729.jpeg,azumarill,ariados +ariados/1838-9202012379.jpeg,azumarill,ariados +ariados/1849-8842336642.png,azumarill,ariados +ariados/1868-7156106531.png,azumarill,ariados +ariados/1872-1187500170.jpeg,azumarill,ariados +ariados/1891-2764444315.png,azumarill,ariados +ariados/1902-2653071356.jpeg,azumarill,ariados +ariados/1942-8829792665.png,azumarill,ariados +ariados/1952-9193823104.jpeg,azumarill,ariados +ariados/1953-2645380504.jpeg,azumarill,ariados +ariados/1959-3300102490.png,azumarill,ariados +ariados/1981-7496749423.png,azumarill,ariados +ariados/1985-4948471665.png,aipom,ariados +ariados/1991-1777606010.png,azumarill,ariados +ariados/2003-3510735157.png,azumarill,ariados +ariados/2035-5158359644.jpeg,azumarill,ariados +ariados/2039-3431867516.jpeg,aipom,ariados +ariados/2059-7890530597.png,aipom,ariados +ariados/2060-5898858083.png,azumarill,ariados +ariados/2064-6682545262.jpeg,azumarill,ariados +ariados/foo11.jpg,azumarill,ariados +ariados/foo26.jpg,azumarill,ariados +ariados/foo44.jpg,azumarill,ariados +ariados/foo49.jpg,azumarill,ariados +articuno/2073-7809092541.jpeg,azumarill,articuno +articuno/2085-7052761748.jpeg,azumarill,articuno +articuno/2095-6921257459.jpeg,aipom,articuno +articuno/2096-6308378468.png,azumarill,articuno +articuno/2102-1329622956.png,azumarill,articuno +articuno/2107-8053345332.jpeg,azumarill,articuno +articuno/2113-1248647607.jpeg,azumarill,articuno +articuno/2114-6892333372.jpeg,azumarill,articuno +articuno/2125-7749020832.png,azumarill,articuno +articuno/2126-6858278053.png,azumarill,articuno +articuno/2139-9272965198.png,aipom,articuno +articuno/2142-3378770136.png,azumarill,articuno +articuno/2143-2355227677.jpeg,alakazam,articuno +articuno/2151-4399190319.jpeg,alakazam,articuno +articuno/2157-1665701945.jpeg,aipom,articuno +articuno/2164-3966760608.png,aipom,articuno +articuno/2165-4302966565.jpeg,alakazam,articuno +articuno/2174-4540338442.jpeg,alakazam,articuno +articuno/2176-5974052533.jpeg,aipom,articuno +articuno/2181-8410748754.png,alakazam,articuno +articuno/2193-3946018185.png,alakazam,articuno +articuno/2196-5459622128.jpeg,abra,articuno +articuno/2225-8392577088.jpeg,alakazam,articuno +articuno/2228-6870571712.png,arbok,articuno +articuno/2231-7810840201.jpeg,abra,articuno +articuno/2235-3199000946.jpeg,azumarill,articuno +articuno/2236-2271075971.jpeg,abra,articuno +articuno/2244-9237590036.jpeg,abra,articuno +articuno/2248-1457800987.jpeg,abra,articuno +articuno/2256-2321257546.jpeg,azumarill,articuno +articuno/2271-5636228793.jpeg,abra,articuno +articuno/2277-5851728134.jpeg,aipom,articuno +articuno/2278-2389148786.jpeg,abra,articuno +articuno/2288-6629601066.png,abra,articuno +azumarill/2299-9733152769.jpeg,azumarill,azumarill +azumarill/2304-9204876487.jpeg,alakazam,azumarill +azumarill/2306-7645494912.jpeg,alakazam,azumarill +azumarill/2322-5530381780.png,azumarill,azumarill +azumarill/2330-1958535550.png,aerodactyl,azumarill +azumarill/2336-1911923830.jpeg,azumarill,azumarill +azumarill/2341-6394340057.jpeg,azumarill,azumarill +azumarill/2344-2091443238.png,alakazam,azumarill +azumarill/2346-3184441527.png,abra,azumarill +azumarill/2354-1695422158.jpeg,alakazam,azumarill +azumarill/2358-9993711638.png,aipom,azumarill +azumarill/2361-3424510412.jpeg,aerodactyl,azumarill +azumarill/2362-1256305669.png,alakazam,azumarill +azumarill/2366-2433009018.jpeg,aipom,azumarill +azumarill/2370-4294479571.jpeg,aerodactyl,azumarill +azumarill/2372-4696431407.png,ariados,azumarill +azumarill/2381-4791483123.png,aerodactyl,azumarill +azumarill/2386-8098817128.png,alakazam,azumarill +azumarill/2390-6814193569.jpeg,alakazam,azumarill +azumarill/2392-5736579775.jpeg,alakazam,azumarill +azumarill/2395-9990891589.jpeg,azumarill,azumarill +azumarill/2405-8125189326.jpeg,ariados,azumarill +azumarill/2410-6187829728.png,alakazam,azumarill +azumarill/2412-2279205325.jpeg,aipom,azumarill +azumarill/2418-7547370639.jpeg,aerodactyl,azumarill +azumarill/2437-6117801568.jpeg,aerodactyl,azumarill +azumarill/2451-8330388016.jpeg,abra,azumarill +azumarill/2463-6299384668.png,aerodactyl,azumarill +azumarill/2467-6065322189.png,aipom,azumarill +azumarill/2468-5911493502.png,ampharos,azumarill +azumarill/2475-4840849837.jpeg,alakazam,azumarill +azumarill/2487-9173097107.png,aerodactyl,azumarill +azumarill/2495-4765204844.jpeg,aerodactyl,azumarill +azumarill/2501-5072132000.jpeg,arcanine,azumarill +azumarill/2503-8682756505.jpeg,azumarill,azumarill +azumarill/2514-8865586985.jpeg,aipom,azumarill +azumarill/2520-2969850156.png,aipom,azumarill +azumarill/foo7.jpg,aipom,azumarill diff --git a/ModelTraining/sub1_non_transfer.csv b/ModelTraining/sub1_non_transfer.csv new file mode 100755 index 0000000..2d54561 --- /dev/null +++ b/ModelTraining/sub1_non_transfer.csv @@ -0,0 +1,284 @@ +fname,prediction,true_val +abra/107-2189546675.jpeg,articuno,abra +abra/108-2236583756.png,aipom,abra +abra/139-6713074833.png,aipom,abra +abra/149-2288996320.jpeg,aipom,abra +abra/16-9549054379.jpeg,articuno,abra +abra/172-3468813760.jpg,aerodactyl,abra +abra/183-5524447342.png,articuno,abra +abra/2-9970155874.png,aerodactyl,abra +abra/20-5843023427.jpeg,aerodactyl,abra +abra/217-2397279042.jpg,arcanine,abra +abra/244-2785523395.jpg,aerodactyl,abra +abra/250-2589825010.jpg,arbok,abra +abra/314-9629981367.png,aipom,abra +abra/362-2597183825.png,aerodactyl,abra +abra/380-8413644465.jpg,aipom,abra +abra/418-1049732812.jpg,ampharos,abra +abra/423-6652374003.png,aipom,abra +abra/433-9674741044.jpg,aipom,abra +abra/434-9568550288.jpeg,arcanine,abra +abra/51-7977303910.jpeg,aipom,abra +abra/54-2563836737.jpg,aipom,abra +abra/6-5767544522.jpg,aipom,abra +abra/62-8863884543.jpeg,aerodactyl,abra +abra/87-6366265139.png,ampharos,abra +aerodactyl/465-3210824721.jpeg,aerodactyl,aerodactyl +aerodactyl/468-2126095359.png,arbok,aerodactyl +aerodactyl/470-2346420859.png,aerodactyl,aerodactyl +aerodactyl/478-2321497126.png,aerodactyl,aerodactyl +aerodactyl/488-6908267746.jpeg,aipom,aerodactyl +aerodactyl/489-9697776749.jpeg,aerodactyl,aerodactyl +aerodactyl/495-3053133796.jpeg,articuno,aerodactyl +aerodactyl/498-7989859628.jpeg,aerodactyl,aerodactyl +aerodactyl/499-5281063449.png,arcanine,aerodactyl +aerodactyl/500-2934377768.png,aipom,aerodactyl +aerodactyl/504-8958678554.jpeg,aerodactyl,aerodactyl +aerodactyl/508-2980739160.jpeg,aipom,aerodactyl +aerodactyl/515-1440739515.png,aerodactyl,aerodactyl +aerodactyl/516-8662970679.png,arcanine,aerodactyl +aerodactyl/519-2951716034.png,aipom,aerodactyl +aerodactyl/547-4122880001.jpeg,arbok,aerodactyl +aerodactyl/574-5504581237.jpeg,aerodactyl,aerodactyl +aerodactyl/575-1048779540.jpeg,articuno,aerodactyl +aerodactyl/589-2902969727.jpeg,aerodactyl,aerodactyl +aerodactyl/606-5806792604.png,ariados,aerodactyl +aerodactyl/608-5131335196.jpeg,arcanine,aerodactyl +aerodactyl/618-4342458124.jpeg,aerodactyl,aerodactyl +aerodactyl/621-5953319813.jpeg,articuno,aerodactyl +aerodactyl/628-5720163980.jpeg,articuno,aerodactyl +aerodactyl/629-3918397835.png,aerodactyl,aerodactyl +aerodactyl/634-2418332985.jpeg,aerodactyl,aerodactyl +aerodactyl/648-3316677096.png,aerodactyl,aerodactyl +aerodactyl/659-1268922181.jpeg,aerodactyl,aerodactyl +aerodactyl/675-9195000543.jpeg,aerodactyl,aerodactyl +aerodactyl/676-8835461071.jpeg,articuno,aerodactyl +aerodactyl/685-5361661497.png,articuno,aerodactyl +aerodactyl/693-5527271760.jpeg,arcanine,aerodactyl +aerodactyl/foo12.jpeg.jpeg.jpeg.jpeg,aerodactyl,aerodactyl +aipom/721-4589020992.png,aipom,aipom +aipom/743-1740865407.jpeg,aipom,aipom +aipom/753-3615597532.png,aipom,aipom +aipom/757-5646621475.png,aipom,aipom +aipom/763-4520430521.png,aipom,aipom +aipom/765-3141131859.jpeg,aipom,aipom +aipom/786-6217268769.jpeg,aipom,aipom +aipom/813-8019022990.jpeg,arbok,aipom +aipom/834-9307489115.jpeg,aipom,aipom +aipom/837-8849897302.jpeg,aipom,aipom +aipom/844-7749073684.png,aipom,aipom +aipom/846-4755368689.jpeg,aipom,aipom +aipom/848-8115628416.jpeg,aipom,aipom +aipom/849-9051869514.jpeg,aipom,aipom +aipom/853-2833716157.png,aipom,aipom +aipom/856-7224095754.jpeg,aipom,aipom +aipom/865-5866468150.jpeg,aipom,aipom +aipom/875-4980974776.jpeg,aipom,aipom +aipom/894-2612878986.jpeg,aipom,aipom +aipom/908-8474517286.png,aipom,aipom +aipom/910-3190747727.jpeg,aipom,aipom +aipom/912-6165380912.jpeg,aipom,aipom +aipom/913-8324389664.png,aipom,aipom +aipom/917-8367171558.jpeg,aipom,aipom +aipom/foo11.jpeg.jpeg,aipom,aipom +aipom/foo18.jpeg,aipom,aipom +alakazam/1000-7061962328.jpeg,aerodactyl,alakazam +alakazam/1031-9151272720.jpeg,arcanine,alakazam +alakazam/1035-7937090530.jpeg,aipom,alakazam +alakazam/1056-5849835340.jpeg,articuno,alakazam +alakazam/1062-8745297386.jpeg,alakazam,alakazam +alakazam/1076-8570605605.jpeg,articuno,alakazam +alakazam/1077-4846293778.jpeg,ampharos,alakazam +alakazam/1099-1620808408.jpeg,arcanine,alakazam +alakazam/1112-7078746680.png,ariados,alakazam +alakazam/1118-4108122277.jpeg,alakazam,alakazam +alakazam/920-6833713396.png,arcanine,alakazam +alakazam/931-6873778001.png,alakazam,alakazam +alakazam/956-3021990456.jpeg,aipom,alakazam +alakazam/960-2694340363.jpeg,arcanine,alakazam +alakazam/962-5099480633.jpeg,aerodactyl,alakazam +alakazam/963-5178274354.jpeg,articuno,alakazam +alakazam/973-8779204871.jpeg,aerodactyl,alakazam +alakazam/974-4124440255.jpeg,alakazam,alakazam +alakazam/foo10.jpeg,aerodactyl,alakazam +alakazam/foo212.jpeg,aipom,alakazam +alakazam/foo218.jpeg,alakazam,alakazam +alakazam/foo5.jpg,arcanine,alakazam +alakazam/foo8.jpg,alakazam,alakazam +ampharos/1174-2202497957.jpeg,ampharos,ampharos +ampharos/1184-1881276205.png,arbok,ampharos +ampharos/1185-5246231386.jpeg,aerodactyl,ampharos +ampharos/1230-1657265414.jpeg,ampharos,ampharos +ampharos/1231-1083799350.png,ampharos,ampharos +ampharos/1242-9664634939.png,ampharos,ampharos +ampharos/1247-1959740808.png,ampharos,ampharos +ampharos/1256-3145285474.png,ampharos,ampharos +ampharos/1260-6169529267.jpeg,aerodactyl,ampharos +ampharos/1267-8822467930.jpeg,ampharos,ampharos +ampharos/1277-3214623811.jpeg,aipom,ampharos +ampharos/1283-6366943215.jpeg,aipom,ampharos +ampharos/1353-6742653575.png,ampharos,ampharos +ampharos/1359-5113655166.jpeg,ampharos,ampharos +ampharos/foo2.jpg,ampharos,ampharos +ampharos/foo6.jpg,ampharos,ampharos +ampharos/foo9.jpg,ampharos,ampharos +ampharos/foo93.jpg,aipom,ampharos +arbok/1388-6797829841.jpeg,arbok,arbok +arbok/1405-6323899503.jpeg,arbok,arbok +arbok/1413-3351309878.png,arbok,arbok +arbok/1418-8164400474.jpeg,arbok,arbok +arbok/1428-5216845789.png,ampharos,arbok +arbok/1435-9029459638.png,aipom,arbok +arbok/1449-4122890273.jpeg,aipom,arbok +arbok/1450-2650813269.jpeg,aipom,arbok +arbok/1451-9879850634.png,arbok,arbok +arbok/1461-2551259164.jpeg,arbok,arbok +arbok/1477-2542261184.jpeg,arcanine,arbok +arbok/1479-9196759509.png,aipom,arbok +arbok/1481-7958212812.jpeg,aipom,arbok +arbok/1484-3677226883.png,aipom,arbok +arbok/1489-5005322603.jpeg,aipom,arbok +arbok/1500-6604716899.jpeg,aipom,arbok +arbok/1518-1780439881.png,aipom,arbok +arbok/1524-1118818965.jpeg,arbok,arbok +arbok/1533-8557716355.jpeg,arbok,arbok +arbok/1537-5644053937.jpeg,arbok,arbok +arbok/1542-7501328153.jpeg,aipom,arbok +arbok/1544-1433978852.png,aipom,arbok +arbok/1559-3265605154.jpeg,arbok,arbok +arbok/1564-5200596997.png,arbok,arbok +arbok/1568-8397767068.jpeg,arbok,arbok +arbok/1575-8974133816.jpeg,aipom,arbok +arbok/1580-9607407200.jpeg,aipom,arbok +arbok/1584-2653445443.jpeg,arcanine,arbok +arbok/1591-7222134783.jpeg,articuno,arbok +arbok/1596-5831443277.png,arbok,arbok +arcanine/1607-7510579623.png,arcanine,arcanine +arcanine/1612-7070481462.png,aerodactyl,arcanine +arcanine/1621-9447641440.jpeg,aerodactyl,arcanine +arcanine/1623-7291071677.png,arcanine,arcanine +arcanine/1629-2081851313.jpeg,aerodactyl,arcanine +arcanine/1646-5782610190.jpeg,ampharos,arcanine +arcanine/1647-3552511619.png,arcanine,arcanine +arcanine/1654-1065340850.jpeg,articuno,arcanine +arcanine/1658-3920956178.jpeg,arcanine,arcanine +arcanine/1660-4994017812.png,aipom,arcanine +arcanine/1661-4640938487.png,aipom,arcanine +arcanine/1662-5919666831.jpeg,arcanine,arcanine +arcanine/1664-7884820000.png,aipom,arcanine +arcanine/1680-8034205709.jpeg,arcanine,arcanine +arcanine/1689-5218285906.jpeg,ariados,arcanine +arcanine/1707-4817433995.jpeg,ampharos,arcanine +arcanine/1714-9206081098.jpeg,arcanine,arcanine +arcanine/1716-4788773315.jpeg,arbok,arcanine +arcanine/1732-5439691267.jpeg,arcanine,arcanine +arcanine/1742-7273143996.jpeg,arcanine,arcanine +arcanine/1748-7496739913.jpeg,aipom,arcanine +arcanine/1756-9534100354.jpeg,aipom,arcanine +arcanine/1772-3583766923.png,arcanine,arcanine +arcanine/1779-8155708087.jpeg,articuno,arcanine +arcanine/1796-2542939891.jpeg,alakazam,arcanine +arcanine/1798-1316101128.jpeg,arcanine,arcanine +arcanine/1799-4037483287.jpeg,arcanine,arcanine +arcanine/1800-4298464904.jpeg,aerodactyl,arcanine +arcanine/1801-5106783677.jpeg,articuno,arcanine +arcanine/1824-4683113129.jpeg,arcanine,arcanine +arcanine/1828-6443271536.png,ampharos,arcanine +arcanine/foo1.jpg,arcanine,arcanine +ariados/1835-4688056901.jpeg,aerodactyl,ariados +ariados/1836-6172413729.jpeg,aipom,ariados +ariados/1838-9202012379.jpeg,aerodactyl,ariados +ariados/1849-8842336642.png,aerodactyl,ariados +ariados/1868-7156106531.png,aerodactyl,ariados +ariados/1872-1187500170.jpeg,ariados,ariados +ariados/1891-2764444315.png,articuno,ariados +ariados/1902-2653071356.jpeg,arcanine,ariados +ariados/1942-8829792665.png,aipom,ariados +ariados/1952-9193823104.jpeg,aerodactyl,ariados +ariados/1953-2645380504.jpeg,aipom,ariados +ariados/1959-3300102490.png,ariados,ariados +ariados/1981-7496749423.png,arcanine,ariados +ariados/1985-4948471665.png,ariados,ariados +ariados/1991-1777606010.png,aerodactyl,ariados +ariados/2003-3510735157.png,aerodactyl,ariados +ariados/2035-5158359644.jpeg,ariados,ariados +ariados/2039-3431867516.jpeg,ariados,ariados +ariados/2059-7890530597.png,articuno,ariados +ariados/2060-5898858083.png,ariados,ariados +ariados/2064-6682545262.jpeg,aipom,ariados +ariados/foo11.jpg,ariados,ariados +ariados/foo26.jpg,ariados,ariados +ariados/foo44.jpg,ariados,ariados +ariados/foo49.jpg,ariados,ariados +articuno/2073-7809092541.jpeg,articuno,articuno +articuno/2085-7052761748.jpeg,articuno,articuno +articuno/2095-6921257459.jpeg,articuno,articuno +articuno/2096-6308378468.png,articuno,articuno +articuno/2102-1329622956.png,articuno,articuno +articuno/2107-8053345332.jpeg,articuno,articuno +articuno/2113-1248647607.jpeg,articuno,articuno +articuno/2114-6892333372.jpeg,aerodactyl,articuno +articuno/2125-7749020832.png,aerodactyl,articuno +articuno/2126-6858278053.png,articuno,articuno +articuno/2139-9272965198.png,aipom,articuno +articuno/2142-3378770136.png,aipom,articuno +articuno/2143-2355227677.jpeg,articuno,articuno +articuno/2151-4399190319.jpeg,articuno,articuno +articuno/2157-1665701945.jpeg,articuno,articuno +articuno/2164-3966760608.png,articuno,articuno +articuno/2165-4302966565.jpeg,aipom,articuno +articuno/2174-4540338442.jpeg,articuno,articuno +articuno/2176-5974052533.jpeg,articuno,articuno +articuno/2181-8410748754.png,articuno,articuno +articuno/2193-3946018185.png,articuno,articuno +articuno/2196-5459622128.jpeg,aerodactyl,articuno +articuno/2225-8392577088.jpeg,aerodactyl,articuno +articuno/2228-6870571712.png,articuno,articuno +articuno/2231-7810840201.jpeg,articuno,articuno +articuno/2235-3199000946.jpeg,articuno,articuno +articuno/2236-2271075971.jpeg,articuno,articuno +articuno/2244-9237590036.jpeg,aipom,articuno +articuno/2248-1457800987.jpeg,aipom,articuno +articuno/2256-2321257546.jpeg,articuno,articuno +articuno/2271-5636228793.jpeg,articuno,articuno +articuno/2277-5851728134.jpeg,articuno,articuno +articuno/2278-2389148786.jpeg,articuno,articuno +articuno/2288-6629601066.png,articuno,articuno +azumarill/2299-9733152769.jpeg,aipom,azumarill +azumarill/2304-9204876487.jpeg,aipom,azumarill +azumarill/2306-7645494912.jpeg,aipom,azumarill +azumarill/2322-5530381780.png,aipom,azumarill +azumarill/2330-1958535550.png,ampharos,azumarill +azumarill/2336-1911923830.jpeg,azumarill,azumarill +azumarill/2341-6394340057.jpeg,aipom,azumarill +azumarill/2344-2091443238.png,ampharos,azumarill +azumarill/2346-3184441527.png,arbok,azumarill +azumarill/2354-1695422158.jpeg,azumarill,azumarill +azumarill/2358-9993711638.png,aipom,azumarill +azumarill/2361-3424510412.jpeg,ampharos,azumarill +azumarill/2362-1256305669.png,ampharos,azumarill +azumarill/2366-2433009018.jpeg,aipom,azumarill +azumarill/2370-4294479571.jpeg,aipom,azumarill +azumarill/2372-4696431407.png,azumarill,azumarill +azumarill/2381-4791483123.png,azumarill,azumarill +azumarill/2386-8098817128.png,aipom,azumarill +azumarill/2390-6814193569.jpeg,aipom,azumarill +azumarill/2392-5736579775.jpeg,aipom,azumarill +azumarill/2395-9990891589.jpeg,ampharos,azumarill +azumarill/2405-8125189326.jpeg,azumarill,azumarill +azumarill/2410-6187829728.png,azumarill,azumarill +azumarill/2412-2279205325.jpeg,aipom,azumarill +azumarill/2418-7547370639.jpeg,aipom,azumarill +azumarill/2437-6117801568.jpeg,aipom,azumarill +azumarill/2451-8330388016.jpeg,azumarill,azumarill +azumarill/2463-6299384668.png,aipom,azumarill +azumarill/2467-6065322189.png,azumarill,azumarill +azumarill/2468-5911493502.png,azumarill,azumarill +azumarill/2475-4840849837.jpeg,azumarill,azumarill +azumarill/2487-9173097107.png,aipom,azumarill +azumarill/2495-4765204844.jpeg,aipom,azumarill +azumarill/2501-5072132000.jpeg,arbok,azumarill +azumarill/2503-8682756505.jpeg,aipom,azumarill +azumarill/2514-8865586985.jpeg,alakazam,azumarill +azumarill/2520-2969850156.png,aipom,azumarill +azumarill/foo7.jpg,aerodactyl,azumarill diff --git a/ModelTraining/weights.mobilenet.best.hdf5 b/ModelTraining/weights.mobilenet.best.hdf5 new file mode 100755 index 0000000..2328237 Binary files /dev/null and b/ModelTraining/weights.mobilenet.best.hdf5 differ diff --git a/ModelTraining/weights.mobilenet.non-transfer.best.hdf5 b/ModelTraining/weights.mobilenet.non-transfer.best.hdf5 new file mode 100755 index 0000000..ded0bdb Binary files /dev/null and b/ModelTraining/weights.mobilenet.non-transfer.best.hdf5 differ diff --git a/README.md b/README.md deleted file mode 100755 index 0e60fcb..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# TensorDex - diff --git a/android-tflite/README.md b/android-tflite/README.md new file mode 100755 index 0000000..71b633c --- /dev/null +++ b/android-tflite/README.md @@ -0,0 +1,36 @@ +# TF Lite Android App + +## Building from Source with Bazel + +1. Follow the [Bazel steps for the TF Demo App](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#bazel): + + 1. [Install Bazel and Android Prerequisites](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#install-bazel-and-android-prerequisites). + It's easiest with Android Studio. + + - You'll need at least SDK version 23. + - Bazel requires Android Build Tools `26.0.1` or higher. + - You also need to install the Android Support Repository, available + through Android Studio under `Android SDK Manager -> SDK Tools -> + Android Support Repository`. + + 2. [Edit your `WORKSPACE`](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#edit-workspace) + to add SDK and NDK targets. + + - Make sure the `api_level` in `WORKSPACE` is set to an SDK version that + you have installed. + - By default, Android Studio will install the SDK to `~/Android/Sdk` and + the NDK to `~/Android/Sdk/ndk-bundle`. + +2. Build the app with Bazel. The demo needs C++11: + + ```shell + bazel build -c opt --cxxopt='--std=c++11' \ + //tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo + ``` + +3. Install the demo on a + [debug-enabled device](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#install): + + ```shell + adb install bazel-bin/tensorflow/contrib/lite/java/demo/app/src/main/TfLiteCameraDemo.apk + ``` diff --git a/android-tflite/app/src/main/assets/Ol/graph.lite b/android-tflite/app/src/main/assets/Ol/graph.lite new file mode 100755 index 0000000..bd1c83a Binary files /dev/null and b/android-tflite/app/src/main/assets/Ol/graph.lite differ diff --git a/android-tflite/app/src/main/assets/Ol/labels.txt b/android-tflite/app/src/main/assets/Ol/labels.txt new file mode 100755 index 0000000..fe81123 --- /dev/null +++ b/android-tflite/app/src/main/assets/Ol/labels.txt @@ -0,0 +1,1001 @@ +background +tench +goldfish +great white shark +tiger shark +hammerhead +electric ray +stingray +cock +hen +ostrich +brambling +goldfinch +house finch +junco +indigo bunting +robin +bulbul +jay +magpie +chickadee +water ouzel +kite +bald eagle +vulture +great grey owl +European fire salamander +common newt +eft +spotted salamander +axolotl +bullfrog +tree frog +tailed frog +loggerhead +leatherback turtle +mud turtle +terrapin +box turtle +banded gecko +common iguana +American chameleon +whiptail +agama +frilled lizard +alligator lizard +Gila monster +green lizard +African chameleon +Komodo dragon +African crocodile +American alligator +triceratops +thunder snake +ringneck snake +hognose snake +green snake +king snake +garter snake +water snake +vine snake +night snake +boa constrictor +rock python +Indian cobra +green mamba +sea snake +horned viper +diamondback +sidewinder +trilobite +harvestman +scorpion +black and gold garden spider +barn spider +garden spider +black widow +tarantula +wolf spider +tick +centipede +black grouse +ptarmigan +ruffed grouse +prairie chicken +peacock +quail +partridge +African grey +macaw +sulphur-crested cockatoo +lorikeet +coucal +bee eater +hornbill +hummingbird +jacamar +toucan +drake +red-breasted merganser +goose +black swan +tusker +echidna +platypus +wallaby +koala +wombat +jellyfish +sea anemone +brain coral +flatworm +nematode +conch +snail +slug +sea slug +chiton +chambered nautilus +Dungeness crab +rock crab +fiddler crab +king crab +American lobster +spiny lobster +crayfish +hermit crab +isopod +white stork +black stork +spoonbill +flamingo +little blue heron +American egret +bittern +crane +limpkin +European gallinule +American coot +bustard +ruddy turnstone +red-backed sandpiper +redshank +dowitcher +oystercatcher +pelican +king penguin +albatross +grey whale +killer whale +dugong +sea lion +Chihuahua +Japanese spaniel +Maltese dog +Pekinese +Shih-Tzu +Blenheim spaniel +papillon +toy terrier +Rhodesian ridgeback +Afghan hound +basset +beagle +bloodhound +bluetick +black-and-tan coonhound +Walker hound +English foxhound +redbone +borzoi +Irish wolfhound +Italian greyhound +whippet +Ibizan hound +Norwegian elkhound +otterhound +Saluki +Scottish deerhound +Weimaraner +Staffordshire bullterrier +American Staffordshire terrier +Bedlington terrier +Border terrier +Kerry blue terrier +Irish terrier +Norfolk terrier +Norwich terrier +Yorkshire terrier +wire-haired fox terrier +Lakeland terrier +Sealyham terrier +Airedale +cairn +Australian terrier +Dandie Dinmont +Boston bull +miniature schnauzer +giant schnauzer +standard schnauzer +Scotch terrier +Tibetan terrier +silky terrier +soft-coated wheaten terrier +West Highland white terrier +Lhasa +flat-coated retriever +curly-coated retriever +golden retriever +Labrador retriever +Chesapeake Bay retriever +German short-haired pointer +vizsla +English setter +Irish setter +Gordon setter +Brittany spaniel +clumber +English springer +Welsh springer spaniel +cocker spaniel +Sussex spaniel +Irish water spaniel +kuvasz +schipperke +groenendael +malinois +briard +kelpie +komondor +Old English sheepdog +Shetland sheepdog +collie +Border collie +Bouvier des Flandres +Rottweiler +German shepherd +Doberman +miniature pinscher +Greater Swiss Mountain dog +Bernese mountain dog +Appenzeller +EntleBucher +boxer +bull mastiff +Tibetan mastiff +French bulldog +Great Dane +Saint Bernard +Eskimo dog +malamute +Siberian husky +dalmatian +affenpinscher +basenji +pug +Leonberg +Newfoundland +Great Pyrenees +Samoyed +Pomeranian +chow +keeshond +Brabancon griffon +Pembroke +Cardigan +toy poodle +miniature poodle +standard poodle +Mexican hairless +timber wolf +white wolf +red wolf +coyote +dingo +dhole +African hunting dog +hyena +red fox +kit fox +Arctic fox +grey fox +tabby +tiger cat +Persian cat +Siamese cat +Egyptian cat +cougar +lynx +leopard +snow leopard +jaguar +lion +tiger +cheetah +brown bear +American black bear +ice bear +sloth bear +mongoose +meerkat +tiger beetle +ladybug +ground beetle +long-horned beetle +leaf beetle +dung beetle +rhinoceros beetle +weevil +fly +bee +ant +grasshopper +cricket +walking stick +cockroach +mantis +cicada +leafhopper +lacewing +dragonfly +damselfly +admiral +ringlet +monarch +cabbage butterfly +sulphur butterfly +lycaenid +starfish +sea urchin +sea cucumber +wood rabbit +hare +Angora +hamster +porcupine +fox squirrel +marmot +beaver +guinea pig +sorrel +zebra +hog +wild boar +warthog +hippopotamus +ox +water buffalo +bison +ram +bighorn +ibex +hartebeest +impala +gazelle +Arabian camel +llama +weasel +mink +polecat +black-footed ferret +otter +skunk +badger +armadillo +three-toed sloth +orangutan +gorilla +chimpanzee +gibbon +siamang +guenon +patas +baboon +macaque +langur +colobus +proboscis monkey +marmoset +capuchin +howler monkey +titi +spider monkey +squirrel monkey +Madagascar cat +indri +Indian elephant +African elephant +lesser panda +giant panda +barracouta +eel +coho +rock beauty +anemone fish +sturgeon +gar +lionfish +puffer +abacus +abaya +academic gown +accordion +acoustic guitar +aircraft carrier +airliner +airship +altar +ambulance +amphibian +analog clock +apiary +apron +ashcan +assault rifle +backpack +bakery +balance beam +balloon +ballpoint +Band Aid +banjo +bannister +barbell +barber chair +barbershop +barn +barometer +barrel +barrow +baseball +basketball +bassinet +bassoon +bathing cap +bath towel +bathtub +beach wagon +beacon +beaker +bearskin +beer bottle +beer glass +bell cote +bib +bicycle-built-for-two +bikini +binder +binoculars +birdhouse +boathouse +bobsled +bolo tie +bonnet +bookcase +bookshop +bottlecap +bow +bow tie +brass +brassiere +breakwater +breastplate +broom +bucket +buckle +bulletproof vest +bullet train +butcher shop +cab +caldron +candle +cannon +canoe +can opener +cardigan +car mirror +carousel +carpenter's kit +carton +car wheel +cash machine +cassette +cassette player +castle +catamaran +CD player +cello +cellular telephone +chain +chainlink fence +chain mail +chain saw +chest +chiffonier +chime +china cabinet +Christmas stocking +church +cinema +cleaver +cliff dwelling +cloak +clog +cocktail shaker +coffee mug +coffeepot +coil +combination lock +computer keyboard +confectionery +container ship +convertible +corkscrew +cornet +cowboy boot +cowboy hat +cradle +crane +crash helmet +crate +crib +Crock Pot +croquet ball +crutch +cuirass +dam +desk +desktop computer +dial telephone +diaper +digital clock +digital watch +dining table +dishrag +dishwasher +disk brake +dock +dogsled +dome +doormat +drilling platform +drum +drumstick +dumbbell +Dutch oven +electric fan +electric guitar +electric locomotive +entertainment center +envelope +espresso maker +face powder +feather boa +file +fireboat +fire engine +fire screen +flagpole +flute +folding chair +football helmet +forklift +fountain +fountain pen +four-poster +freight car +French horn +frying pan +fur coat +garbage truck +gasmask +gas pump +goblet +go-kart +golf ball +golfcart +gondola +gong +gown +grand piano +greenhouse +grille +grocery store +guillotine +hair slide +hair spray +half track +hammer +hamper +hand blower +hand-held computer +handkerchief +hard disc +harmonica +harp +harvester +hatchet +holster +home theater +honeycomb +hook +hoopskirt +horizontal bar +horse cart +hourglass +iPod +iron +jack-o'-lantern +jean +jeep +jersey +jigsaw puzzle +jinrikisha +joystick +kimono +knee pad +knot +lab coat +ladle +lampshade +laptop +lawn mower +lens cap +letter opener +library +lifeboat +lighter +limousine +liner +lipstick +Loafer +lotion +loudspeaker +loupe +lumbermill +magnetic compass +mailbag +mailbox +maillot +maillot +manhole cover +maraca +marimba +mask +matchstick +maypole +maze +measuring cup +medicine chest +megalith +microphone +microwave +military uniform +milk can +minibus +miniskirt +minivan +missile +mitten +mixing bowl +mobile home +Model T +modem +monastery +monitor +moped +mortar +mortarboard +mosque +mosquito net +motor scooter +mountain bike +mountain tent +mouse +mousetrap +moving van +muzzle +nail +neck brace +necklace +nipple +notebook +obelisk +oboe +ocarina +odometer +oil filter +organ +oscilloscope +overskirt +oxcart +oxygen mask +packet +paddle +paddlewheel +padlock +paintbrush +pajama +palace +panpipe +paper towel +parachute +parallel bars +park bench +parking meter +passenger car +patio +pay-phone +pedestal +pencil box +pencil sharpener +perfume +Petri dish +photocopier +pick +pickelhaube +picket fence +pickup +pier +piggy bank +pill bottle +pillow +ping-pong ball +pinwheel +pirate +pitcher +plane +planetarium +plastic bag +plate rack +plow +plunger +Polaroid camera +pole +police van +poncho +pool table +pop bottle +pot +potter's wheel +power drill +prayer rug +printer +prison +projectile +projector +puck +punching bag +purse +quill +quilt +racer +racket +radiator +radio +radio telescope +rain barrel +recreational vehicle +reel +reflex camera +refrigerator +remote control +restaurant +revolver +rifle +rocking chair +rotisserie +rubber eraser +rugby ball +rule +running shoe +safe +safety pin +saltshaker +sandal +sarong +sax +scabbard +scale +school bus +schooner +scoreboard +screen +screw +screwdriver +seat belt +sewing machine +shield +shoe shop +shoji +shopping basket +shopping cart +shovel +shower cap +shower curtain +ski +ski mask +sleeping bag +slide rule +sliding door +slot +snorkel +snowmobile +snowplow +soap dispenser +soccer ball +sock +solar dish +sombrero +soup bowl +space bar +space heater +space shuttle +spatula +speedboat +spider web +spindle +sports car +spotlight +stage +steam locomotive +steel arch bridge +steel drum +stethoscope +stole +stone wall +stopwatch +stove +strainer +streetcar +stretcher +studio couch +stupa +submarine +suit +sundial +sunglass +sunglasses +sunscreen +suspension bridge +swab +sweatshirt +swimming trunks +swing +switch +syringe +table lamp +tank +tape player +teapot +teddy +television +tennis ball +thatch +theater curtain +thimble +thresher +throne +tile roof +toaster +tobacco shop +toilet seat +torch +totem pole +tow truck +toyshop +tractor +trailer truck +tray +trench coat +tricycle +trimaran +tripod +triumphal arch +trolleybus +trombone +tub +turnstile +typewriter keyboard +umbrella +unicycle +upright +vacuum +vase +vault +velvet +vending machine +vestment +viaduct +violin +volleyball +waffle iron +wall clock +wallet +wardrobe +warplane +washbasin +washer +water bottle +water jug +water tower +whiskey jug +whistle +wig +window screen +window shade +Windsor tie +wine bottle +wing +wok +wooden spoon +wool +worm fence +wreck +yawl +yurt +web site +comic book +crossword puzzle +street sign +traffic light +book jacket +menu +plate +guacamole +consomme +hot pot +trifle +ice cream +ice lolly +French loaf +bagel +pretzel +cheeseburger +hotdog +mashed potato +head cabbage +broccoli +cauliflower +zucchini +spaghetti squash +acorn squash +butternut squash +cucumber +artichoke +bell pepper +cardoon +mushroom +Granny Smith +strawberry +orange +lemon +fig +pineapple +banana +jackfruit +custard apple +pomegranate +hay +carbonara +chocolate sauce +dough +meat loaf +pizza +potpie +burrito +red wine +espresso +cup +eggnog +alp +bubble +cliff +coral reef +geyser +lakeside +promontory +sandbar +seashore +valley +volcano +ballplayer +groom +scuba diver +rapeseed +daisy +yellow lady's slipper +corn +acorn +hip +buckeye +coral fungus +agaric +gyromitra +stinkhorn +earthstar +hen-of-the-woods +bolete +ear +toilet tissue diff --git a/android-tflite/gradle/wrapper/gradle-wrapper.jar b/android-tflite/gradle/wrapper/gradle-wrapper.jar new file mode 100755 index 0000000..f6b961f Binary files /dev/null and b/android-tflite/gradle/wrapper/gradle-wrapper.jar differ diff --git a/android-tflite/gradle/wrapper/gradle-wrapper.properties b/android-tflite/gradle/wrapper/gradle-wrapper.properties new file mode 100755 index 0000000..073a420 --- /dev/null +++ b/android-tflite/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Sun Apr 14 18:43:29 CDT 2019 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip diff --git a/android-tflite/gradlew b/android-tflite/gradlew new file mode 100755 index 0000000..cccdd3d --- /dev/null +++ b/android-tflite/gradlew @@ -0,0 +1,172 @@ +#!/usr/bin/env sh + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=$(save "$@") + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then + cd "$(dirname "$0")" +fi + +exec "$JAVACMD" "$@" diff --git a/android-tflite/gradlew.bat b/android-tflite/gradlew.bat new file mode 100755 index 0000000..f955316 --- /dev/null +++ b/android-tflite/gradlew.bat @@ -0,0 +1,84 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/iOS-tflite/AppIcon.xcassets/Swift.gitignore b/iOS-tflite/AppIcon.xcassets/.gitignore similarity index 100% rename from iOS-tflite/AppIcon.xcassets/Swift.gitignore rename to iOS-tflite/AppIcon.xcassets/.gitignore