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

Separate training data #78

Merged
merged 3 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions bitmind/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
]
}

VALIDATOR_DATASET_META = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: Should we rename DATASET_META into TRAINING_DATASET_META for clarity? Or something more general, considering we also have the face-specific datasets. @dylanuys

"real": [
{"path": "bitmind/bm-real"},
{"path": "bitmind/open-images-v7"},
{"path": "bitmind/celeb-a-hq"},
{"path": "bitmind/ffhq-256"}
]
}

VALIDATOR_MODEL_META = {
"prompt_generators": [
{
Expand Down
84 changes: 0 additions & 84 deletions bitmind/utils/miner_metrics.py

This file was deleted.

110 changes: 0 additions & 110 deletions bitmind/validator/multi_image_reward.py

This file was deleted.

4 changes: 2 additions & 2 deletions neurons/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from bitmind.base.validator import BaseValidatorNeuron
from bitmind.synthetic_image_generation.synthetic_image_generator import SyntheticImageGenerator
from bitmind.image_dataset import ImageDataset
from bitmind.constants import DATASET_META, WANDB_PROJECT, WANDB_ENTITY
from bitmind.constants import VALIDATOR_DATASET_META, WANDB_PROJECT, WANDB_ENTITY
import bitmind


Expand Down Expand Up @@ -57,7 +57,7 @@ def __init__(self, config=None):
bt.logging.info("Loading real datasets")
self.real_image_datasets = [
ImageDataset(ds['path'], 'train', ds.get('name', None))
for ds in DATASET_META['real']
for ds in VALIDATOR_DATASET_META['real']
]

self.synthetic_image_generator = SyntheticImageGenerator(
Expand Down
1 change: 0 additions & 1 deletion neurons/validator_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import threading
import socket

from bitmind.utils.miner_metrics import miner_metrics
from bitmind.protocol import ImageSynapse
from bitmind.utils.uids import get_random_uids
from bitmind.validator.proxy import ProxyCounter
Expand Down
Loading