Comments (12)
If this issue is still open, from what I can tell, it is because the train function of the Trainer class is only calling train_step (which isn't calling paramupdate hook anymore). So you could add backward and step calls after train_step or just use the train function inherited from algorithmbase via algorithm.train() instead (this one calls all necessary hooks, I needed to manually send my model to gpu though).
from semi-supervised-learning.
If this issue is still open, from what I can tell, it is because the train function of the Trainer class is only calling train_step (which isn't calling paramupdate hook anymore). So you could add backward and step calls after train_step or just use the train function inherited from algorithmbase via algorithm.train() instead (this one calls all necessary hooks, I needed to manually send my model to gpu though).
I met the same problem, but 5V3D3's solution did help. When I used algorithm.train()
instead of trainer.fit()
the performance was improving. I used the following code:
algorithm.model = algorithm.model.cuda()
algorithm.train()
from semi-supervised-learning.
Can provide more information? Which model are you using? What's the learning rate?
from semi-supervised-learning.
Hi, the beginner notebook is exactly the same as is provided except for the parameters that I noted above. So the model is the vit_tiny_patch
and the learning rate 5e-4
as provided. The learning rate looks like it could be low to me, but I figured that the provided example was tuned to train well.
from semi-supervised-learning.
I meet the same problem
from semi-supervised-learning.
Hi, the beginner notebook is exactly the same as is provided except for the parameters that I noted above. So the model is the
vit_tiny_patch
and the learning rate5e-4
as provided. The learning rate looks like it could be low to me, but I figured that the provided example was tuned to train well.
Have you solved it? "I have encountered the same problem, but after increasing the learning rate, there is still no change. The model consistently outputs the same results.".
from semi-supervised-learning.
I've met the same!!
Do other notebooks run all right?
from semi-supervised-learning.
Any update? Could someone who has it working provide their config file as well as the output performance to serve as a sanity check?
from semi-supervised-learning.
algorithm.model = algorithm.model.cuda() algorithm.train()
The above code works for me. Not sure how to perform the evaluation in this context. Tried the following.
algorithm.eval()
AttributeError: 'FixMatch' object has no attribute 'eval'
Any suggestions?
from semi-supervised-learning.
Fixed in PR #135
from semi-supervised-learning.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
from semi-supervised-learning.
This issue was closed because it has been stalled for 5 days with no activity.
from semi-supervised-learning.
Related Issues (20)
- Can not reproduce the results of freeMatch HOT 9
- Training problem HOT 4
- Time series analysis HOT 5
- FreeMatch SAF loss is a negative value? HOT 4
- Question about the Augmentation on Two-Moon dataset used in FreeMatch and SoftMatch HOT 3
- Bug when running the instance code HOT 2
- how to use timm.model as net HOT 2
- Customize datasets tutorial cant work HOT 2
- I can't load model correctly HOT 1
- colab code can not run in Custom_Dataset.ipynb” HOT 1
- 为什么我在自己的数据集上面,100-600-1200不同的有标签数量训练之后,在测试集的效果是一样的差。 HOT 2
- SAT.ass HOT 1
- About config, how to decide the hyperparameters? HOT 3
- There seems to be something strange when the data is loading HOT 6
- Issues related to voice datasets HOT 1
- R..net..\..m..;M// HOT 1
- How to decide the number of labels in experiments HOT 1
- Questions about batch normalization handling. HOT 1
- Can this run a multilabel problem HOT 1
- Testing models on audio datasets HOT 1
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 semi-supervised-learning.