Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update semantics WS dataset #3204

Merged
merged 2 commits into from
May 26, 2023
Merged

Update semantics WS dataset #3204

merged 2 commits into from
May 26, 2023

Conversation

echo0x22
Copy link
Contributor

Updated variant with additional gradient (<25%(no), 25%, 50%, 75%, <100%(yes), 100%(same))

Copy link
Collaborator

@sedthh sedthh left a comment

Choose a reason for hiding this comment

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

I'm going to just believe you on this one.
Btw when passing random_num it can be an issue when keys are not present in the dict or list sizes are smaller than the index given. What you can do is taking the possible values and chosing randomly from them:

part = random_dict[lang][np.random.choice(random_dict[lang].keys())]
part2 = part[np.random.choice(part.keys())]  # or part if it's a list

something like that

@echo0x22
Copy link
Contributor Author

UPD: I couldn't think of anything better, and in general it works anyway, so...

@echo0x22 echo0x22 closed this May 26, 2023
@echo0x22 echo0x22 reopened this May 26, 2023
@olliestanley olliestanley merged commit 86fa745 into LAION-AI:main May 26, 2023
@echo0x22 echo0x22 deleted the patch-1 branch May 26, 2023 08:23
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.

3 participants