Skip to content

Commit

Permalink
updated isntructions and procedure for binning
Browse files Browse the repository at this point in the history
  • Loading branch information
svshivapuja committed Jul 26, 2021
1 parent 4dfed04 commit 62217fc
Show file tree
Hide file tree
Showing 13 changed files with 3,147 additions and 38 deletions.
11 changes: 7 additions & 4 deletions binning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ This folder contains the method in which the data-splits are created. This proce


Procedure for generating bins:
1. First put your dataset in form of ```image_name,image_count``` in a ```.txt```.
2. Run the ```train.py``` after changing the path at line number 63 ```path path=[r'Val_nwpu_new.txt']```. This generates files in ```select_best``` folder.
3. Run the ```generate_bins.py``` after this by changing the filenames at line number 11 : ```test_ratio_arr =[2053,4106,5133]``` according to the newly geenrated files in ```select_best``` folder.
4. Your best bisn will be printed on the screen.
1. First put your dataset txt in form of ```image_name,image_count``` in a ```.txt```.
2. To start the training run
```python train.py -d ./dataset_txt/Train_nwpu.txt``` .
3. Run the folowing code to finally print out the top two best binning configurations
```python generate_bins.py```
according to the newly generated files in ```select_best``` folder.


The folder structure of the codes in this folder is:
```
Expand Down
Binary file not shown.
Binary file added binning/__pycache__/load_data.cpython-38.pyc
Binary file not shown.
Binary file added binning/__pycache__/multinomial.cpython-38.pyc
Binary file not shown.
Binary file added binning/__pycache__/poisson.cpython-38.pyc
Binary file not shown.
Binary file added binning/__pycache__/select_best.cpython-38.pyc
Binary file not shown.
Loading

0 comments on commit 62217fc

Please sign in to comment.