You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
4 years ago | |
|---|---|---|
| README.md | 4 years ago | |
README.md
Automobile-Test
import numpy as np import matplotlib.pyplot as plt import pandas as pd from pandas import Series,DataFrame %matplotlib inline
data = ["/data/shixunfiles/36fad22010557412f5973022cfd90468_1607408791091.jpg"] label_map = dataset.label_dict() index = 0 run_states = task.predict(data=data) results = [run_state.run_results for run_state in run_states]
for batch_result in results: batch_result = np.argmax(batch_result, axis=2)[0] for result in batch_result: index += 1 result = label_map[result] print("input %i is %s, and the predict result is ( %s )" % (index, data[index - 1], result)) d=plt.imread("/data/shixunfiles/36fad22010557412f5973022cfd90468_1607408791091.jpg") plt.imshow(d)