Giter VIP home page Giter VIP logo

brad's People

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

Watchers

 avatar  avatar  avatar  avatar

brad's Issues

About the setting of evaluation

Thank you for your impressive work,

I am a new researcher in the field of unsupervised learning. I have a question about the setting of the evaluation part. I notice that the classifier is fit with source labels. Does this break the initial purpose of unsupervised learning?

BrAD/main_brad_test.py

Lines 182 to 193 in 1fbb23f

if is_root:
if args.classifier == 'sgd':
cls = SGDClassifier(max_iter=1000, n_jobs=16, tol=1e-3).fit(train_features, train_labels)
elif args.classifier == 'logistic':
cls = LogisticRegression(max_iter=1000, n_jobs=16, tol=1e-3).fit(train_features, train_labels)
elif args.classifier == 'retrieval':
cls = NearestNeighbors(n_neighbors=min(20, train_features.shape[0]), algorithm='auto',
n_jobs=-1, metric='correlation').fit(train_features)
else:
raise NotImplementedError()
else:
cls = None

Look forward to your reply.
Regards,

About the FUDA training script.

Hi! I am very appreciated of your work and it really inspires me. I am trying to reproduce the results in Table 3 of your paper. However, I couldn't find the training script and parameters in your official README. Would you please share the FUDA training parameters and scripts so that I could reproduce your results?

Thank you!

pretrianing or not

i know that FSDA setting need an imagenet pretrained resnet to init
but if the UDG setting need an imagenet pretrained resnet to init or random init?

About resuming the training of pre-trained weights.

Hi! Sorry for bothering you again. I am trying to resume training from the checkpoints you released at https://drive.google.com/file/d/1T7v2xwAWQGsAv11-CEwKLmUH-TmCkue9/view?usp=sharing by using --resume parameters when running main_brad.py. However, I got the following errors:

File "main_brad.py", line 179, in main_worker
missing_keys, unexpected_keys = model.load_state_dict(sd, strict=False)
File "/home/xxxxx/miniconda3/envs/brad/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1223, in load_state_dict
Traceback (most recent call last):
File "main_brad.py", line 649, in
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for DistributedDataParallel:
size mismatch for module.queue: copying a param with shape torch.Size([128, 65536]) from checkpoint, the shape in current model is torch.Size([128, 65088]).
size mismatch for module.queue_idx: copying a param with shape torch.Size([65536]) from checkpoint, the shape in current model is torch.Size([65088]).

I was using the default parameters in config.py and set --nproc_per_node=4. It seems that the model parameters ("65088" in "the shape in current model is torch.Size([65088])") vary as the batch size changes. I wonder what is the reason of this and I would sincerely appreciate it if you would provide the proper way to resume training the released weights.

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.