Git Product home page Git Product logo

sre2l's People

Contributors

littlehead0 avatar szq0214 avatar zeyuanyin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sre2l's Issues

The img2batch_idx_list doesn't have the corresponding img_idx

Hi, I really think it's a great work!

However, I meet some problems when I try to reproduce your method.

I have successfully run the recover and relabel process. I generate the syn_data and the soft label (i.e. many files like batch_0.tar...). When I want to run the train.sh (I already change the pytorch source code following your instruction), it says that "Caught KeyError in DataLoader worker process 0". I find it doesn't find the corresponding img_idx in the img2batch_idx_list (relabel/utils_fkd.py line143).

The error is following:

Epoch: 0
Traceback (most recent call last):
File "/export/home2/jiyuan/SRe2L/train/train_FKD.py", line 360, in
main()
File "/export/home2/jiyuan/SRe2L/train/train_FKD.py", line 179, in main
train(model, args, epoch)
File "/export/home2/jiyuan/SRe2L/train/train_FKD.py", line 219, in train
for batch_idx, batch_data in enumerate(args.train_loader):
File "/export/home2/jiyuan/anaconda3/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 634, in next
data = self._next_data()
File "/export/home2/jiyuan/anaconda3/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1346, in _next_data
return self._process_data(data)
File "/export/home2/jiyuan/anaconda3/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1372, in _process_data
data.reraise()
File "/export/home2/jiyuan/anaconda3/lib/python3.9/site-packages/torch/_utils.py", line 644, in reraise
raise exception
KeyError: Caught KeyError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/export/home2/jiyuan/anaconda3/lib/python3.9/site-packages/torch/utils/data/_utils/worker.py", line 308, in _worker_loop
data = fetcher.fetch(index)
File "/export/home2/jiyuan/anaconda3/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 62, in fetch
mix_index, mix_lam, mix_bbox, soft_label = self.dataset.load_batch_config(possibly_batched_index[0])
File "/export/home2/jiyuan/SRe2L/train/../relabel/utils_fkd.py", line 143, in load_batch_config
batch_idx = self.img2batch_idx_list[self.epoch][img_idx]
KeyError: 7542

Could you help me figure it out? Hope for your feedback!

Thanks.

Hyperparameter settings for CIFAR-100

Thank you so much for sharing this excellent work!

I notice that you have conducted experiments on CIFAR-100. Are the hyperparameter settings the same as Imagenet-1K or tiny-Imagenet?

Looking forward to your response!

Some questions about BN-VIT model structure and effect for recovering process

Thanks a lot for your paper "Squeeze, Recover and Relabel: Dataset Condensation at ImageNet Scale From A New Perspective" it paper gave me great inspiration.
In this paper, a custom model “BN-VIT” is mentioned for the recovery process, however there is little detail in the paper about using this model generation dataset process.

I'm interested in the design of this model and would like to know why BN is used instead of LN and what are its benefits?
Of course, I would be very grateful if you could share this BN-VIT model so that I can use it to verify the quality of the generated dataset.

How to modify source code for _MapDatasetFetcher

When I run the train code (as in train_FKD.py) as provided, it errors on the getitem method of ImageFolder_FKD_MIX not having the corresponding batch_config. I understand that this config is loaded via load_batch_config, which is the reason why _MapDatasetFetcher is modified in the first place. However, the docs do not provide an actual procedure except some code. How do I actually overwrite the original pytorch source code to become the new code provided? Do I need to run a locally compiled version of pytorch for this to work? Are there solutions that only requires a few additional lines for it to work? Thank you.

Consult the tiny imagenet E100 for data set release

Your work is very impressive. After checking the data set you released, the data about tiny imagenet is only E50, tiny_rn18E50_[1K].Aug.zip. Would you like to release the data set about tiny imagenet E100? Thank you very much!

How to train the train_FKD.py and load config?

Hi, this is a good work. But I ran into some issues while running the code.

When I run the train code (as in train_FKD.py) as provided, it errors on the getitem method of ImageFolder_FKD_MIX not having the corresponding batch_config.
The detailed description is as follows

======= FKD: dataset info ======

path: /home/xxx/SRe2L/relabel/FKD_cutmix_fp16/
num img: 50000
batch size: 1024
max epoch: 300

================================

300
load data successfully
=> loading student model 'resnet18'

Epoch: 0
Traceback (most recent call last):
File "train_FKD.py", line 362, in
main()
File "train_FKD.py", line 181, in main
train(model, args, epoch)
File "train_FKD.py", line 221, in train
for batch_idx, batch_data in enumerate(args.train_loader):
File "/home/xxx/anaconda3/envs/py37xxx/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 517, in next
data = self._next_data()
File "/home/xxx/anaconda3/envs/py37xxx/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1199, in _next_data
return self._process_data(data)
File "/home/xxx/anaconda3/envs/py37xxx/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1225, in _process_data
data.reraise()
File "/home/xxx/anaconda3/envs/py37xxx/lib/python3.8/site-packages/torch/_utils.py", line 429, in reraise
raise self.exc_type(msg)
Original Traceback (most recent call last):
File "/home/xxx/anaconda3/envs/py37xxx/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 202, in _worker_loop
data = fetcher.fetch(index)
File "/home/xxx/anaconda3/envs/py37xxx/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/xxx/anaconda3/envs/py37xxx/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/xxx/SRe2L/validate/../relabel/utils_fkd.py", line 143, in getitem
raise ValueError('config is not loaded')
ValueError: config is not loaded
How can I change it? Thanks.

Synthetic Data from ResNet50

Hi. Thank you for providing such wonderful work.

In this project, the synthesized samples for the ImageNet-1K dataset are provided for only ResNet-18.
So, I tried to generate the synthetic samples generated from ResNet50. But the runtime is too long so I cannot keep the generating work.
Do you have a plan that exports the synthetic samples generated from ResNet50?

For my research, the ResNet50 synthetic samples can be helpful so I want to be provided with those samples.

I'm looking forward to your positive reply.

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.