Skip to content

Commit

Permalink
Separate training data (#78)
Browse files Browse the repository at this point in the history
* removing deprecated reward code

* separating validator image datasets from training datasets

* removing unused miner_metrics import
  • Loading branch information
dylanuys authored Oct 2, 2024
1 parent 3a7f416 commit 190016c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 197 deletions.
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 = {
"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

0 comments on commit 190016c

Please sign in to comment.