Skip to content

Conversation

@edoardolegnaro
Copy link
Contributor

No description provided.

Copy link
Contributor

@samaloney samaloney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the CLIs here integrated or separate or superseded by to what in #144?

gpu_index = 0
device = "cuda:" + str(gpu_index)

data_folder = os.getenv("ARCAFF_DATA_FOLDER", "../../../../data")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get from config module or will that not work?

predicted_class = np.argmax(result)
probabilities = torch.softmax(torch.tensor(result), dim=1).numpy()
df_prob = pd.DataFrame(probabilities, columns=[ut_t.index_to_label[idx] for idx in range(num_classes)])
print("\nPredictions:")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally try to avoid print statements in favour of logging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants