Skip to content

Instantly share code, notes, and snippets.

View toilaluan's full-sized avatar

Tran Thanh Luan toilaluan

View GitHub Profile

Update - March 26

For Validators

  • Generation Volume Setting for Miners: Validators can now handle more synthetic requests in 10 minutes as miners have the option to set their generation volume.
  • Integration with Weights & Biases: Validators can now log miner responses to Weights & Biases. To enable this feature, add the WANDB_API_KEY from your Weights & Biases account settings (https://wandb.ai/settings#api) and set the use_wandb argument to true. Example command to start the validator with Weights & Biases logging enabled:
WANDB_API_KEY=YourWandBApiKey pm2 start python --name "validator_nicheimage" \
-- -m neurons.validator.validator \
--netuid  \
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@toilaluan
toilaluan / test_miner_endpoint.ipynb
Last active February 15, 2024 08:29
Example of testing miner endpoint - NicheImage
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@toilaluan
toilaluan / nichenet-benchmark.ipynb
Created December 30, 2023 07:03
nichenet_benchmark.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import glob
import random
import numpy as np
import cv2
import albumentations as A
import random
import cv2
class DrawHorizontal: