Comments (12)
more details on how you run the code?
from coop.
run the code with:bash scripts/coop/main.sh imagenet rn50_ep50 end 16 1 False
and imagenet are configured according to datasets.md
from coop.
you can check the source code here https://github.com/KaiyangZhou/Dassl.pytorch/blob/master/dassl/data/data_manager.py#L38
the error you got, assert len(data_loader) > 0
, means the data loader has zero length and hence no minibatches were loaded
it might happen when drop_last=True
and batch_size
is bigger than the dataset size
anyway, I'd suggest you take a look at your dataset and put some stop points like import pdb; pdb.set_trace()
in the data_manager.py
what I'm sure about is you don't need to change any source code of dassl in order to get this CoOp code running
from coop.
Thank you for your reply. I rechecked the contents of the Imagenet dataset. There are 1000 files in the train folder that are consistent with the remarks of datasets.md. There is no error. What is the content of the Val folder? I use a 6.7g Val with 50000 pictures.
from coop.
A standard imagenet dataset has a train
folder and a val
folder. Isn't it?
from coop.
Good, thank you. It seems that my Val version is wrong. Thank you for your reply
from coop.
Good, thank you. It seems that my Val version is wrong. Thank you for your reply
I meet the same problem. Did you fix it now?
from coop.
classifying pictures can solve the problem
from coop.
classifying pictures can solve the problem
I meet the same problem, but after I classified the val fold, it still does not work.
from coop.
classifying pictures can solve the problem
I meet the same problem, but after I classified the val fold, it still does not work.
Did you fix it now?
from coop.
classifying pictures can solve the problem
I meet the same problem, but after I classified the val fold, it still does not work.
Did you fix it now?
I solve it. The reason is that the preprocessed.pkl was created, but no information was written. This causes datasets/imagenet.py to not execute correctly.
from coop.
classifying pictures can solve the problem
I meet the same problem, but after I classified the val fold, it still does not work.
Did you fix it now?
I solve it. The reason is that the preprocessed.pkl was created, but no information was written. This causes datasets/imagenet.py to not execute correctly.
whoa, thanks for solving the problem, this helps a lot!
from coop.
Related Issues (20)
- If CoCoOp can use ResNet as backbone
- A problem related to DG HOT 1
- Reproduction of DOSCO HOT 3
- How to use the pretrained weight of CoOp for Multi-label Top-K Prediction? HOT 4
- train own dataset HOT 1
- set lpclip num-shot
- RuntimeError: "slow_conv2d_cpu" not implemented for 'Half' HOT 3
- Why the test read on imagnet is empty HOT 3
- Stanford Cars dataset download HOT 2
- cifar100 dataset
- Question regarding the number of runs
- How to visualize classification results? HOT 1
- CoOp on cifar-100
- Question for the code x = x[torch.arange(x.shape[0]), tokenized_prompts.argmax(dim=-1)] @ self.text_projection
- error when running coop.
- `lock.acquire()` and cannot exit training
- CSC (class-specific context) CoOp/CoCoOp in "base-new" and "cross-dataset".
- Base-to-novel generalization
- I would like to ask how long is the experimental period for coop training on imagenet?
- Running zero shot for new classes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coop.